Re: [R] Lahman Baseball Data Using R DBI Package

2020-10-08 Thread Rui Barradas
ord like 'where' or 'select'. If you are doing this from a function, you may as well quote all the names. -Bill On Fri, Oct 2, 2020 at 6:18 PM Philip wrote: The \”2B\” worked. Have no idea why. Can you point me somewhere that can explain this to me. Thanks, Philip *From:* Bill Dunla

Re: [R] Lahman Baseball Data Using R DBI Package

2020-10-08 Thread Bill Dunlap
gt; > > > > > On Fri, Oct 2, 2020 at 7:34 PM Bill Dunlap > wrote: > > > > The double quotes are required by SQL if a name is not of the form > > letter-followed-by-any-number-of-letters-or-numbers or if the name is a > SQL > > keyword like 'where' or

Re: [R] Lahman Baseball Data Using R DBI Package

2020-10-07 Thread William Michels via R-help
no idea why. Can you point me somewhere that can > > explain this to me. > > > > Thanks, > > Philip > > > > *From:* Bill Dunlap > > *Sent:* Friday, October 2, 2020 3:54 PM > > *To:* Philip > > *Cc:* r-help > > *Subject:* Re: [R] Lahman Baseball Data

Re: [R] Lahman Baseball Data Using R DBI Package

2020-10-02 Thread Bill Dunlap
Philip wrote: > The \”2B\” worked. Have no idea why. Can you point me somewhere that can > explain this to me. > > Thanks, > Philip > > *From:* Bill Dunlap > *Sent:* Friday, October 2, 2020 3:54 PM > *To:* Philip > *Cc:* r-help > *Subject:* Re: [R] Lahman Baseball

Re: [R] Lahman Baseball Data Using R DBI Package

2020-10-02 Thread Bill Dunlap
Have you tried putting double quotes around 2B and 3B: "...2B, 3B, ..." -> "...\"2B\",\"3B\",..."? -Bill On Fri, Oct 2, 2020 at 3:49 PM Philip wrote: > I’m trying to pull data from one table (batting) in the Lahman Baseball > database. Notice X2B for doubles and X3B for triples – fourth and

[R] Lahman Baseball Data Using R DBI Package

2020-10-02 Thread Philip
I’m trying to pull data from one table (batting) in the Lahman Baseball database. Notice X2B for doubles and X3B for triples – fourth and fifth from the right. The dbGetQuery function runs fine when I leave there two out but I get error messages (in red) when I include 2B/3B or X2B/X3B.

Re: [R] DBI Package

2007-10-31 Thread Prof Brian Ripley
On Wed, 31 Oct 2007, Germán Carrillo wrote: Hello everyone! Congratulations by this gorgeous software. My name is Germán Carrillo, I'm writting from Colombia. I don't have much experience with R, reason why I use the R-GUI (version 2.5.1) on Windows. I have some problems with DBI package, I

Re: [R] DBI Package

2007-10-31 Thread elw
I have some problems with DBI package, I want to connect to PostgreSQL database but I don't know the way to do it. pg - dbDriver(PostgreSQL) ... nope. That won't work. you need the RdbiPgSQL package from Bioconductor. Along with DBI, as I recall.

Re: [R] DBI Package

2007-10-31 Thread Germán Carrillo
Ok, thanks to Prof Brian Ripley and to Elijah, I did the connection to PostgeSQL database with RODBC, it's simple. I will try with RdbiPgSQL in the next days. Thanks a lot. 2007/10/31, [EMAIL PROTECTED] [EMAIL PROTECTED]: I have some problems with DBI package, I want to connect to

[R] DBI Package

2007-10-30 Thread Germán Carrillo
Hello everyone! Congratulations by this gorgeous software. My name is Germán Carrillo, I'm writting from Colombia. I don't have much experience with R, reason why I use the R-GUI (version 2.5.1) on Windows. I have some problems with DBI package, I want to connect to PostgreSQL database but I