[R] importing data

2007-05-04 Thread croero
Hello, I need to import a data set. I have never imported data files with R. I have always worked on simulated data. I have looked at R Data Import/Export manual. It is a bit peculiar because my data base is already an R object called japan. I guess it is not yet a data set, and I don't know

Re: [R] importing data

2007-05-04 Thread John Kane
--- [EMAIL PROTECTED] wrote: Hello, I need to import a data set. I have never imported data files with R. I have always worked on simulated data. I have looked at R Data Import/Export manual. It is a bit peculiar because my data base is already an R object called japan. Then you

[R] Importing data from clipboard on Mac OSX

2006-08-27 Thread Ken Knoblauch
Oops, forgot to include the Subject. sorry for that sloppiness. Yes, you can, as documented in ?connections, but on the Mac you would have to use: read.delim(pipe(pbpaste)) You can also use pbcopy to copy to the clipboard. Dear R users, I am trying to get data from the clipboard into R on

Re: [R] Importing data from clipboard on Mac OSX

2006-08-27 Thread Rob J Goedman
Hi Rense, Not sure how robust this is, but maybe to get you started: In R console: a - 1:10 Copy that line to or part of it to the clipboard. system(osascript -e 'set y to the clipboard' -e 'tell application \R.app\ to cmd y') If course you could use this in an R function. I would opt

[R] Importing data from clipboard on Mac OSX

2006-08-26 Thread Rense Nieuwenhuis
Dear R users, I am trying to get data from the clipboard into R on MacOSX. I tried the following, but got an error message: read.delim(clipboard) Error in file(file, r) : unable to open connection In addition: Warning message: unable to contact X11 display Obviously, I'm not running R using

Re: [R] importing data from BUGS format to R?

2006-02-24 Thread Martyn Plummer
On Fri, 2006-02-24 at 08:48 +0100, Uwe Ligges wrote: Gabor Grothendieck wrote: Just source the file: source(mywinbugsfile.R) head(y) ... and don't forget to transpose the matrix afterwards, if this was BUGS code. Uwe Ligges If this were a WinBUGS data file (or initial values

[R] importing data from BUGS format to R?

