Learn R Programming

bulletr (version 0.1)

sample_x3p: Sample every X element of a data frame

Description

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

Usage

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

Run this code
data(br411)
br411_fort <- fortify_x3p(br411)
br411_sample <- sample_x3p(br411_fort, byxy = c(4, 4))
head(br411_sample)

Run the code above in your browser using DataLab