Learn R Programming

sits (version 0.10.0)

sits_merge.sits: Merge two satellite image time series

Description

This function merges the time series of two sits tibbles. To merge two series, we consider that they contain different attributes but refer to the same data cube, and spatio-temporal location. This function is useful to merge different bands of the same locations. For example, one may want to put the raw and smoothed bands for the same set of locations in the same tibble.

Usage

# S3 method for sits
sits_merge(data1, data2)

Arguments

data1

The first sits tibble to be merged.

data2

The second sits tibble to be merged.

Value

A merged sits tibble with a nested set of time series.

Examples

Run this code
# NOT RUN {
#' # Retrieve a time series with values of NDVI
data(point_ndvi)
# Filter the point using the whittaker smoother
point_ws.tb <- sits_whittaker(point_ndvi, lambda = 3.0)
# Plot the two points to see the smoothing effect
plot(sits_merge(point_ndvi, point_ws.tb))
# }

Run the code above in your browser using DataLab