R/csdata_wide_to_long.R

Defines functions csdata_wide_to_long

csdata_wide_to_long <- function(
    csdata,
    antigen_isos = c("HlyE_IgG", "HlyE_IgA")) {
  csdata %>%
    as_tibble() %>%
    pivot_longer(
      cols = antigen_isos,
      names_to = "antigen_iso",
      values_to = "value"
    )
}

Try the serocalculator package in your browser

Any scripts or data that you put into this service are public.

serocalculator documentation built on April 3, 2025, 7:35 p.m.