Hi, I'm trying to use the i-best software. Does anyone have experience from this, I can't get it to work with my data.
Here is the code: T1 <- read.delim(file="S://SEDIM//Yvonne//2_5//T1.txt",col.names= c("Dye/Sample_Peak", "Sample_File_Name", "Size", "Height", "Area_in_Point", "Area_in_BP", "Data_Point", "Begin_Point", "Begin_BP", "End_Point", "End_BP", "Width_in_Point", "Width_in_BP", "User_Comments", "User_Edit")) T1 <- subset(T1, Size < 1000 & Size > 50) T1.B <- cbind(T1[grep("^B", as.character(T1$Color),perl=T),3],T1[grep("^B", as.character(T1$Color),perl=T),5]) T1.B <- cbind(T1.B, T1.B[,2]/sum(T1.B[,2])) It works alright until the last two lines. I try to grep the columns 3 and 5, but the outcome is T1.B [,1] [,2]. I don´t quite understand the code of as.character(t1$Color), perl=T. Could anyone please explane what this does, I havn´t found it anyware and I am so stuck. Maybe I'm doing something else wrong as well.. I would really appreciate some help, thank you. Yvonne _________________________________________________________________ [[alternative HTML version deleted]]
______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.