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

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

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

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

Re: [R] Importing data into R

2005-04-07 Thread Ales Ziberna
I don't know if it does what you want, however you might try package RExcel. However it is not on CRAN. You can find it on http://sunsite.univie.ac.at/rcom/download/. I belive it might be obsolete and replaced by R (D)COM Server V1.35 (previously you needed this package to use RExcel) which you

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

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?)? -