records: Extracts the satellite records

recordsR Documentation

Extracts the satellite records

Description

returns the object records from an rtoi.

Usage

records(x)

## S4 method for signature 'rtoi'
records(x)

records(x) <- value

## S4 replacement method for signature 'rtoi,records'
records(x) <- value

Arguments

x

an rtoi object

value

a records object to be set to x.

Value

a set of records in x rtoi

Examples

## Not run: 
#' library(rsat)
# create a copy of navarre
file.copy(from=system.file("ex/Navarre",package="rsat"),
         to=tempdir(),
         recursive = TRUE)
# load example rtoi
navarre <- read_rtoi(file.path(tempdir(),"Navarre"))
print(navarre)

rcrds <- records(navarre)

records(navarre)<-rcrds[1]
print(navarre)

records(navarre) <- rcrds
print(navarre)
unlink(file.path(tempdir(),"Navarre"),recursive=TRUE)

## End(Not run)

rsat documentation built on March 18, 2022, 5:40 p.m.