as.row {adlift} | R Documentation |
as.row
Description
This function returns a given vector as a row (with dimension).
Usage
as.row(x)
Arguments
x |
any vector or array |
Details
x can either be a vector with no dimension attributes (a list of values), a vector with dimensions, or a matrix/array. If x is a matrix/array, the function gives x if ncol(x)
is greater than or equal to nrow(x)
, or its transpose if ncol(x)
is less than or equal to nrow(x)
. For any input, the input is given non-null dimensions.
Value
y |
a vector identical to x, but given as a row. |
Author(s)
Matt Nunes (nunesrpackages@gmail.com), Marina Knight
See Also
Examples
X<-0:5
#
X
#
as.row(X)
#
#puts input into row (matrix)
#
Y<-matrix(0:5,6,1)
#
Y
#
as.row(Y)
#
#input forced into a row.
#
[Package adlift version 1.4-5 Index]