Displaying 1 result from an estimated 1 matches for "inpmatrix".
Did you mean:
snpmatrix
2004 May 14
3
type checking --- just a thought
hi: would it be useful to build into R an optional mechanism that
typechecks arguments? for example,
sum.across <- function ( inpmatrix : matrixtype( dim[1]>1, dim[2]>3
) ) : vector { }
# this would define a sum.across function that can take matrices
or data sets, but not vectors,
# and which indicates that it will return a vector.
xsum <- sum.across( 1:10 ); # error
repeat <- function( series...