Re: [R] R Script Help!

2011-06-21 Thread Sarah Goslee
Hi, So is your actual question about how to prompt for user input, rather than anything about the SQL extraction or graphing? I think I would write the R code as a function that takes the four values as arguments. That's not the same as prompting the user, but more flexible and more R-ish. You

Re: [R] R Script Help!

2011-06-21 Thread Sarah Goslee
Hi George, On Tue, Jun 21, 2011 at 9:33 AM, geo...@leadbetter.cc wrote: > I have written a script in an R text file that i can run through a terminal > window. My script though contains lots of code to interpret my input > arguments, which are then put into an SQL query to get the data I want to

Re: [R] R script HELP!

2011-02-18 Thread Jonathan P Daily
- Jubal Early, Firefly r-help-boun...@r-project.org wrote on 02/18/2011 10:29:55 AM: > [image removed] > > Re: [R] R script HELP! > > whizevans > > to: > > r-help > > 02/18/2011 11:06 AM > > Sent by: > > r-help-boun...@r-project.org > > &g

Re: [R] R script HELP!

2011-02-18 Thread whizevans
OK thanks Jonathon, I will have a go. Is the plotdir file technically my output file? Or what is this otherwise? Also, having never used R script before, is it not very good at reading data, may I have to alter my input file in excel first? Thanks -- View this message in context: http://r.789

Re: [R] R script HELP!

2011-02-18 Thread Jonathan P Daily
It looks to me like when you assign ID_min and ID_max that you want them to be vectors. In R, this is accomplished by ?c. Example: ID_min <- c(976834501, 290018099.3145, 1000) -- Jonathan P. Daily Technician - USGS Leetown Science Center 11649 Leetown Road Ke