I have data on fish ID and the ID variable is made up of a four letter code, first letter for paternity, second for maternity, third for treatment, fourth for the individual. A single observation may look like this BBRG.
This data is as a single variable and I need to split these letters into separate columns, since there is nothing separating them I wasn't sure what to place in the sep= argument in separate.
Example data:
test.dataframe <- data.frame(observation = c(1:10),
                             VIE.Code = c("BBRG", "BRBR", "PPWG", "RRWW",
                                          "WRWR", "BBBP", "PBPB", "PPGW",
                                          "RWRW", "BGBG"))
 
     
    