Learn R Programming

vegtable (version 0.1.3)

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 [(x, i, j, ..., drop=FALSE)

# S4 method for coverconvert $(x, name)

Arguments

x

Object of class '>vegtable.

...

Further arguments passed to or from other methods.

name

A name to access.

i,j

Indices for access.

drop

A logical value passed to Extract.

Examples

Run this code
# NOT RUN {
library(vegtable)
data(Kenya_veg)

## 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