enhance_uncoded_manifesto_: Enhance uncoded manifesto data frame

Description Usage Arguments Value Note

View source: R/enhance_manifesto_df.R

Description

enhance_manifesto_df helper

Usage

1

Arguments

u.df

the 1-row manifesto dataframe recording the entire manifesto text in a unit-length character column 'text'

Value

The input u.df tibble enhanced by column 'qs_nr' (running quasi-sentence counter), 'sent_nr' (running sentence counter), 'role' (indicator, here 'qs' for all rows), and 'bloc_nr'

Note

The function takes the unit-legnth character contained in column 'text' of the 1-row data frame, and splits it into sentences. Sentences are then numbered, and because the manifesto is uncoded, qs_nr == sent_nr, 'role' is 'qs' and bloc_nr is 1 for all rows.


haukelicht/manifestoEnhanceR documentation built on March 30, 2020, 3:15 a.m.