Description Usage Arguments Value Examples
Sets or initializes system metadata for new objects.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | meta_system(x, field = NULL)
meta_system(x, field = NULL) <- value
## S3 replacement method for class 'corpus'
meta_system(x, field = NULL) <- value
## S3 replacement method for class 'tokens'
meta_system(x, field = NULL) <- value
## S3 replacement method for class 'dfm'
meta_system(x, field = NULL) <- value
## S3 replacement method for class 'dictionary'
meta_system(x, field = NULL) <- value
meta_system_defaults()
|
x |
an object for which the metadata will be read or set |
field |
metadata field name(s); if |
value |
new value of the metadata field |
source |
character; the input object class |
meta_system
returns a list with the object's system metadata.
It is literally a wrapper to meta(x, field, type = "system")()
.
meta_system<-
returns the object with the system metadata
modified. This is an internal function and not designed for users!
meta_system_defaults
returns a list of default system
values, with the user setting the "source" value. This should be used
to set initial system meta information.
1 2 3 | corp <- corpus(c(d1 = "one two three", d2 = "two three four"))
# quanteda.core:::`meta_system<-`(corp, value = quanteda.core:::meta_system_defaults("example"))
quanteda.core:::meta_system(corp)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.