Extract: Select or replace elements in objects

ExtractR Documentation

Select or replace elements in objects

Description

Methods for quick access to slot header of vegtable objects or for access to single cover scales in coverconvert objects. Also replacement methods are implemented.

Usage

## S4 method for signature 'vegtable'
x$name

## S4 replacement method for signature 'vegtable,ANY'
x$name <- value

## S4 method for signature 'coverconvert'
x$name

## S4 method for signature 'coverconvert'
x[i]

## S4 replacement method for signature 'coverconvert,coverconvert'
x$name <- value

## S4 method for signature 'vegtable'
x[i, j, ..., drop = FALSE]

## S4 replacement method for signature 'vegtable'
x[i, j] <- value

Arguments

x

Object of class vegtable.

name

A name to access.

value

Either a vectors or a list, used as replacement.

i, j

Indices for access.

...

Further arguments passed to or from other methods.

drop

A logical value passed to Extract.

Author(s)

Miguel Alvarez kamapu78@gmail.com

Examples

## Range of latitude values in database
range(Kenya_veg$LATITUDE)

## Summary of countries
summary(Kenya_veg$COUNTRY)
summary(droplevels(Kenya_veg$COUNTRY))

## First 5 samples
summary(Kenya_veg[1:5, ])

kamapu/vegtables documentation built on Feb. 17, 2024, 8:29 a.m.