subsetmat.Rd 769 Bytes
 Ahmad Alkadri committed Jul 18, 2019 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 % Generated by roxygen2: do not edit by hand % Please edit documentation in R/operationareamat.R \name{subsetmat} \alias{subsetmat} \title{Function to subset a matrix.} \usage{ subsetmat(m, rowmin=1, rowmax, colmin=1, colmax) } \arguments{ \item{m}{A matrix object} \item{rowmin}{The first row for subsetting. Default value is 1.} \item{rowmax}{The last row for subsetting.} \item{colmin}{The first column for subsetting. Default value is 1.} \item{colmax}{The last column for subsetting.} } \value{ The standard deviation value of the subsetted area of matrix m } \description{ A function for subsetting a matrix. } \examples{ m <- matrix(rnorm(100, mean = 0, sd = 1), nrow = 10, ncol = 10) m_part <- subsetmat(m, rowmin = 1, rowmax = 3, colmin = 2, colmax = 5) }