Learn R Programming

armada (version 0.1.0)

covariables: concatenation of the rownames of X and of the response vector Y.

Description

concatenation of the rownames of X and of the response vector Y.

Usage

covariables(X, Y)

Arguments

X

the matrix (or data.frame) of covariates, dimension n*p (n is the sample size, p the number of covariates). X must have rownames, which are the names of the n subjects (i.e. the user ID of the n subjects).

Y

the vector of the response, length n.

Value

a data.frame with dimension n*2: the first column gives the names of the subjects, and the second column is Y.

Details

internal function. Concatenation of the rownames of X (X is the matrix n*p of the covariates), and of the response vector Y. X must have rownames, which are the names of the n subjects (i.e. the user ID of the n subjects).

Examples

Run this code
# NOT RUN {
X<-matrix(rnorm(50),nrow=10)
rownames(X)<-letters[1:10]
covariables(X, 1:10)
# }

Run the code above in your browser using DataLab