Learn R Programming

rtext (version 0.1.22)

R6 Objects for Text and Data

Description

For natural language processing and analysis of qualitative text coding structures which provide a way to bind together text and text data are fundamental. The package provides such a structure and accompanying methods in form of R6 objects. The 'rtext' class allows for text handling and text coding (character or regex based) including data updates on text transformations as well as aggregation on various levels. Furthermore, the usage of R6 enables inheritance and passing by reference which should enable 'rtext' instances to be used as back-end for R based graphical text editors or text coding GUIs.

Copy Link

Version

Install

install.packages('rtext')

Monthly Downloads

30

Version

0.1.22

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Peter Meissner

Last Published

January 28th, 2021

Functions in rtext (0.1.22)

rtext

R6 class - linking text and data
prometheus_late

prometheus late version
prometheus_early

prometheus early version
seq_dim1

seq along first dimension / length
write_utf8_csv

function to write csv files with UTF-8 characters (even under Windows)
rtext_tokenize

R6 class - linking text and data
rtext_hash

function to get hash for R objects
rtext_export

R6 class - linking text and data
rtext_loadsave

R6 class - load and save methods for rtext
dim1

get first dimension or length of object
%>%

magrittr pipe
rtext_get_character

function to get text from rtext object
plot.rtext

function for plotting rtext
read_utf8_csv

function to read csv file with UTF-8 characters (even under Windwos) that were created by write_U
text_tokenize.rtext

function tokenizing rtext objects
rbind_fill

function for binding data.frames even if names do not match
rtext_base

rtext_base : basic workhorse for rtext
vector_delete

function used to delete parts from a vector
which_token_worker

(function to check which chars belong to which token) takes a vector of xs to check if these lie between pairs of ys and if so returning their index; assumes xs and ys are sorted; returns only the first span index which enclosing the x
which_token

function returning index of spans that entail x
shift

function that shifts vector values to right or left
testfile

text function: wrapper for system.file() to access test files
dim2

get first dimension or length of object
modus

function giving back the mode
get_vector_element

function that extracts elements from vector
bind_between

function forcing value to fall between min and max
dp_arrange

function to sort df by variables
load_into

function that loads saved rtext
classes

function to get classes from e.g. lists
is_between

function that checks is values are in between values
R6_rtext_extended

extended R6 class