search for: this1001

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

2013 Apr 23
1
Extract part of a numer
...tringsAsFactors=FALSE) ?dat1$ID<-as.numeric(gsub("#.*","",dat1$ID)) ?dat1 #??? ID??????? val #1 1001 -0.2118336 #2 1001 -1.0415911 #3 1001 -1.1533076 #4 1002? 0.3215315 #5 1002 -1.5001299 A.K. >Hi all, > >I have a database with a colume ID have the ID numbers like this1001#01, 1001#02, etc.. > >How could I do to just extract 1001 out? > >Thanks, > >York