Description Usage Arguments Details Value Examples
Length, dim, print, format, head and tail methods for vector-like objects, from this package.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 | ## S3 method for class 'GeomObject'
print(x, ...)
## S3 method for class 'MImage'
print(x, ...)
## S3 method for class 'SImage'
print(x, ...)
## S3 method for class 'ObjectArray'
length(x)
## S3 method for class 'SectMatrix'
length(x)
## S3 method for class 'ObjectArray'
dim(x)
## S3 method for class 'SectMatrix'
dim(x)
## S3 method for class 'ObjectArray'
dimnames(x)
## S3 method for class 'SectMatrix'
dimnames(x)
## S3 replacement method for class 'ObjectArray'
dimnames(x) <- value
## S3 replacement method for class 'SectMatrix'
dimnames(x) <- value
## S3 method for class 'VecLike'
print(x, ...)
## S3 method for class 'ObjectArray'
format(x, ...)
## S3 method for class 'SectMatrix'
format(x, ..., na.string="")
## S3 method for class 'ZERO'
format(x, ...)
## S3 method for class 'VecLike'
head(x, n=6, ...)
## S3 method for class 'raster'
head(x, ...)
## S3 method for class 'VecLike'
tail(x, n=6, ...)
## S3 method for class 'raster'
tail(x, ...)
|
x |
A suitable object |
.
na.string |
String, what to format NAs as. |
n |
Integer, the number of items. |
value |
A list of character vectors, matching the dimensions of the object. |
... |
Ignored. |
Note that the dimensions of object arrays and nested matrices are the dimensions of the top level object. However, the dimensions of sectioned matrices (including partitioned matrices) are the dimensions of the combined matrix.
The format method for ObjectArray, calls the objtag function, for each of its elements.
The format method for sectioned and partitioned matrices, adds plain-text markup, for separators and section boxes.
Most functions perform the same action as standard R functions.
The format methods return formatted character matrices.
Currently, some of the head, tail functions return formatted character matrices, however, it's possible this may change in the future.
1 2 3 4 5 6 7 8 9 10 11 12 | x <- matrix (1:100, 10, 10)
pm <- as.PartMatrix (x, 5, c (2, 4, 6, 8) )
nm <- as.NestMatrix (pm)
dim (nm)
dim (pm)
head (nm, 2)
head (pm, 2)
nm
pm
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.