R: Sample a percentage of a time series distance matrix

.sits_distances_sample {sits} | R Documentation

## Sample a percentage of a time series distance matrix

### Description

Takes a sits tibble with different labels and returns a new tibble. For a given field as a group criterion, this new table contains a given number or percentage of the total number of samples per group. Parameter n indicates the number of random samples with reposition. Parameter frac indicates a fraction of random samples without reposition. If frac > 1, no sampling is done.

### Usage

    .sits_distances_sample(distances, frac)

### Arguments

`distances` | Distances associated to a time series.
`frac` | Percentage of samples to pick.

### Value

Data.table with a fixed quantity of samples of informed labels and all other.

### Author(s)

Rolf Simoes, rolf.simoes@inpe.br

[Package sits version 0.11.0 Index]