【问题标题】:Error: openxlsx can only read .xlsx files while reading .xslm file in R错误:在 R 中读取 .xslm 文件时,openxlsx 只能读取 .xlsx 文件
【发布时间】:2021-10-11 09:05:38
【问题描述】:
library(tidyverse)
library(openxlsx)
library(lubridate)
library(readxl)

source("global_config.R")


inputFile <- "../data/census.xlsm"
peopleData <-read.xlsx(inputFile, sheet = "peopleData", startRow = 16 )
view(peopleData)

我收到以下错误 错误:openxlsx 只能读取 .xlsx 文件 openxls 版本 4.2.4 readxl 版本 1.3.1

【问题讨论】:

标签: r readxl openxls


【解决方案1】:

尝试使用 read.xlsx2() 函数,这里有更详细的描述:http://cran.r-project.org/web/packages/xlsx/xlsx.pdf

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2021-08-04
    • 1970-01-01
    • 2020-07-07
    • 2018-11-27
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多