# NOT RUN {
# }
# NOT RUN {
# This example is specific to SQL Server
# To instead pull data from Oracle see here
# https://cran.r-project.org/web/packages/ROracle/ROracle.pdf
# To pull data from MySQL see here
# https://cran.r-project.org/web/packages/RMySQL/RMySQL.pdf
# To pull data from Postgres see here
# https://cran.r-project.org/web/packages/RPostgreSQL/RPostgreSQL.pdf
connectionString <- '
driver={SQL Server};
server=localhost;
database=SAM;
trustedConnection=true
'
query <- '
SELECT
A1CNBR
FROM SAM.dbo.HCRDiabetesClinical
'
df <- selectData(connectionString, query)
head(df)
# }
Run the code above in your browser using DataLab