A dataset containing example data that can be nested. Mainly used for examples and testing.
Format
A tibble with 1000 rows and 7 variables
- id
A column that can be nested, ranging from 1 to 20.
- id2
Another column that can be nested, ranging from 1 to 10.
- x
A numeric column that depends on 'id'.
- y
A sequential numeric column (with some added randomness), independent of the other columns.
- z
A column dependent on id, id2, x and y.
- a
A randomly generated numeric column, ranging from 1 to 100.
- b
A randomly generated numeric column, centred around 50.
Examples
example_nested_data
#> # A tibble: 1,000 × 7
#> id id2 x y z a b
#> <int> <int> <int> <dbl> <dbl> <dbl> <dbl>
#> 1 1 1 49 48.5 29.1 44.7 50.0
#> 2 1 1 50 64.2 29.7 40.2 64.9
#> 3 1 1 51 -19.4 26.6 43.2 38.0
#> 4 1 1 52 41.0 28.8 66.4 61.7
#> 5 1 1 53 -94.2 23.9 18.2 -1.66
#> 6 1 1 54 72.6 30.0 83.8 38.8
#> 7 1 1 55 -91.5 24.0 91.7 40.7
#> 8 1 1 56 -50.5 25.5 79.8 55.4
#> 9 1 1 57 90.3 30.6 50.3 33.8
#> 10 1 1 58 32.4 28.6 25.4 20.5
#> # ℹ 990 more rows