[R] Load a data from oracle database to R

2009-04-23 Thread Gagan Pabla
Hello, I am have trying to load data in R by connecting R to the database the following way: > library(RODBC) > channel<-odbcConnect("gagan") now after I connect to the server by putting pwd. I want to load table from the database named "temp" in to R so that I can do some descriptive statistics

[R] running a .r script and saving the output to a file

2009-04-09 Thread Gagan Pabla
I first I saved the following commands in a whatever.r file. data<-read.csv(file="whatever.csv", head=TRUE, sep=",") summary(data$SQFT) hist(data$STAMP) hist(data$STAMP, col='blue') hist(data$SHIP, col='blue') then I clicked File Menu-> source and chose whatever.r, it runs the commands and prod

[R] running a .r script and saving the output to a file

2009-04-09 Thread Gagan Pabla
Hello, I want to run the following commands as a script(.r or .bat) and save the output in an external file through Windows OS. data<-read.csv(file="wgatever.csv", head=TRUE, sep=",") summary(data$SQFT) hist(data$STAMP) hist(data$STAMP, col='blue') hist(data$SHIP, col='blue') How could