Description Usage Arguments Value Examples
View source: R/corplingr_collex_prepare.R
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.
1 | 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)
1 2 3 4 5 6 7 8 9 10 11 12 | ## Not run:
# 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"))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.