Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

33 lines
889B

  1. % Generated by roxygen2: do not edit by hand
  2. % Please edit documentation in R/tidyr_helpers.R
  3. \name{process_long}
  4. \alias{process_long}
  5. \title{Processes a long dataframe and converts it into a dataset that can be plotted}
  6. \usage{
  7. process_long(x, ids, key, value, ...)
  8. }
  9. \arguments{
  10. \item{x}{a long 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{...}{}
  14. }
  15. \value{
  16. }
  17. \description{
  18. Processes a long dataframe and converts it into a dataset that can be plotted
  19. }
  20. \examples{
  21. long <- data_frame(
  22. year = c(2010L, 2011L, 2010L, 2011L, 2010L, 2011L),
  23. person = c("Alice", "Alice", "Bob", "Bob", "Charlie", "Charlie"),
  24. sales = c(105, 110, 100, 97, 90, 95)
  25. )
  26. process_long(long, ids = "year", key = "person", value = "sales")
  27. process_long(long, ids = "year", key = "person", value = "sales") \%>\% static_plot
  28. }