You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

36 line
844B

  1. % Generated by roxygen2: do not edit by hand
  2. % Please edit documentation in R/tidyr_helpers.R
  3. \name{process_wide}
  4. \alias{process_wide}
  5. \title{Processes a wide dataframe and converts it into a dataset that can be plotted}
  6. \usage{
  7. process_wide(x, ids, key, color_id = "lightgray", ...)
  8. }
  9. \arguments{
  10. \item{x}{a wide data frame}
  11. \item{ids}{a vector of id-variables that are already in the tidy-format}
  12. \item{key}{a vector of key-variables}
  13. \item{color_id}{the color for the id-body}
  14. \item{...}{}
  15. }
  16. \value{
  17. TODO
  18. }
  19. \description{
  20. Processes a wide dataframe and converts it into a dataset that can be plotted
  21. }
  22. \examples{
  23. wide <- data_frame(
  24. year = 2010:2011,
  25. Alice = c(105, 110),
  26. Bob = c(100, 97),
  27. Charlie = c(90, 95)
  28. )
  29. process_wide(wide, ids = "year", key = "person")
  30. process_wide(wide, ids = "year", key = "person") \%>\% static_plot
  31. }