search for: p000356

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

2006 Nov 08
1
convert factor p000345 to numeric
Dear All, I am lost about the following. I have got a large dataframe (largeset) with in the first column identification numbers as factors largeset$ID p000345 p000356 p000569 etc -- in order to use them to merge with another dataframe with numerical values (000345, 000356) I want to convert them to numerical. >as.numeric(as.character(largeset$ID)) gives NA's >as.numeric(strsplit(as.character(largeset[,1]), "p")) also fails:...