I like using saveObject() and loadObject() from package R.utils because
you can assign the data to a new object.
Like this:
library(R.utils)
saveObject(df, file="file.Rbin")
df2 <- loadObject("file.Rbin")
HTH,
Ivan
Le 8/12/2011 21:38, peter dalgaard a écrit :
On Aug 12, 2011, at 21:12 , Ed He
On Aug 12, 2011, at 21:12 , Ed Heaton wrote:
> Hi, all.
>
> I'm new to R. I've been a SAS programmer for 20 years.
>
> I seem to be having trouble with the most basic task - bringing a table in
> an *.RData file into a data.frame object.
>
> Here's how I created the *.RData file.
>
> library
On 12/08/2011 3:12 PM, Ed Heaton wrote:
Hi, all.
I'm new to R. I've been a SAS programmer for 20 years.
I seem to be having trouble with the most basic task - bringing a table in
an *.RData file into a data.frame object.
Here's how I created the *.RData file.
library(RODBC)
db<- odbcConnect(
Hi, all.
I'm new to R. I've been a SAS programmer for 20 years.
I seem to be having trouble with the most basic task - bringing a table in
an *.RData file into a data.frame object.
Here's how I created the *.RData file.
library(RODBC)
db <- odbcConnect("***")
df <- sqlQuery(
db
, "se
4 matches
Mail list logo