From 7513c25b285586495f4ae30addff40d6beb3afff Mon Sep 17 00:00:00 2001 From: Fonti Kar Date: Thu, 15 Aug 2024 15:40:24 -0700 Subject: [PATCH] Updated example to better illustrate example in helpfile --- R/read_excel.R | 3 ++- inst/extdata/deaths.xls | Bin 74752 -> 74752 bytes 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/R/read_excel.R b/R/read_excel.R index 32990784..8fbf423e 100644 --- a/R/read_excel.R +++ b/R/read_excel.R @@ -63,7 +63,8 @@ NULL #' read_excel(datasets, col_types = "text") #' #' # Specify some col_types and guess others -#' read_excel(datasets, col_types = rep("guess", 11)) +#' read_excel(readxl_example("deaths.xlsx"), skip = 4, n_max = 10, col_names = TRUE, +#' col_types = c("text", "text", "guess", "guess", "guess", "guess")) #' #' # Accomodate a column with disparate types via col_type = "list" #' df <- read_excel(readxl_example("clippy.xlsx"), col_types = c("text", "list")) diff --git a/inst/extdata/deaths.xls b/inst/extdata/deaths.xls index bb3910429d85401aadfbf46763ce2102270b05be..e1060381c6001ad28336815d47df6794d5c2a530 100644 GIT binary patch delta 60 zcmZoT!P0PoWkU`Nd%&aB^2zUSZ7ycn$|%9fz~GjjSCXmVomiycpO%)HoT?C7oLV&5 QkuAJ=I@|W?Y>b(*0J*;vegFUf delta 60 zcmV-C0K@-)$OM4M1h8xb2hh)<$=kk08MFQa&L2QW^^D=W@c$)Wgt~^ SWpa~223LcZ2Dg_60cjlt=od!-