R/corplingr_collex_prepare.R
collex_prepare.Rd
This function is designed to handle the output of colloc_default
to generate a tidy data required as input of collex_fye
for performing collexeme/collocate analysis.
collex_prepare(list_output = "list output of 'colloc_default()'", span = NULL)
list_output | The list output of |
---|---|
span | character; the context-window span user wants to focus on for the collexeme/collocates analysis.
For instance |
A tbl_df (tibble data frame)
if (FALSE) { # do the collocate search df <- colloc_default(corpus_path = orti_bali_path[1:50], pattern = "^nuju$", window = "b", # focusing on both left and right context window span = 3) # retrieve 3 collocates to the left and right of the node # prepare the collexeme analysis input tibble # and select to focus on R1 and R2 collocates. collex_tb <- collex_prepare(df, span = c("r1", "r2")) }