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)
}
zankrut20/selection.index documentation built on Oct. 15, 2024, 5:29 p.m.