search for: baf_temp

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

2008 Jul 09
2
replacing value in column of data frame
...t of the columns are numeric. The factor column contains chromosome names, so values 1 through 22 plus X, Y and XY. The numeric columns contain positions or intensity measurements. What I need to do is change the X's in the first column to a value of 23. This is what I thought I would do: BAF_temp <- read.table("BAF_all.txt", sep="\t", header=T) #to read in the table BAF_temp[,1][BAF_temp[,1]=="X"] <- 23 #"in rows where the first column of BAF_temp is X, change the first column of BAF_temp to 23" However with this las...