Advertisement
sreejith2904

Untitled

Feb 10th, 2017
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
R 0.40 KB | None | 0 0
  1. library(readxl)
  2.  
  3. # read_excel reads both xls and xlsx files
  4. read_excel("my-old-spreadsheet.xls")
  5. read_excel("my-new-spreadsheet.xlsx")
  6.  
  7. # Specify sheet with a number or name
  8. read_excel("my-spreadsheet.xls", sheet = "data")
  9. read_excel("my-spreadsheet.xls", sheet = 2)
  10.  
  11. # If NAs are represented by something other than blank cells,
  12. # set the na argument
  13. read_excel("my-spreadsheet.xls", na = "NA")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement