dm_select | R Documentation |
Select columns of your dm
using syntax that is similar to dplyr::select()
.
dm_select(dm, table, ...)
dm |
A |
table |
A table in the |
... |
One or more unquoted expressions separated by commas.
You can treat
variable names as if they were positions, and use expressions like Use named arguments, e.g. The arguments in ... are automatically quoted and evaluated in a context where
column names represent column positions.
They also support unquoting and splicing.
See See select helpers for more details, and the examples about tidyselect helpers, such as |
If key columns are renamed, then the meta-information of the dm
is updated accordingly.
If key columns are removed, then all related relations are dropped as well.
An updated dm
with the columns of table
reduced and/or renamed.
dm_nycflights13() %>%
dm_select(airports, code = faa, altitude = alt)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.