R/as.row.R

"as.row" <-
function(x){

y<-NULL

# function y=as.row(x)
# input is row or column vector
# output is row vector
# modified from asrow.m, copyright
# Maarten Jansen 14 november 1997

x<-as.matrix(x)        #MAN:gives x dimensions for ncol,nrow

if (nrow(x)> ncol(x)){
	y<-t(x)
}
else{
	y<-x
}

y

}

Try the adlift package in your browser

Any scripts or data that you put into this service are public.

adlift documentation built on March 31, 2023, 11:03 p.m.