Skip to content

Commit

Permalink
Merge pull request #159 from atorus-research/gh_issue_74
Browse files Browse the repository at this point in the history
Add example for set_pop_data
  • Loading branch information
asbates committed Dec 14, 2023
2 parents 8aa428f + ecf617f commit a30dd2e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions R/table_bindings.R
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ set_header_n <- function(table, value) {
#'
#' pop_data(tab) <- mtcars
#'
#' tab <- tplyr_table(iris, Species) %>%
#' set_pop_data(mtcars)
#' @export
#' @rdname pop_data
pop_data <- function(table) {
Expand All @@ -108,6 +110,7 @@ pop_data <- function(table) {
#'
#' @export
#' @rdname pop_data
#'
set_pop_data <- function(table, pop_data) {
pop_data_name <- enexpr(pop_data)
# table should be a data.frame
Expand Down
2 changes: 2 additions & 0 deletions man/pop_data.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit a30dd2e

Please sign in to comment.