R/longi_to_matrix1.R

Defines functions longi_to_matrix1

longi_to_matrix1  <- function(x){
  nmx <- colnames(x)
  dimx <- dim(x)
  p <- dimx[2]
  t <- dimx[1]
  x <- matrix(x,ncol = p,nrow = t)
  return(x)
}

Try the psychNET package in your browser

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

psychNET documentation built on April 14, 2020, 6:39 p.m.