Learn R Programming

vegtable (version 0.1.8)

Extract: 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 vegtable
$(x, name)

# S4 method for vegtable,ANY $(x, name) <- value

# S4 method for coverconvert $(x, name)

# S4 method for coverconvert [(x, i)

# S4 method for coverconvert,coverconvert $(x, name) <- value

# S4 method for vegtable [(x, i, j, ..., drop = FALSE)

# S4 method for 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

Miguel Alvarez kamapu78@gmail.com

Examples

Run this code
## 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, ])

Run the code above in your browser using DataLab