head.magpie | R Documentation |
head and tail methods for MAgPIE objects to extract the head or tail of an object
## S3 method for class 'magpie'
head(x, n1 = 3L, n2 = 6L, n3 = 2L, ...)
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. |
head returns the first n1 x n2 x n3 entries, tail returns the last n1 x n2 x n3 entries.
Jan Philipp Dietrich
head
, tail
pop <- maxample("pop")
head(pop)
tail(pop,2,4,1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.