Vroom Function - RDocumentation
vroom (version 1.0.2)
Description
Usage
Arguments
Examples
Run this code# NOT RUN {# Show path to example fileinput_file <- vroom_example("mtcars.csv") # Read from a path # Input sources -------------------------------------------------------------# Read from a pathvroom(input_file) # You can also use literal paths directly# vroom("mtcars.csv") # }# NOT RUN {# Including remote pathsvroom("https://github.com/r-lib/vroom/raw/master/inst/extdata/mtcars.csv") # }# NOT RUN {# Or directly from a string (must contain a trailing newline)vroom("x,y\n1,2\n3,4\n") # Column selection ----------------------------------------------------------# Pass column names or indexes directly to select themvroom(input_file, col_select = c(model, cyl, gear)) vroom(input_file, col_select = c(1, 3, 11)) # Or use the selection helpersvroom(input_file, col_select = starts_with("d")) # You can also rename specific columnsvroom(input_file, col_select = list(car = model, everything())) # Column types --------------------------------------------------------------# By default, vroom guesses the columns types, looking at 1000 rows# throughout the dataset.# You can specify them explcitly with a compact specification:vroom("x,y\n1,2\n3,4\n", col_types = "dc") # Or with a list of column types:vroom("x,y\n1,2\n3,4\n", col_types = list(col_double(), col_character())) # File types ----------------------------------------------------------------# csvvroom("a,b\n1.0,2.0\n", delim = ",") # tsvvroom("a\tb\n1.0\t2.0\n") # Other delimitersvroom("a|b\n1.0|2.0\n", delim = "|") # }Run the code above in your browser using DataLab
Từ khóa » Vroom Col_select
-
Get Started With Vroom
-
Vroom 1.0.0 - Tidyverse
-
Read A Delimited File Into A Tibble - Vroom
-
1 Introduction To Vroom | _main.utf8
-
The Id Column Should Also Be Selectable In Col_select() #110 - GitHub
-
Unable To Read A File When Setting `vroom(col_names = FALSE ...
-
10 Vroom: Fast Reading Of Delimited Files | R For Data Science
-
6 Importing Data, Fast! - Reproducible Research In R
-
Read A CSV Or Other Delimited File With Arrow
-
Get Started With Vroom
-
Vroom - Bountysource
-
Make The Function Accept As An Argument A File Path Or Object From ...
-
[PDF] Package 'vroom'
-
Rworkshop2020/community - Gitter