Skip to contents

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 extent_crs
length(x)

# S4 method for records
length(x)

Arguments

x

a records object to compute its length.

Value

Length currently returns a non-negative integer of length 1

Examples

if (FALSE) {
# 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)
}