Skip to contents

Get the lineage of a survey dataset.

Usage

get_lineage(x, slice = NULL, pluck = NULL)

Arguments

x

A survey dataset.

slice

Slice to apply to the lineage data frame. If slice = 0, last row will be returned. If slice < 0, nrow - slice row will be removed (e.g., slice = -1 will return second last row).

pluck

Column to pluck from the lineage data frame.

Examples

x <- forsta_get_data("selfserve/57a/250405") |> step_prepare_forsta() 
#> Error in forsta_get_data("selfserve/57a/250405"): Unauthorized (HTTP 401).
get_lineage(x)
#> Error: object 'x' not found
get_lineage(x, 1) # Return first row
#> Error: object 'x' not found
get_lineage(x, 0) # Return last row
#> Error: object 'x' not found
get_lineage(x, -1) # Return second last row
#> Error: object 'x' not found
get_lineage(x, 2, ".cols") # Return second row `.cols`
#> Error: object 'x' not found