R/format_data.R

Defines functions format_data

Documented in format_data

#' Names and reshapes the data so that it is easy to plot
#' 
#' @param solved_system The output from ode that needs to be formatted
#' @export

format_data <- function(solved_system){
  names(solved_system) <- c("time", paste("Strain", 1:(ncol(solved_system)-3), sep = " "), "tCells", "notMutation")
  
  plotVars <- melt(solved_system, id = "time")
  
  return(plotVars)
}
philliplab/hdsResistanceModel documentation built on May 25, 2019, 5:05 a.m.