XY vector extractors

xy_x(x)

xy_y(x)

xy_z(x)

xy_m(x)

Arguments

x

An xy() vector

Value

Components of the xy() vector or NULL if the dimension is missing

Examples

x <- xyz(1:5, 6:10, 11:15)
xy_x(x)
#> [1] 1 2 3 4 5
xy_y(x)
#> [1]  6  7  8  9 10
xy_z(x)
#> [1] 11 12 13 14 15
xy_m(x)
#> NULL