Description Usage Arguments Details Value Author(s) Examples

Compute recurrence quantification on text.

1 |

`rsrc` |
Location of file or resource, or string literal |

`typ` |
A flag indicating the type of resource file in input: typ = "file" (it's a file name); typ = "ulr" (it's a url, and the file gets downloaded); typ = "string" or "raw_chars" (it's a literal string); typ = "tibble" (it's a text formatted as tidytext by tibble) |

`removeStopwords` |
A boolean: TRUE (remove stop words) - FALSE (it retains them) |

`embed` |
The number of embedding dimension for phase-reconstruction, i.e., the lag intervals. |

`tw` |
The Theiler window parameter |

`limit` |
A scalar indicating how much text should be considered for the analysis |

`shuffle` |
A boolean: if TRUE, it randomly shuffles the order of the text for surrogate analyses. |

A wrapper to the 'crqa()' function that runs recurrence quantification analysis on text. This function also calls 'get_text_series()' to simplify the text in case such simplification was not done before inputting the text.

It returns a list with different measures extracted from the recurrence plot. Otherwise, the values for the output arguments will be either 0 or NA.

`RR` |
The percentage of recurrent points falling within the specified radius (range between 0 and 100) |

`DET` |
Proportion of recurrent points forming diagonal line structures. |

`NRLINE` |
The total number of lines in the recurrent plot |

`maxL` |
The length of the longest diagonal line segment in the plot, excluding the main diagonal |

`L` |
The average length of line structures |

`ENTR` |
Shannon information entropy of diagonal line lengths longer than the minimum length |

`rENTR` |
Entropy measure normalized by the number of lines observed in the plot. Handy to compare across contexts and conditions |

`LAM` |
Proportion of recurrent points forming vertical line structures |

`TT` |
The average length of vertical line structures |

Rick Dale (rdale@ucla.edu)

1 2 3 |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.