burst: ID and Bursts of an Object of Class ltraj

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Functions to get or set the attribute "id" or "burst" of the components of an object of class ltraj.

Usage

1
2
3
4
burst(ltraj)
burst(ltraj) <- value
id(ltraj)
id(ltraj) <- value

Arguments

ltraj

an object of class ltraj

value

a character vector of up to the same length as ltraj

Details

The functions id and burst are accessor functions, and id<- and burst<- are replacement function.

Value

For id and burst, a character vector of the same length as ltraj.

For id<- and burst<-, the updated object. (Note that the value of burst(x) <- value is that of the assignment, value, not the return value from the left-hand side.)

Author(s)

Clement Calenge clement.calenge@oncfs.gouv.fr

See Also

ltraj, names

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
data(puechcirc)
puechcirc

## To see the ID and the burst
id(puechcirc)
burst(puechcirc)

## Change the burst
burst(puechcirc) <- c("glou", "toto", "titi")
puechcirc

burst(puechcirc)[2] <- "new name"
puechcirc

## Change the ID
id(puechcirc)[id(puechcirc)=="CH93"] <- "WILD BOAR"
puechcirc


Search within the adehabitat package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.