search for: baf_matrix

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

Did you mean: a_matrix
2008 Jul 09
2
replacing value in column of data frame
...chromosome X was correct by trying BAF_X <- BAF_temp[BAF_temp[,1]=="X",] which worked to give me a data frame with only the rows of the X chromosome.) I then thought it might work better if I changed the data frame to a matrix. When I change the BAF_temp data frame into a matrix (by BAF_matrix <- as.matrix(BAF_temp)), then the command I used above: BAF_temp[,1][BAF_temp[,1]=="X"] <- 23 works fine and the end result is as I meant it to be, with all the X's changed into 23's. However, by using as.matrix all columns are changed to 'character' including the nu...