arun
To: tobias schlager
Cc: R help
Sent: Monday, September 2, 2013 5:28 PM
Subject: Re: [R] Convert chr pieces to numbers that have specific values
defined by 2 vectors
Hi,
You may try this:
set.seed(285)
dat1<-
as.data.frame(matrix(paste0(sample(1:10,100,replace=TRUE),sample(LETTE
r-help@r-project.org
Cc:
Sent: Monday, September 2, 2013 3:29 PM
Subject: [R] Convert chr pieces to numbers that have specific values defined
by 2 vectors
Dear all,
I think this is an easy task, but I don't know how to do it. Specifically, I
have 69 columns with 300.000 rows. In each cell there
Dear all,
I think this is an easy task, but I don't know how to do it. Specifically, I
have 69 columns with 300.000 rows. In each cell there is a code like
"2E3", "4RR", etc.
I now have a list that replaces this with values, e.g.,
old new
2E3 5
4RR 3
etc.
The lis
3 matches
Mail list logo