R: Merge two data sets (time series or cubes)

sits_merge {sits} | R Documentation

## Merge two data sets (time series or cubes)

### Description

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.

To merge data cubes, they should share the same sensor, resolution, bounding box, timeline, and have different bands.

### Usage

    sits_merge(data1, data2)

### Arguments

`data1` | sits tibble or cube to be merged.
`data2` | sits tibble or cube to be merged.

### Value

merged data sets

### Author(s)

Gilberto Camara, gilberto.camara@inpe.br

### Examples

    {
    # Retrieve a time series with values of NDVI
    point_ndvi <- sits_select(point_mt_6bands, bands = "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))
    }

[Package sits version 0.11.0 Index]