I have question about ddply and subset.
I have dataframe df like this :
df <- read.table(textConnection(
" id v_idn v_seed v_time v_pop v_rank v_perco
1 15 125648 0 150 1 15
2 17 125648 0 120 2 5
3 18 125648 0 100 3 6
4 52 125648 0 25 4 ...
I'm working with a large data frame called exp (file here) in R. In the interests of performance, it was suggested that I check out the idata.frame() function from plyr. But I think I'm using it wrong.
My original call, slow but it works:
df.median<-ddply(exp,
.(groupname,starttime,fPhase,fCycle),
n...
I am using plyr package in R to do the following:
pick up a row from table A according to column A and column B
find the row from table B having the same value in column A and column B
copy column C from table B to table A
I have made the progress bar to show the progress, but after it shows to 100% it seems to be still running, as I...