Re: [R] formula formatting/grammar for regression

2009-02-27 Thread BKMooney
This is just (or should be) just a simple example of what I would like to extend to further regression - which is why I was looking for a resource on the grammar. If I try: lm(ypts ~ exp(xpts)), I only get an intercept and one coefficient. And for the coefficient, I am not sure where that shou

Re: [R] Error in sqlCopy in RODBC

2008-12-01 Thread BKMooney
The exact syntax I am running in R is as follows: query <- " select * from tblHistorical where MyDate between '2008-11-21' and '2008-11-25' ; " sqlCopy(RemoteChannel, query, "NewTable", destchannel=LocalChannel, safer=TRUE, append=TRUE, rownames=FALSE, fast=FALSE) Both RemoteChannel and LocalCh

Re: [R] Error in sqlCopy in RODBC

2008-11-26 Thread BKMooney
x27;16'. And when this runs when "NewTable" is already defined with correct data types, I get the error: Error in sqlSave(destchannel, dataset, destination, verbose = verbose, : unable to append to table ‘NewTable’ It seems I can't get it to work in either scenario. Any i

[R] New to R - Errors in plotting

2008-11-06 Thread BKMooney
I am new to R and am running into trouble with the function plot. When I enter in the simple code: x<-1:4 y<-5:8 plot(x,y) I get a scatter plot with 4 points as expected. However, with my own data, A and B are both vectors of length ~85, each entry a decimal in [0,1]. Using the same plo