Skip to content

reading data from Excel Spread sheet

7 messages · venkata kirankumar, Thomas Schwander, Brian Ripley +4 more

#
Hi,

http://tolstoy.newcastle.edu.au/R/e2/help/06/12/6702.html

Cheers,
Thomas

venkata kirankumar schrieb:
#
See the 'R Data Import/Export' manual (and please study the posting 
guide, which asked you to check the manuals before posting).
On Fri, 16 Jan 2009, venkata kirankumar wrote:

            

  
    
#
Kiran,
One, not very elegant way, to solve your problem is to first save the
Excel spreadsheet as a CSV file (open the Excel file in Excel and the
use file->save as CSV, i.e. xxx.CSV) and then use read.csv()
John

John David Sorkin M.D., Ph.D.
Chief, Biostatistics and Informatics
University of Maryland School of Medicine Division of Gerontology
Baltimore VA Medical Center
10 North Greene Street
GRECC (BT/18/GR)
Baltimore, MD 21201-1524
(Phone) 410-605-7119
(Fax) 410-605-7913 (Please call phone number above prior to faxing)
Hi all,

I tried to read data from Excel spread sheet with using

read.csv(file.choose())
and
read.delim(file.choose())
but its showing                    " *??.?.*."

and also i tried with
read.table(file.choose())

then its showing             "   *      V1
                                        1 ??\021???*   "


can any one suggest how to read data from Excel Spread sheet

thanks & regards;

kiran



Confidentiality Statement:
This email message, including any attachments, is for th...{{dropped:6}}
#
....or maybe by using the xlsReadWrite package:

mydata <- read.xls("mydata.xls", sheet = 'Sheet1")


On Fri, Jan 16, 2009 at 4:32 AM, venkata kirankumar
<kiran4u2all at gmail.com> wrote:
#
On 1/16/09, venkata kirankumar <kiran4u2all at gmail.com> wrote:
Perhaps easiest alternative for Excel users: RExcel [1]. I would
suggest to use this bundle installer [2].

When in Excel with RExcel loaded, select your data in Excel and choose
"Put R Dataframe".
Liviu

[1] http://sunsite.univie.ac.at/rcom/
[2] http://sunsite.univie.ac.at/rcom/download/RAndFriends.distro/RAndFriendsLightSetup2081V3.0-8-1.exe
#
There are many answers to this in R but some considerations are

- what platform are you using?
- do you have access to Excel or only to the spreadsheet itself?  If you
have access to Excel is it on the same machine as R?
- is it an Excel 2003 spreadsheet (.xls) or Excel 2007 spreadsheet (.xlsx)?
- is this a one time transfer of a particular data set or will you be
transferring
numerous similar spreadsheets?
- is the spreadsheet located on your computer or does it have to be fetched
from the internet or some other place?

On Fri, Jan 16, 2009 at 4:32 AM, venkata kirankumar
<kiran4u2all at gmail.com> wrote: