[R] how to ignore or omit somethings while reading the data table
Richard Müller
r.mueller at oeko-sorpe.de
Wed Jan 2 14:20:17 CET 2008
Am Mittwoch, 2. Januar 2008 14:14 schrieb mrafi:
> hello respected ppl...
> am a engg. student...i was trying to use R in statistical calculations
> now the problem is..i imported a huge tsv file onto R...it has a column
csv?
> which gives cost...and it has "$" with each numerical value in this
> column...it is something like this..$.05,$.1,$.075...and so on..
> R is reading it as "character vector"...
> i tried using all the arguments but could only change it to a "factor"
> i want to read it as numericals...and perform further operations..
> i know it is a stupid problem but can any1 help me get outta this...
> thank you all...!!!
I'd like to have it simple... open your csv-file in a text editor, with
"find/replace" replace your "$" by ""
--
Richard Müller - Am Spring 9 - D-58802 Balve-Eisborn
www.oeko-sorpe.de
More information about the R-help
mailing list