ds.mutate | R Documentation |
DataSHIELD implementation of dplyr::mutate
.
ds.mutate(
df.name = NULL,
tidy_expr = NULL,
newobj = NULL,
.keep = "all",
.before = NULL,
.after = NULL,
datasources = NULL
)
df.name |
Character specifying a serverside data frame or tibble. |
tidy_expr |
List of tidyselect syntax to be passed to dplyr::mutate. |
newobj |
Character specifying name for new server-side data frame. |
.keep |
Control which columns from
Grouping columns and columns created by |
.before |
<tidy-select> Optionally, control where new columns should appear (the default is
to add to the right hand side). See |
.after |
<tidy-select> Optionally, control where new columns should appear (the default is
to add to the right hand side). See |
datasources |
datashield connections object. |
No return value, called for its side effects. An object (typically a data frame or tibble)
with the name specified by newobj
is created on the server.
## Not run:
## First log in to a DataSHIELD session with mtcars dataset loaded.
ds.mutate(
df.name = "mtcars",
tidy_select = list(mpg_trans = cyl * 1000, new_var = (hp - drat) / qsec),
newobj = "df_with_new_cols"
)
## Refer to the package vignette for more examples.
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.