sample_x3p: Sample every X element of a data frame

Description Usage Arguments Value Examples

Description

Sample every X element of a data frame in x and y direction

Usage

1
sample_x3p(dframe, byxy = c(2, 2))

Arguments

dframe

data frame with x and y variable

byxy

(vector) of numeric value indicating the sapling resolution. If a single number, the same resolution is used for x and y.

Value

subset of the input variable

Examples

1
2
3
4
data(br411)
br411_fort <- fortify_x3p(br411)
br411_sample <- sample_x3p(br411_fort, byxy = c(4, 4))
head(br411_sample)

erichare/bulletr documentation built on May 16, 2019, 8:26 a.m.