dates: Get/set the dates from a 'records' or an 'rtoi'

datesR Documentation

Get/set the dates from a records or an rtoi

Description

Get/set the dates from a records or an rtoi

Usage

dates(x)

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

dates(x) <- value

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

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

Arguments

x

a records or an rtoi object.

value

the new date to asign

Value

returns a vector of Date class

Examples

## Not run: 
# load example rtoi
file.copy(from=system.file("ex/Navarre",package="rsat"),
         to=tempdir(),
         recursive = TRUE)

navarre <- read_rtoi(file.path(tempdir(),"Navarre"))

# get a vector of dates includes in rtoi
dates(navarre)

# get the records
rcds <- records(navarre)

# coerce the records to dataframr
dates(rcds)

## End(Not run)

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