Learn R Programming

magclass (version 3.74)

head.magpie: head/tail

Description

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

Usage

"head"(x, n1=3L, n2=6L, n3=2L, ...) "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

See Also

head, tail

Examples

Run this code
 data(population_magpie)
 head(population_magpie)
 tail(population_magpie,2,4,1)

Run the code above in your browser using DataLab