Displaying 2 results from an estimated 2 matches for "37759058".
Did you mean:
375905
2008 Feb 02
2
transforming one column into 2 columns
Hello
I have a data frame and one of its columns is as follows:
Col
chr1:71310034
chr14:23354088
chr15:37759058
chr22:18262638
chrUn:31337214
chr10_random:4369261
chrUn:3545097
I would like to get rid of colon (:) and replace this column
with two new columns containing the terms on each side of the colon. The new columns
should look as follows:
Col_a Col_b
chr1 71310034
chr14 23...
2008 Feb 08
1
convertin a data frame column from character to numeric
I have a data.frame with all character columns, I would like to convert the last two columns into numeric.> x[1:5, ] chrN start end 1 chr1 71310034 71310064 2 chr14 23354088 23354118 3 chr14 71310034 71310064 4 chr15 37759058 37759088
5 chr22 18262638 18262668 > apply(x, 2, FUN = mode) chrN start end "character" "character" "character"
____________________________________________________________________________________
Be a better friend, newshound, an...