LoginSignup
2
2

More than 5 years have passed since last update.

RからExcel

Last updated at Posted at 2013-10-25

RからODBCでExcelを読む。(書くのも出来るらしいけど、やったことなし)

odbc.r
library(RODBC)
con <- odbcConnectExcel2007("odbc.xlsx")

## テーブル名 = [<シート名>$]
sql <- "select * from [Sheet1$]"
sqlQuery(con, sql)

odbcClose(con)
2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2