-
Notifications
You must be signed in to change notification settings - Fork 78
/
sits_pred_features.Rd
35 lines (35 loc) · 1.12 KB
/
sits_pred_features.Rd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/sits_predictors.R
\name{sits_pred_features}
\alias{sits_pred_features}
\title{Obtain numerical values of predictors for time series samples}
\usage{
sits_pred_features(pred)
}
\arguments{
\item{pred}{X-Y predictors: a data.frame with one row per sample.}
}
\value{
The Y predictors for the sample: data.frame with one row per sample.
}
\description{
Predictors are X-Y values required for machine learning
algorithms, organized as a data table where each row corresponds
to a training sample. The first two columns of the predictors table
are categorical ("label_id" and "label"). The other columns are
the values of each band and time, organized first by band and then by time.
This function returns the numeric values associated to each sample.
}
\note{
Please refer to the sits documentation available in
<https://e-sensing.github.io/sitsbook/> for detailed examples.
}
\examples{
if (sits_run_examples()) {
pred <- sits_predictors(samples_modis_ndvi)
features <- sits_pred_features(pred)
}
}
\author{
Gilberto Camara, \email{[email protected]}
}