Skip to content

Commit

Permalink
create column: add funs to allowed list + NEWS
Browse files Browse the repository at this point in the history
  • Loading branch information
pvictor committed Apr 4, 2024
1 parent 62e804b commit 9fd1d8d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# datamods 1.4.6

* New module `create_column_ui()` / `create_column_server()` to add new column based on an expression to a `data.frame`.
* New module `cut_variable_ui()` / `cut_variable_server()` to cut a numeric factor into several interval.


# datamods 1.4.5
Expand Down
4 changes: 3 additions & 1 deletion R/create-column.R
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,9 @@ list_allowed_operations <- function() {
c("max", "min", "range", "prod", "sum", "any", "all"),
"pmin", "pmax", "mean",
"paste", "paste0", "substr", "nchar", "trimws",
"gsub", "sub", "grepl", "ifelse"
"gsub", "sub", "grepl", "ifelse", "length",
"as.numeric", "as.character", "as.integer", "as.Date", "as.POSIXct",
"as.factor", "factor"
)
}

Expand Down
2 changes: 1 addition & 1 deletion man/create-column.Rd

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

0 comments on commit 9fd1d8d

Please sign in to comment.