Re: [R] how to skip last lines while reading the data in R

2008-01-28 Thread mrafi
but then the number of levels would reamain the same...!! Prof Brian Ripley wrote: > > On Mon, 28 Jan 2008, Barry Rowlingson wrote: > >> Henrique Dallazuanna wrote: >>> Perhaps: >>> >>> data <- >>> read.table(textConnection(rev(rev(readLines('data.txt'))[-(1:2)]))) >>> >> >> Euurgh! Am I the

[R] how to skip last lines while reading the data in R

2008-01-28 Thread mrafi
hey all greetings hey all am an engineering student...and am trying to learn R i am trying to automate reading a specific type of file...and perform certain functions...but i want to omit lines in the end of the file.. there is an option for skiping the lines before begining...but how can i ask R

Re: [R] how to ignore or omit somethings while reading the data table

2008-01-02 Thread mrafi
$ V3 : Factor w/ 3 levels "$.05","$1.05",..: 1 2 3 > $ converted: num 0.05 1.05 23.56 >> x > V1 V2 V3 converted > 1 1 2 $.05 0.05 > 2 3 4 $1.05 1.05 > 3 5 6 $23.56 23.56 > > > On Jan 2, 2008 8:14 AM, mrafi &l

Re: [R] how to ignore or omit somethings while reading the data table

2008-01-02 Thread mrafi
yeah...i'd have done that but it is a 20 mb csv file...and then there are other columns of data also..which could be distorted by this... r_a_mueller wrote: > > Am Mittwoch, 2. Januar 2008 14:14 schrieb mrafi: >> hello respected ppl... >> am a engg. student...i

[R] how to ignore or omit somethings while reading the data table

2008-01-02 Thread 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 which gives cost...and it has "$" with each numerical value in this column...it is something like this..$.05,$.1,$.075...and so on..