sits_labels_sample: Sample a percentage of a time series

Description Usage Arguments Value Author(s)

Description

takes a sits table with different labels and returns a new table. For each label, this new table contains a percentage of the total number of samples per label

Usage

1
sits_labels_sample(data.tb, samples.lst)

Arguments

data.tb

input SITS table

samples.lst

a named list with the nambber of samples to be randomly picked from data input. The labels are the list names, and the numbers of samples the list values. If the size of a sample is greater than the number of actual samples of that label in data input, then sampling procedure will be realized with replacement. If no entry for a given label is informed, all samples of that label will be returned

Value

result.tb the new SITS table with a fixed quantity of samples of informed labels and all other

Author(s)

Rolf Simoes, rolf.simoes@inpe.br


luizassis/sits documentation built on May 30, 2019, 7:15 p.m.