transform_regular: Adjusts data frame to corporaexplorer format

View source: R/prepare_data.R

transform_regularR Documentation

Adjusts data frame to corporaexplorer format

Description

Adjusts data frame to corporaexplorer format

Usage

transform_regular(df, tile_length_range = c(1, 10))

Arguments

df

Data frame with Date column (Date), Text column (character), and optionally Title (character), URL (character), and Type (character) columns.

tile_length_range

Numeric vector of length two. Fine-tune the tile lengths in document wall and day corpus view. Tile length is calculated by scales::rescale(nchar(dataset$Text), to = tile_length_range, from = c(0, max(.))) Default is c(1, 10).

Value

A tibble ("data_dok")


kgjerde/corporaexplorer documentation built on July 3, 2023, 7:02 p.m.