View source: R/color2D.matplot.R
fill.corner | R Documentation |
Fills one corner of a matrix with the supplied values, leaving the rest filled with a default value.
fill.corner(x,nrow,ncol,na.value=NA)
x |
A vector of values. |
nrow,ncol |
The number of rows and columns in the matrix to be returned. |
na.value |
The default value for unfilled cells. |
‘fill.corner’ creates an nrow by ncol matrix and fills the lower left corner with the values supplied in ‘x’. If there are more values in ‘x’ than cells in the matrix, only the first nrow*ncol values will be inserted.
An nrow by ncol matrix containing the values in ‘x’.
Jim Lemon
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.