R/to_long.R

Defines functions to_long

Documented in to_long

#' Convert a data frame from short to long form
#' @param df a data frame
#' @export
to_long <- function(df = utils::read.csv("result.csv")) {
  first_nltt_col_index <- raket::rkt_get_n_params() + 1
  tidyr::gather(df, "i", "nltt", first_nltt_col_index:ncol(df))
}
richelbilderbeek/raket documentation built on Dec. 31, 2019, 7:41 p.m.