Skip to content

Commit

Permalink
Have to wrap custom function in all.
Browse files Browse the repository at this point in the history
  • Loading branch information
dereckmezquita committed Jul 29, 2024
1 parent 5fe17e4 commit 6d7102c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vignettes/intro-to-interface.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ PersonFrame <- type.frame(
name = character,
age = numeric,
is_student = logical,
email = function(x) all(grepl("^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}$", x))
email = function(x) all(grepl("^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\\.[a-zA-Z]{2,}$", x)) # functions are applied to whole column
),
freeze_n_cols = FALSE,
row_callback = function(row) {
Expand Down

0 comments on commit 6d7102c

Please sign in to comment.