Skip to contents

Inspect a single (nested) row of a data frame

Usage

inspectRow(object, i)

Arguments

object

Object. Data structure that can be coerced to data.frame.

i

integer(1) or character(1). Row position or name.

Value

Console output. Invisibly returns dropped data structure.

Note

Updated 2023-12-13.

Examples

object <- datasets::mtcars
inspectRow(object, i = 1L)
#> $mpg
#> [1] 21
#> 
#> $cyl
#> [1] 6
#> 
#> $disp
#> [1] 160
#> 
#> $hp
#> [1] 110
#> 
#> $drat
#> [1] 3.9
#> 
#> $wt
#> [1] 2.62
#> 
#> $qsec
#> [1] 16.46
#> 
#> $vs
#> [1] 0
#> 
#> $am
#> [1] 1
#> 
#> $gear
#> [1] 4
#> 
#> $carb
#> [1] 4
#>