search for: area_4

Displaying 1 result from an estimated 1 matches for "area_4".

Did you mean: area_1
2012 Mar 16
1
help to split a ID column in a data.frame and create a new ID column
Dear Researchers, I have a data.frame with 2 columns like this: mydf <- data.frame(value=c(1,2,3,4,5),ID=c("Area_1","Area_2","Area_3","Area_4","Area_5")) > mydf value ID 1 1 Area_1 2 2 Area_2 3 3 Area_3 4 4 Area_4 5 5 Area_5 I need to convert the *ID *in the following version > mydf value ID newID 1 1 Area_1 AreaSample1 2 2 Area_2 AreaSample2 3 3 Area_3 AreaSa...