Gdata package perl issue

后端 未结 10 2337
无人及你
无人及你 2021-02-07 05:03

I am attempting to follow this easy 2-minute video tutorial on importing an Excel spreadsheet into R as a data frame: http://www.screenr.com/QiN8

I followed each step, i

10条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-02-07 05:23

    R is searching for the xls or xlsx file, but is not finding it. So set the working directory where your Excel file is located (e.g. setwd("C:\....")) and run any of these script formats:

    read.xls("Potato.xls", perl = "C:\\Strawberry\\perl\\bin\\perl.exe")
    read.xls("Tomato.xls", perl = "C:\\Strawberry\\perl\\bin\\perl.exe")
    read.xls("Potato.xlsx", perl = "C:/Strawberry/perl/bin/perl.exe")
    read.xls("Tomato.xlsx", perl = "C:/Strawberry/perl/bin/perl.exe")
    

提交回复
热议问题