Function to subset data formatted using the phenor package

pr_fm_subset(data, selection)

Arguments

data

structured data of type/class 'phenor', generated by the phenor pr_fm_...() functions

selection

vector of columns to select (logical) of the same length as the number of site years in the dataset

Value

Returns a subset of the original data, for cross validation experiments.

Examples


if (FALSE) {
# subset phenor formatted data
subset <- pr_fm_subset(data = phenocam_DB,
                        selection = 1:10)
}