Learn R Programming

sits (version 1.5.2)

sits_get_class: Get values from classified maps

Description

Given a set of lat/long locations and a classified cube, retrieve the class of each point.

Usage

sits_get_class(cube, samples)

# S3 method for default sits_get_class(cube, samples)

# S3 method for csv sits_get_class(cube, samples)

# S3 method for shp sits_get_class(cube, samples)

# S3 method for sf sits_get_class(cube, samples)

# S3 method for sits sits_get_class(cube, samples)

# S3 method for data.frame sits_get_class(cube, samples)

Value

A tibble of with columns <longitude, latitude, start_date, end_date, label>.

Arguments

cube

Classified data cube from where data is to be retrieved. (class "class_cube").

samples

Location of the samples to be retrieved. Either a tibble of class "sits", an "sf" object, the name of a shapefile or csv file, or a data.frame with columns "longitude" and "latitude"

Author

Gilberto Camara