I have a significant R performance issue. A method I created iterates through a data.frame object. It merely aggregates something and adds a new column to a data.frame. (Easy procedure). In the data.frame, there are about 850K rows. I don't know how long the PC has been running; it's been on for roughly 10 hours.
Dayloop 2: function(temp)
I in 1:nrow(temp) for
{
temp(i,10) - I
if I > 1) {
In the event that ((temp[i,6] == temp[i-1,6]) & (temp[i,3] == temp[i-1,3])) {
i=temp[i,9] + i=temp[i-1,10] - i=temp[i,10]
} else {
I 10, - I 9, temp
}
} else {
I 10, - I 9, temp
}
}
"V10" is the value of names(temp). <- "Kumm."
return(temp)
}
Any suggestions for accelerating this process?