print.multipol | R Documentation |
Print methods for multipols
## S3 method for class 'multipol'
print(x, ...)
do_dimnames(a, include.square.brackets = getOption("isb"), varname =
getOption("varname"), xyz = getOption("xyz"))
## S3 method for class 'multipol'
as.character(x, ..., xyz = getOption("xyz"), varname =
getOption("varname"))
a,x |
Multipol or array |
include.square.brackets |
Boolean with |
varname |
String to describe root variable name (eg
|
xyz |
Boolean with default |
... |
Further arguments (currently ignored) |
Function do_dimnames()
is a helper function that takes an array
and gives it dimnames appropriate for expression as a multipol. Default
behaviour is governed by options isb
, varname
, and
xyz
. The function might be useful but it is really intended to
be called by print.multipol()
.
The default behaviour of do_dimnames()
and as.character()
,
and hence the print method for multipols, may be modified by using the
options()
function. See examples section below.
Robin K. S. Hankin
ones(2,5)
options("showchars" = TRUE)
ones(2,5)
options("xyz" = FALSE)
ones(2,5)
options("varname" = "fig")
ones(2,5)
options("showchars" = FALSE)
ones(2,5)
do_dimnames(matrix(0,2,3),varname="fig",include=TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.