Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add example for set_pop_data #159

Merged
merged 1 commit into from
Dec 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.

Loading