Re: [R] import data into R

2009-08-05 Thread Jun Shen
Alternatively, you can download and install the package "gdata". The function "read.xls" in it can read Excel sheets directly from .xls files. Basically the function is doing the csv conversion for you. See ?read.xls for details. On Wed, Aug 5, 2009 at 11:16 AM, Inchallah Yarab wrote: > Thank yo

Re: [R] import data into R

2009-08-05 Thread Gabor Grothendieck
read.table is used for text data, not Excel data. Suggest you re-read the cited link. On Wed, Aug 5, 2009 at 12:16 PM, Inchallah Yarab wrote: > Thank you Gabor Grothendieck for your answer !! > i have charge the pachage but now i have this massage > >  read.table("c:/TOTAL.xls",h=T) > [1] ÐÏ.à.. >

Re: [R] import data into R

2009-08-05 Thread Ronggui Huang
You can not import xls file by read.table. You may save xls as csv file, and import it by read.csv. 2009/8/6 Inchallah Yarab : > Thank you Gabor Grothendieck for your answer !! > i have charge the pachage but now i have this massage > >  read.table("c:/TOTAL.xls",h=T) > [1] ÐÏ.à.. > <0 rows> (or

[R] import data into R

2009-08-05 Thread Inchallah Yarab
Thank you Gabor Grothendieck for your answer !! i have charge the pachage but now i have this massage  read.table("c:/TOTAL.xls",h=T) [1] ÐÏ.à.. <0 rows> (or 0-length row.names) Warning messages: 1: In read.table("c:/TOTAL.xls", h = T) :   incomplete final line found by readTableHeader on 'c:/TOTA