Skip to content
Prev 280010 / 398506 Next

question about spaces in r

Hi
it
type.
the
Not if it is factor (which you can check by str(your.object). With factor 
you need to do

as.numeric(as.character(factor.variable))

But it is always better to read data properly instead of changing them 
later after reading.

To get more help you shall follow Don?s advice to provide some more info 
about what you have, what you did and what you get.

Usefull commands are

?dput
?str

And probably spending some of your time reading R-intro document.

Regards
Petr
that
characters
working
I
this
a
not
am
http://www.R-project.org/posting-guide.html