length: Length of an object

length,extent_crs-methodR Documentation

Length of an object

Description

Get or set the length of vectors (including lists) and factors, and of any other R object for which a method has been defined.

Usage

## S4 method for signature 'extent_crs'
length(x)

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

Arguments

x

a records object to compute its length.

Value

Length currently returns a non-negative integer of length 1

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 the records
rcds <- records(navarre)

length(rcds)

## End(Not run)

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