vroom_str: Structure of objects

Description Usage Arguments Examples

View source: R/altrep.R

Description

Similar to str() but with more information for Altrep objects.

Usage

1

Arguments

x

a vector

Examples

1
2
3
4
5
# when used on non-altrep objects altrep will always be false
vroom_str(mtcars)

mt <- vroom(vroom_example("mtcars.csv"), ",", altrep = c("chr", "dbl"))
vroom_str(mt)

Example output

'data.frame': 32 obs., 11 vars.:
$mpg:	altrep:false	type: double	length:32
$cyl:	altrep:false	type: double	length:32
$disp:	altrep:false	type: double	length:32
$hp:	altrep:false	type: double	length:32
$drat:	altrep:false	type: double	length:32
$wt:	altrep:false	type: double	length:32
$qsec:	altrep:false	type: double	length:32
$vs:	altrep:false	type: double	length:32
$am:	altrep:false	type: double	length:32
$gear:	altrep:false	type: double	length:32
$carb:	altrep:false	type: double	length:32
sh: 1: wc: Permission denied
Rows: 32
Columns: 12
Delimiter: ","
chr [ 1]: model
dbl [11]: mpg, cyl, disp, hp, drat, wt, qsec, vs, am, gear, carb

Use `spec()` to retrieve the guessed column specification
Pass a specification to the `col_types` argument to quiet this message
'tbl_df', 'tbl', and 'data.frame': 32 obs., 12 vars.:
$model:	altrep:true	type:vroom::vroom_chr	length:32	materialized:false
$mpg:	altrep:false	type: double	length:32
$cyl:	altrep:false	type: double	length:32
$disp:	altrep:false	type: double	length:32
$hp:	altrep:false	type: double	length:32
$drat:	altrep:false	type: double	length:32
$wt:	altrep:false	type: double	length:32
$qsec:	altrep:false	type: double	length:32
$vs:	altrep:false	type: double	length:32
$am:	altrep:false	type: double	length:32
$gear:	altrep:false	type: double	length:32
$carb:	altrep:false	type: double	length:32

vroom documentation built on Nov. 10, 2021, 5:08 p.m.