R/weight.mat.R

Defines functions weight.mat

Documented in weight.mat

#' Convert dataframe to matrix
#'
#' @param data dataframe of weight
#'
#' @return A matrix
#' @export
#'
#' @examples
#' weight.mat(data = weight)
weight.mat<- function(data){
  datam<- data[,-1]
  m<- as.matrix(datam)
  return(m)
}

Try the selection.index package in your browser

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

selection.index documentation built on Sept. 19, 2023, 5:09 p.m.