Description Usage Arguments Details Value Examples
View source: R/stw_mutate_meta.R
Use this function to modify a metadata object,
using syntax along the same lines as dplyr::mutate()
.
1 2 3 4 5 6 7 8 9 10 | stw_mutate_meta(...)
## Default S3 method:
stw_mutate_meta(...)
## S3 method for class 'stw_meta'
stw_mutate_meta(meta, ...)
## S3 method for class 'stw_dataset'
stw_mutate_meta(dataset, ...)
|
... |
Name-value pairs, passed on to |
meta |
Object with S3 class |
dataset |
Object with S3 class |
You can send a metadata (stw_meta
) object or a dataset (stw_dataset
)
object, and get back an object of the same class. In other words, if
you call this function using a stw_dataset
object, it will modify the
metadata, then return a modified copy of the stw_dataset
object.
modified copy of meta
or dataset
1 | stw_mutate_meta(diamonds_meta, title = "New title")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.