I am trying to read a range into a data.frame from a xlsm workbook. Can I do this with the xlsx package in R? If not, does anyone know of a way to do it?
Thank you!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Did you try using read.xlsx or read.xlsx2 as described in the manual?
http://cran.r-project.org/web/packages/xlsx/xlsx.pdf
If these do not work with your file format, and you are trying to access tabular data you might want to open the .xlsm and export your data to csv format.
These are easily imported uisng
read.csv('filename.csv')