Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Reading data from Microsoft SQL Server into R

Tags:

sql-server

r

Is it possible to read the data stored in MS SQL server from R interface?

If it is I would be also thankful if anyone could show the way to do it.

like image 875
Niko Gamulin Avatar asked Oct 14 '10 12:10

Niko Gamulin


People also ask

Which package is used to import data from a SQL Server to R?

We can use the Rio package for data import and export in various formats using the R scripts. It is an external package and does not install when you configure the SQL Server Machine Learning for R. To check the Rio package in your environment, you can run the following script.

Can R read from database?

R can connect to almost any existing database type.


1 Answers

Tried the RODBC package already?

http://cran.r-project.org/web/packages/RODBC/index.html

There's also the RJDBC package : http://www.rforge.net/RJDBC/

See also : http://www.r-bloggers.com/connecting-to-sql-server-from-r-using-rjdbc/

like image 84
Joris Meys Avatar answered Sep 29 '22 06:09

Joris Meys