Displaying 2 results from an estimated 2 matches for "drvr".
Did you mean:
drv
2012 Nov 21
1
remote connection to an Oracle database - using RODBC - RMySQL..?
...uses the KERBEROS_AUTHENTICATION.
I'm trying to connect R - so that it can access this database - do sql queries and convert the resulting tables into dataframes.
I am a novice in SQL and database access - but a friend provided me with the following approach:
library(DBI)
library(RMySQL)
drvr<-dbDriver("MySQL") #Or another driver, say from the RODBC package?
acon<-dbConnect(drvr, user="ENTER_USERID", dbname="ENTER_NAME", host="ENTER_HOST",
port=1521,password=NULL) #password maybe non-null?
cmds<-dbSendQuery(acon,statement=...
2012 Jun 15
2
Looking for Speed in a Toy Simulation Example
Dear List Members
I used to play around with R to answer the following question by
simulation (I am aware there is an easy explicit solution, but this is
intended to serve as instructional example).
Suppose you have a poker game with 6 players and a deck of 52 cards.
Compute the empirical frequencies of having a single-suit hand. The
way I want the result structured is a boolean nosimulation