Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

fill.corner

Fill a "corner" of a matrix with values


Description

Fills one corner of a matrix with the supplied values, leaving the rest filled with a default value.

Usage

fill.corner(x,nrow,ncol,na.value=NA)

Arguments

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.

Details

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.

Value

An nrow by ncol matrix containing the values in x.

Author(s)

Jim Lemon


plotrix

Various Plotting Functions

v3.8-1
GPL (>= 2)
Authors
Jim Lemon, Ben Bolker, Sander Oom, Eduardo Klein, Barry Rowlingson, Hadley Wickham, Anupam Tyagi, Olivier Eterradossi, Gabor Grothendieck, Michael Toews, John Kane, Rolf Turner, Carl Witthoft, Julian Stander, Thomas Petzoldt, Remko Duursma, Elisa Biancotto, Ofir Levy, Christophe Dutang, Peter Solymos, Robby Engelmann, Michael Hecker, Felix Steinbeck, Hans Borchers, Henrik Singmann, Ted Toal, Derek Ogle, Darshan Baral, Ulrike Groemping, Bill Venables
Initial release
2021-01-21

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.