R/fn.R

Defines functions fn

Documented in fn

#' Force numeric
#' For when you have to transform a data.frame to a vector of numbers (e.g. for plotting), to save two long commands
#'
#' @param data.frame data frame to transform. It must contain only values that can be transformed to numeric
#'
#' @return A numeric vector
#'
#' @examples
#'
#' @export
#'
fn<-function(data.frame){
unlist(as.numeric(as.matrix(data.frame)))
}
MoisesExpositoAlonso/moiR documentation built on Dec. 24, 2021, 10:12 p.m.