0
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)

我收到以下错误 Error: openxlsx can only read .xlsx files openxls version 4.2.4 readxl version 1.3.1

4

1 回答 1

0

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

于 2021-08-06T13:16:24.773 回答