search for: sample2_condition1_place1

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

2008 Feb 07
1
How to split a factor (unique identifier) into several others?
Hello, I have a data frame with a factor column, which uniquely identifies the observations in the data frame and it looks like this: sample1_condition1_place1 sample2_condition1_place1 sample3_condition1_place1 . . . sample3_condition3_place3 I want to turn it into three separate factor columns "sample", "condition" and "place". This is what I did so far: # generate a factor column for the example fctr<- factor(c("sample1_condition1_place1...