fst_pos_compare: Compare parts-of-speech

View source: R/04_comparison_functions.R

fst_pos_compareR Documentation

Compare parts-of-speech

Description

Count each POS type for different groups of participants. Data is split based on different values in the 'field' column of formatted data. Results will be shown within the plots pane.

Usage

fst_pos_compare(data, field, exclude_nulls = FALSE, rename_nulls = "null_data")

Arguments

data

A dataframe of text in CoNLL-U format with additional 'field' column for splitting data.

field

Column in 'data' used for splitting groups

exclude_nulls

Whether to include NULLs in 'field' column, default is 'FALSE'

rename_nulls

What to fill NULL values with if 'exclude_nulls = FALSE'.

Value

Table of POS tag counts for the groups.

Examples

fst_pos_compare(fst_child, 'gender')
fst_pos_compare(fst_dev_coop, 'region')

finnsurveytext documentation built on April 4, 2025, 5:07 a.m.