Closed roualdes closed 5 years ago
Appears to be fixed now (I've updated the embedded xls).
library(readxl)
URL <- "https://www.ers.usda.gov/webdocs/DataFiles/48731/DataDownload.xls"
dest <- "issue-509.xls"
download.file(URL, dest, mode = "wb")
read_excel(dest, sheet = "LOCAL")
#> # A tibble: 3,143 x 100
#> FIPS State County DIRSALES_FARMS07 DIRSALES_FARMS12 PCH_DIRSALES_FA…
#> <chr> <chr> <chr> <dbl> <dbl> <dbl>
#> 1 01001 AL Autau… 25 51 104
#> 2 01003 AL Baldw… 80 103 28.7
#> 3 01005 AL Barbo… 18 13 -27.8
#> 4 01007 AL Bibb 12 13 8.33
#> 5 01009 AL Blount 84 88 4.76
#> 6 01011 AL Bullo… 13 12 -7.69
#> 7 01013 AL Butler 11 31 182.
#> 8 01015 AL Calho… 35 50 42.9
#> 9 01017 AL Chamb… 15 22 46.7
#> 10 01019 AL Chero… 23 14 -39.1
#> # … with 3,133 more rows, and 94 more variables: PCT_LOCLFARM07 <dbl>,
#> # PCT_LOCLFARM12 <dbl>, PCT_LOCLSALE07 <dbl>, PCT_LOCLSALE12 <dbl>,
#> # DIRSALES07 <dbl>, DIRSALES12 <dbl>, PCH_DIRSALES_07_12 <dbl>,
#> # PC_DIRSALES07 <dbl>, PC_DIRSALES12 <dbl>, PCH_PC_DIRSALES_07_12 <dbl>,
#> # FMRKT09 <dbl>, FMRKT16 <dbl>, PCH_FMRKT_09_16 <dbl>, FMRKTPTH09 <dbl>,
#> # FMRKTPTH16 <dbl>, PCH_FMRKTPTH_09_16 <dbl>, FMRKT_SNAP16 <dbl>,
#> # PCT_FMRKT_SNAP16 <dbl>, FMRKT_WIC16 <dbl>, PCT_FMRKT_WIC16 <dbl>,
#> # FMRKT_WICCASH16 <dbl>, PCT_FMRKT_WICCASH16 <dbl>, FMRKT_SFMNP16 <dbl>,
#> # PCT_FMRKT_SFMNP16 <dbl>, FMRKT_CREDIT16 <dbl>,
#> # PCT_FMRKT_CREDIT16 <dbl>, FMRKT_FRVEG16 <dbl>,
#> # PCT_FMRKT_FRVEG16 <dbl>, FMRKT_ANMLPROD16 <dbl>,
#> # PCT_FMRKT_ANMLPROD16 <dbl>, FMRKT_BAKED16 <dbl>,
#> # PCT_FMRKT_BAKED16 <dbl>, FMRKT_OTHERFOOD16 <dbl>,
#> # PCT_FMRKT_OTHERFOOD16 <dbl>, VEG_FARMS07 <dbl>, VEG_FARMS12 <dbl>,
#> # PCH_VEG_FARMS_07_12 <dbl>, VEG_ACRES07 <dbl>, VEG_ACRES12 <dbl>,
#> # PCH_VEG_ACRES_07_12 <dbl>, VEG_ACRESPTH07 <dbl>, VEG_ACRESPTH12 <dbl>,
#> # PCH_VEG_ACRESPTH_07_12 <dbl>, FRESHVEG_FARMS07 <dbl>,
#> # FRESHVEG_FARMS12 <dbl>, PCH_FRESHVEG_FARMS_07_12 <dbl>,
#> # FRESHVEG_ACRES07 <dbl>, FRESHVEG_ACRES12 <dbl>,
#> # PCH_FRESHVEG_ACRES_07_12 <dbl>, FRESHVEG_ACRESPTH07 <dbl>,
#> # FRESHVEG_ACRESPTH12 <dbl>, PCH_FRESHVEG_ACRESPTH_07_12 <dbl>,
#> # ORCHARD_FARMS07 <dbl>, ORCHARD_FARMS12 <dbl>,
#> # PCH_ORCHARD_FARMS_07_12 <dbl>, ORCHARD_ACRES07 <dbl>,
#> # ORCHARD_ACRES12 <dbl>, PCH_ORCHARD_ACRES_07_12 <dbl>,
#> # ORCHARD_ACRESPTH07 <dbl>, ORCHARD_ACRESPTH12 <dbl>,
#> # PCH_ORCHARD_ACRESPTH_07_12 <dbl>, BERRY_FARMS07 <dbl>,
#> # BERRY_FARMS12 <dbl>, PCH_BERRY_FARMS_07_12 <dbl>, BERRY_ACRES07 <dbl>,
#> # BERRY_ACRES12 <dbl>, PCH_BERRY_ACRES_07_12 <dbl>,
#> # BERRY_ACRESPTH07 <dbl>, BERRY_ACRESPTH12 <dbl>,
#> # PCH_BERRY_ACRESPTH_07_12 <dbl>, SLHOUSE07 <dbl>, SLHOUSE12 <dbl>,
#> # PCH_SLHOUSE_07_12 <dbl>, GHVEG_FARMS07 <dbl>, GHVEG_FARMS12 <dbl>,
#> # PCH_GHVEG_FARMS_07_12 <dbl>, GHVEG_SQFT07 <dbl>, GHVEG_SQFT12 <dbl>,
#> # PCH_GHVEG_SQFT_07_12 <dbl>, GHVEG_SQFTPTH07 <dbl>,
#> # GHVEG_SQFTPTH12 <dbl>, PCH_GHVEG_SQFTPTH_07_12 <dbl>, FOODHUB16 <dbl>,
#> # CSA07 <dbl>, CSA12 <dbl>, PCH_CSA_07_12 <dbl>, AGRITRSM_OPS07 <dbl>,
#> # AGRITRSM_OPS12 <dbl>, PCH_AGRITRSM_OPS_07_12 <dbl>,
#> # AGRITRSM_RCT07 <dbl>, AGRITRSM_RCT12 <dbl>,
#> # PCH_AGRITRSM_RCT_07_12 <dbl>, FARM_TO_SCHOOL09 <dbl>,
#> # FARM_TO_SCHOOL13 <dbl>
Created on 2018-12-13 by the reprex package (v0.2.1.9000)
Big up @jennybc for maintaining a great R package and Chico State's Fall 2018 MATH 385: Introduction to Data Science for discovering this issue. Thanks to you both!
The following XLS file does not open with the latest version of readxl, but does open with v1.0.0.
I realize these are not fun issues to track down. Thanks for looking into this.