get_metadata | R Documentation |
Gets metadata from specified source.
get_metadata(
sourcetype,
from_dir = getwd(),
filename = "textot.txt",
encoding = "UTF-8",
rtibble
)
sourcetype |
the type of source ("rtibble","txm" or "iramuteq") |
from_dir |
the corpus directory (contains metadata.csv and multiple .txt files) |
filename |
the name of the Iramuteq-formatted txt file (defaults to "textot.txt") |
encoding |
the encoding of the TXM corpus (defaults to UTF-8) |
rtibble |
the name of the R tibble, if relevant (sourcetype="rtibble") |
a tibble of metadata
get_metadata(sourcetype="txm",
from_dir=system.file("extdata/fables",package="textoteR"),
encoding="UTF-8")
get_metadata(sourcetype="iramuteq",
from_dir=system.file("extdata",package="textoteR"),
filename="macron_covid.txt",
encoding="UTF-8")
get_metadata(sourcetype="rtibble",
rtibble=LVtweets)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.