Answers for "reading xls in r"

R
0

read xlsx in r

 
require(RODBC)
conn = odbcConnectExcel("myfile.xlsx") # open a connection to the Excel file
sqlTables(conn)$TABLE_NAME # show all sheets
df = sqlFetch(conn, "Sheet1") # read a sheet
df = sqlQuery(conn, "select * from [Sheet1 $]") # read a sheet (alternative SQL sintax)
close(conn) # close the connection to the file
Posted by: Guest on July-19-2020
0

open xlsx with r

my_data <- read.table(file = "clipboard", 
                      sep = "t", header=TRUE)
Posted by: Guest on March-28-2021

Browse Popular Code Answers by Language