R/add_id_date_repeated.R

Defines functions add_id_date_repeated

Documented in add_id_date_repeated

#' Returns a dataframe with the Id, Date, and Repeated column added, which
#' are derived from the Animal.ID column.
#'
#' @param df dataframe having at least the Animal.ID column
#' @return a dataframe with the Id, Date, and Repeated column added
#' @export
add_id_date_repeated <- function(df) {
  data.frame(get_id_date_repeated(df$Animal.ID), df, stringsAsFactors = FALSE)
}
rmsharp/snprcspf documentation built on June 15, 2020, 11:21 a.m.