2006-02-23 Thread Jeffrey Moore
For those who use WinBUGS (or for those who are just familar with this format), I have a text file that looks like this (which is how R would export data if you used the structure function): y= structure(.Data= c(-6.93310E+01, 4.32870E+01, -6.96600E+01, 4.35730E+01, -6.90150E+01, 4.35870E+01,

Re: [R] importing data from BUGS format to R?

2006-02-23 Thread Gabor Grothendieck
Just source the file: source(mywinbugsfile.R) head(y) On 2/23/06, Jeffrey Moore [EMAIL PROTECTED] wrote: For those who use WinBUGS (or for those who are just familar with this format), I have a text file that looks like this (which is how R would export data if you used the structure

Re: [R] importing data from BUGS format to R?

2006-02-23 Thread Uwe Ligges
Gabor Grothendieck wrote: Just source the file: source(mywinbugsfile.R) head(y) ... and don't forget to transpose the matrix afterwards, if this was BUGS code. Uwe Ligges On 2/23/06, Jeffrey Moore [EMAIL PROTECTED] wrote: For those who use WinBUGS (or for those who are just

[R] Importing data into R

2005-04-07 Thread Dave Evens
I have a highly formated Excel with multiple tabs. Is it currently possible to read this data into R without changing the format of the Excel file? Also, is it possible to write back to the same Excel file or at least create a new Excel file with the same formatting as before with modified

Re: [R] Importing data into R

2005-04-07 Thread Ales Ziberna
: Thursday, April 07, 2005 4:47 PM Subject: [R] Importing data into R I have a highly formated Excel with multiple tabs. Is it currently possible to read this data into R without changing the format of the Excel file? Also, is it possible to write back to the same Excel file or at least create a new

[R] Importing data from SPSS

2004-11-17 Thread Arin Basu
Message: 35 Date: Tue, 16 Nov 2004 09:49:45 -0800 (PST) From: gauri [EMAIL PROTECTED] Subject: [R] R help To: [EMAIL PROTECTED] Message-ID: [EMAIL PROTECTED] Content-Type: text/plain Hi, I was wondering as to how I could convert SPSS data imported to R into tabular form. In the sense,

[R] importing data

2004-10-13 Thread Andreas Betz
Hi all! I am newcomer to R and I am loborating on this problem: How do I import data from a CD into R for further evaluation. Using code newgotcha - read.table(e:\\asciiwin\\gotcha.dat) returmns a list containing an additional column with indices. The command plot (gotcha) gives the

Re: [R] importing data

2004-10-13 Thread Prof Brian Ripley
On Wed, 13 Oct 2004, Andreas Betz wrote: I am newcomer to R and I am loborating on this problem: How do I import data from a CD into R for further evaluation. Using code newgotcha - read.table(e:\\asciiwin\\gotcha.dat) returmns a list containing an additional column with indices. The

Re: [R] importing data in excel

2004-08-30 Thread Thomas Petzoldt
Uwe Ligges wrote: Gerardo Prieto Blanco wrote: Hello, I need to care excel data to be used in R,..., how do I make it? Thank you and greetings, Gerardo Prieto Please read the R Data Import/Export manual! Uwe Ligges Hello Gerardo, I completely agree with Uwe, and the following simple example may

Re: [R] importing data in excel

2004-08-30 Thread ronggui wong
if under windows ,the command works well,but under linux ,it does NOT,as linux can keep couples of file in clipboar.so i want to know how to do similar thing under linux.anyone knows? the erroe msg is as follow: dat-read.table('clipboard',header=T) Error in file(file, r) : unable to open

[R] importing data in excel

2004-08-29 Thread Gerardo Prieto Blanco
Hello, I need to care excel data to be used in R,..., how do I make it? Thank you and greetings, Gerardo Prieto __ [EMAIL PROTECTED] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide!

Re: [R] importing data in excel

2004-08-29 Thread Uwe Ligges
Gerardo Prieto Blanco wrote: Hello, I need to care excel data to be used in R,..., how do I make it? Thank you and greetings, Gerardo Prieto Please read the R Data Import/Export manual! Uwe Ligges __ [EMAIL PROTECTED] mailing list

Re: [R] Importing data into R

2003-08-21 Thread Prof Brian Ripley
On Thu, 21 Aug 2003, Gavrilov, Pavel M wrote: Hello. I have been working with GeoDA, and have created a spatial weights file for my data. I am now looking to use R to run regressions on this data. However, I don't know and can't figure out how to get my data into R to run these

Re: [R] Importing data into R

2003-08-21 Thread Torsten Hothorn
On Thu, 21 Aug 2003, Gavrilov, Pavel M wrote: Hello. I have been working with GeoDA, and have created a spatial weights file for my data. I am now looking to use R to run regressions on this data. However, I don't know and can't figure out how to get my data into R to run these

Re: [R] Importing data into R

2003-08-21 Thread Jonathan Baron
On 08/21/03 12:15, Gavrilov, Pavel M wrote: I have the data in many formats, from a .dbf file to an Excel spreadsheet, but I'm not sure how to go about importing it into R. Could you help me out please? Thanks. In the documents that come with R is one called R Data Import/Export. You might

Re: [R] Importing data into R

2003-08-21 Thread Roger Bivand
On Thu, 21 Aug 2003, Gavrilov, Pavel M wrote: Hello. I have been working with GeoDA, and have created a spatial weights file for my data. I am now looking to use R to run regressions on this data. However, I don't know and can't figure out how to get my data into R to run these

Re: [R] Importing Data

2003-08-14 Thread TyagiAnupam
These functions are in the library foreign. You may not have loaded the library. Load it first, before using the functions. I tried the following on R1.7.1 on Windows; the functions are available. library(foreign) help(read.xport) help(read.table) In a message dated 8/6/03 11:48:56 AM

Re: [R] Importing Data

2003-08-14 Thread Uwe Ligges
Hadassa Brunschwig wrote: Im trying to import data from an excel sheet or a sas file to R...im not succeeding. Apparently the function read.xport for reading a SAS file doesnt exist. What do i have to type in EXACTLY to read from an excel sheet(i guess i would be using read.table?)? -

[R] Importing Data

2003-08-08 Thread Hadassa Brunschwig
Im trying to import data from an excel sheet or a sas file to R...im not succeeding. Apparently the function read.xport for reading a SAS file doesnt exist. What do i have to type in EXACTLY to read from an excel sheet(i guess i would be using read.table?)? Thanks in advance for an answer