View source: R/cas_write_corpus.R
cas_write_corpus | R Documentation |
Export the textual dataset for the current website
cas_write_corpus(
corpus = NULL,
to_lower = FALSE,
drop_na = TRUE,
drop_empty = TRUE,
date = date,
text = text,
tif_compliant = FALSE,
file_format = "parquet",
partition = NULL,
token = "full_text",
corpus_folder = "corpus",
path = NULL,
db_connection = NULL,
db_folder = NULL,
...
)
corpus |
Defaults to |
to_lower |
Defaults to |
drop_na |
Defaults to |
drop_empty |
Defaults to |
date |
Unquoted date column, defaults to |
text |
Unquoted text column, defaults to |
tif_compliant |
Defaults to |
file_format |
Defaults to "parquet". Currently, other options are not implemented. |
partition |
Defaults to |
token |
Defaults to "full_text", which does not tokenise the text
column. If different from |
path |
Defaults to |
db_connection |
Defaults to NULL. If NULL, uses local SQLite database. If given, must be a connection object or a list with relevant connection settings (see example). |
... |
Passed to |
Invisibly returns the path to the corpus.
## Not run:
cas_write_corpus(cas_read_db_contents_data(), partition = "year")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.