Skip to content

Latest commit

 

History

History
67 lines (42 loc) · 1.17 KB

README.md

File metadata and controls

67 lines (42 loc) · 1.17 KB

svensktext R data package

svensktext is an R package that contains data relevant for the Swedish language, such as:

  • stopwords
  • emotions
  • ...

Install

Note: under development

# install.packages("devtools")
devtools::install_github("peterdalle/svensktext-rpackage")

Example

library(svensktext)

svensktext::stopwords
svensktext::emotions

Overview of datasets

Dataset Description
stopwords Various stopwords suitable for generic texts.
emotions ...
... ...

Documentation

In the R console, write ? followed by the dataset name to view the documentation. For example:

?svensktext::stopwords

See available datasets:

?svensktext

How the package is built

The datasets are prepared by:

  1. downloading the data from the svensktext data repository (https://github.com/peterdalle/svensktext)
  2. saving data as built-in datasets within the R package.

See the file data-raw/prepare-datasets.R for details.

See also

Licenses

CC-BY

See the license for each particular dataset in the documentation.