Thanks a lot. That works great.
I have another question, I will send you another email.
Best,Farnoosh Sheikhi
Cc: R help
Sent: Monday, August 26, 2013 12:06 PM
Subject: Re: Loop for converting character columns to Numeric
Hi,
Suppose you created a datafr
Hi,
Suppose you created a dataframe like this:
set.seed(28)
dat1<-as.data.frame(simplify2array(list(letters[1:5],sample(1:20,5,replace=TRUE),6:10)),stringsAsFactors=FALSE)
str(dat1)
#'data.frame': 5 obs. of 3 variables:
# $ V1: chr "a" "b" "c" "d" ...
# $ V2: chr "1" "2" "10" "18" ...
#
2 matches
Mail list logo