Inspect a single (nested) row of a data frame
Arguments
- object
Object. Data structure that can be coerced to
data.frame
.- i
integer(1)
orcharacter(1)
. Row position or name.
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
#>