diff --git a/README.md b/README.md index 54633cb2..544bc94c 100644 --- a/README.md +++ b/README.md @@ -75,7 +75,7 @@ readxl_example() #> [5] "deaths.xls" "deaths.xlsx" "geometry.xls" "geometry.xlsx" #> [9] "type-me.xls" "type-me.xlsx" readxl_example("clippy.xls") -#> [1] "/private/tmp/Rtmpjectat/temp_libpath3b7822c649d8/readxl/extdata/clippy.xls" +#> [1] "/private/tmp/RtmpM1GkLC/temp_libpatha8e46f7f62bf/readxl/extdata/clippy.xls" ``` `read_excel()` reads both xls and xlsx files and detects the format from @@ -90,7 +90,7 @@ read_excel(xlsx_example) #> 1 5.1 3.5 1.4 0.2 setosa #> 2 4.9 3 1.4 0.2 setosa #> 3 4.7 3.2 1.3 0.2 setosa -#> # … with 147 more rows +#> # ℹ 147 more rows xls_example <- readxl_example("datasets.xls") read_excel(xls_example) @@ -100,7 +100,7 @@ read_excel(xls_example) #> 1 5.1 3.5 1.4 0.2 setosa #> 2 4.9 3 1.4 0.2 setosa #> 3 4.7 3.2 1.3 0.2 setosa -#> # … with 147 more rows +#> # ℹ 147 more rows ``` List the sheet names with `excel_sheets()`. @@ -120,7 +120,7 @@ read_excel(xlsx_example, sheet = "chickwts") #> 1 179 horsebean #> 2 160 horsebean #> 3 136 horsebean -#> # … with 68 more rows +#> # ℹ 68 more rows read_excel(xls_example, sheet = 4) #> # A tibble: 1,000 × 5 #> lat long depth mag stations @@ -128,7 +128,7 @@ read_excel(xls_example, sheet = 4) #> 1 -20.4 182. 562 4.8 41 #> 2 -20.6 181. 650 4.2 15 #> 3 -26 184. 42 5.4 43 -#> # … with 997 more rows +#> # ℹ 997 more rows ``` There are various ways to control which cells are read. You can even @@ -163,7 +163,7 @@ read_excel(xlsx_example, range = cell_cols("B:D")) #> 1 3.5 1.4 0.2 #> 2 3 1.4 0.2 #> 3 3.2 1.3 0.2 -#> # … with 147 more rows +#> # ℹ 147 more rows read_excel(xlsx_example, range = "mtcars!B1:D5") #> # A tibble: 4 × 3 #> cyl disp hp @@ -171,7 +171,7 @@ read_excel(xlsx_example, range = "mtcars!B1:D5") #> 1 6 160 110 #> 2 6 160 110 #> 3 4 108 93 -#> # … with 1 more row +#> # ℹ 1 more row ``` If `NA`s are represented by something other than blank cells, set the @@ -185,7 +185,7 @@ read_excel(xlsx_example, na = "setosa") #> 1 5.1 3.5 1.4 0.2 #> 2 4.9 3 1.4 0.2 #> 3 4.7 3.2 1.3 0.2 -#> # … with 147 more rows +#> # ℹ 147 more rows ``` If you are new to the tidyverse conventions for data import, you may