[R] RODBC looping sql script

2010-02-25 Thread Jason Gasper
create and ever expanding final table for loop, does anyone know how to index inside the Where clause of a sql statement (i.e., common.utility(vessel[i,1],vessel year[i,2])? -- Jason Gasper National Marine Fisheries Service Alaska Region, Sustainable Fisheries Division 709 W. 9th St. Ju

Re: [R] Auto execute R script

2009-11-12 Thread Jason Gasper
--no-restore --file=MorningStartup.r > morningsummary-log.txt Replace MorningStartup.r and morningsummary-log.txt with your R script and a log file name of your choice. HTH cedrick Jason Gasper wrote: Greetings, I am hoping someone can help me with a automation task. I would like to auto-run

[R] Auto execute R script

2009-11-12 Thread Jason Gasper
Greetings, I am hoping someone can help me with a automation task. I would like to auto-run a script at a scheduled time each night. Basically, this auto-run would would call sqlQuery() and save the results of some math to a table- basically archiving a live database table. Has anyone done t

Re: [R] vis.gam() contour plots

2009-10-13 Thread Jason Gasper
Thanks, that is a big help. David Winsemius wrote: On Oct 13, 2009, at 3:46 PM, Gavin Simpson wrote: On Mon, 2009-10-12 at 22:20 -0400, David Winsemius wrote: On Oct 12, 2009, at 8:20 PM, Jason Gasper wrote: # contour examples vis.gam(g, view=c("x1","x2"),plot.

[R] vis.gam() contour plots

2009-10-12 Thread Jason Gasper
Greetings, I have what I hope is a simple question. I would like to change my contour interval on the vis.gam( plot.type="contour") in the mgcv package. Is this a situation where I need to modify the function or is there a default value I can change? Thanks _

Re: [R] Car.proper C[] matrix

2008-09-16 Thread Jason Gasper
t;= 0; 0 otherwise pick[k,i]<-step(k-cumsum[i]-epsilon)*step(cumsum[i+1]-k) } C[k]<-1/ inprod(num[], pick[k,]) } epsilon <- 0.0001 Uwe Ligges wrote: If you want that people help to translate *code*, you have to specify it ... Uwe Ligges Jason Gasper wrote: I am hoping someone can help