From a data.frame:
RowColFovCellID 1Feret
001001000 1.1
001002000 0.3
001002000 0.2
001003000 1.5
001001000 3.4
001002000 2.4
003003001 0.7
001001000 3.6
I would like to bin data by a unique ID and show the results as new columns in a dataframe, for example:
RowColFovCellID0-11-22-33-44-5
001001000 0 1 0 2 0
001002000 2 0 1 0 0
001003000 0 1 0 0 0
003003001 1 0 0 0 0
I have tried using ddply and cut but not managed it so far.
Thanks