head-methods: head/tail

Description Usage Arguments Value Author(s) See Also Examples

Description

head and tail methods for MAgPIE objects to extract the head or tail of an object

Usage

1
2
3
4
## S3 method for class 'magpie'
head(x, n1=3L, n2=6L, n3=2L, ...)
       ## S3 method for class 'magpie'
tail(x, n1=3L, n2=6L, n3=2L, ...)

Arguments

x

MAgPIE object

n1,n2,n3

number of lines in first, second and third dimension that should be returned. If the given number is higher than the length of the dimension all entries in this dimension will be returned.

...

arguments to be passed to or from other methods.

Value

head returns the first n1 x n2 x n3 entries, tail returns the last n1 x n2 x n3 entries.

Author(s)

Jan Philipp Dietrich

See Also

head, tail

Examples

1
2
3
 data(population_magpie)
 head(population_magpie)
 tail(population_magpie,2,4,1)


Search within the magclass 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.