selector: Extract information from API reply.

View source: R/urlhandlers.R

selectorR Documentation

Extract information from API reply.

Description

Extract file location information (sources and dests) from the API reply

Usage

selector(x, as.data.frame = FALSE)

Arguments

x

character. The return of composeUrl or the REST query generated from the portal https://cryo.land.copernicus.eu/finder/.

as.data.frame

logical. FALSE. If true the return is converted to a data.frame

Value

list or data.frame if as.data.frame==TURE

Author(s)

Matteo Mattiuzzi

Examples

## Not run: 
x <- composeUrl(productType = 'FSC', productIdentifier = 'T29UNV')
stopifnot(require(rjson))
x <- fromJSON(file = x)
selector(x)

## End(Not run)


MatMatt/clmsapi documentation built on Feb. 4, 2023, 9:08 a.m.