stringb: Convenient Base R String Handling
Version 0.1.13

Base R already ships with string handling capabilities 'out- of-the-box' but lacks streamlined function names and workflow. The 'stringi' ('stringr') package on the other hand has well named functions, extensive Unicode support and allows for a streamlined workflow. On the other hand it adds dependencies and regular expression interpretation between base R functions and 'stringi' functions might differ. This packages aims at providing a solution to the use case of unwanted dependencies on the one hand but the need for streamlined text processing on the other. The packages' functions are solely based on wrapping base R functions into 'stringr'/'stringi' like function names. Along the way it adds one or two extra functions and last but not least provides all functions as generics, therefore allowing for adding methods for other text structures besides plain character vectors.

AuthorPeter Meissner [aut, cre]
Date of publication2016-11-01 15:18:21
MaintainerPeter Meissner <retep.meissner@gmail.com>
LicenseMIT + file LICENSE
Version0.1.13
URL https://github.com/petermeissner/stringb
Package repositoryView on CRAN
InstallationInstall the latest version of this package by entering the following in R:
install.packages("stringb")

Getting started

README.md

Popular man pages

as.data.frame: a stringsAsFactors=FALSE as.data.frame
data.frame: a stringsAsFactors=FALSE data.frame
drop_non_group_matches: helper for usage of regmatches
sequenize: helper function to spans into sequences
text_c: generic for concatenating strings
text_extract_group_all: generic for getting all regex group matches
text_trim: trim spaces
See all...

All man pages Function index File listing

Man pages

as.data.frame: a stringsAsFactors=FALSE as.data.frame
cuts_to_spans: helper function that turns cut points into spans
data.frame: a stringsAsFactors=FALSE data.frame
de_sequenize: helper function to transforms sequences into spans
drop_non_group_matches: helper for usage of regmatches
dummy_func: imports
get_groups: helper function for text_extract_group
grapes-.-grapes: concatenating strings operator
grapes-..-grapes: concatenating strings
invert_spans: function to invert spans to those numbers not covered
plot.character: function for plotting text
regmatches2: helper function to standardize regexpr results
sequenize: helper function to spans into sequences
stringb_arrange: function to sort df by variables
test_file: text function: wrapper for system.file() to access test files
text_c: generic for concatenating strings
text_collapse: function for collapsing text vectors
text_count: generic for counting pattern occurences
text_delete: deleting patterns in string
text_detect: generic function to test if a regex can be found within a...
text_eval: wrapper function of eval() and parse() to evaluate character...
text_extract: extract regex matches
text_extract_all: extract regex matches
text_extract_group: generic for getting regex group matches
text_extract_group_all: generic for getting all regex group matches
text_filter: generic for subsetting/filtering vectors
text_length: wrapper around nchar to return text length
text_locate: function to get start, end, length form pattern match
text_locate_all: function to get start, end, length form pattern match for all...
text_locate_all_worker: helper function to get start, end, length form pattern match
text_locate_group: generic for getting positions regex groups
text_locate_worker: helper function to get start, end, length form pattern match
text_nchar: wrapper around nchar to return text length
text_pad: padding text to specified width
text_read: read in text
text_rep: generic repeating text
text_replace: replacing patterns in string
text_replace_all: replacing patterns in string
text_replace_group: function for replacing regex group matches generic for...
text_replace_locates: text_replace_locates default
text_show: showing text
text_snippet: retrieving text snippet
text_split: generic splitting strings
text_split_n: generic splitting strings into pieces of length n
text_sub: generic for extracting characters sequences by position
text_subset: generic for subsetting/filtering vectors
text_tokenize: generic for gregexpr wrappers to tokenize text
text_tokenize_lines: generic to tokenize text into lines
text_tokenize_sentences: generic to tokenize text into sentences
text_tokenize_words: generic to tokenize text into words
text_to_lower: function for make text lower case
text_to_title_case: function for make text lower case
text_to_upper: function for make text lower case
text_trim: trim spaces
text_which: generic function to know in which elements a pattern can be...
text_which_value: generic function to get whole elements in which pattern was...
text_wrap: wraping text to specified width
text_write: write text to file

Functions

\%..\% Man page
\%.\% Man page
as.data.frame Man page Source code
cuts_to_spans Man page Source code
data.frame Man page
de_sequenize Man page Source code
drop_non_group_matches Man page Source code
dummy_func Man page Source code
get_groups Man page Source code Source code
invert_spans Man page Source code
plot.character Man page Source code
regmatches2 Man page Source code
sequenize Man page Source code
stringb_arrange Man page Source code
test_file Man page Source code
text_c Man page Source code
text_c.default Man page Source code
text_collapse Man page Source code
text_collapse.data.frame Man page Source code
text_collapse.default Man page Source code
text_collapse.list Man page Source code
text_collapse.matrix Man page Source code
text_count Man page Source code
text_count.default Man page Source code
text_delete Man page Source code
text_delete.default Man page Source code
text_detect Man page Source code
text_detect.default Man page Source code
text_dup Man page Source code
text_eval Man page Source code
text_extract Man page Source code
text_extract_all Man page Source code
text_extract_group Man page Source code
text_extract_group.default Man page Source code
text_extract_group_all Man page Source code
text_extract_group_all.default Man page Source code
text_filter Man page Source code
text_grep Man page Source code
text_grepl Man page Source code
text_grepv Man page Source code
text_length Man page Source code
text_locate Man page Source code
text_locate.default Man page Source code
text_locate_all Man page Source code
text_locate_all.default Man page Source code
text_locate_all_worker Man page Source code
text_locate_group Man page Source code
text_locate_group.default Man page Source code
text_locate_worker Man page Source code
text_nchar Man page Source code
text_pad Man page Source code
text_pad.default Man page Source code
text_read Man page Source code
text_rep Man page Source code
text_rep.default Man page Source code
text_replace Man page Source code
text_replace.default Man page Source code
text_replace_all Man page Source code
text_replace_all.default Man page Source code
text_replace_group Man page Source code
text_replace_group.default Man page Source code
text_replace_locates Man page Source code
text_replace_locates.default Man page Source code
text_show Man page Source code
text_show.default Man page Source code
text_snippet Man page Source code
text_split Man page Source code
text_split.default Man page Source code
text_split_n Man page Source code
text_split_n.default Man page Source code
text_sub Man page Source code
text_sub.default Man page Source code
text_subset Man page Source code
text_to_lower Man page Source code
text_to_lower.default Man page Source code
text_to_title_case Man page Source code
text_to_title_case.default Man page Source code
text_to_upper Man page Source code
text_to_upper.default Man page Source code
text_tokenize Man page Source code
text_tokenize.default Man page Source code
text_tokenize_lines Man page Source code
text_tokenize_lines.default Man page Source code
text_tokenize_sentences Man page Source code
text_tokenize_sentences.default Man page Source code
text_tokenize_words Man page Source code
text_tokenize_words.default Man page Source code
text_trim Man page Source code
text_trim.default Man page Source code
text_trim.list Man page Source code
text_trim.numeric Man page Source code
text_which Man page Source code
text_which.default Man page Source code
text_which_value Man page Source code
text_which_value.default Man page Source code
text_wrap Man page Source code
text_wrap.default Man page Source code
text_write Man page Source code
text_write.default Man page Source code

Files

inst
inst/testfiles
inst/testfiles/rc_2_ch1.txt
inst/testfiles/test_utf8.txt
inst/testfiles/rc_1_ch1.txt
inst/testfiles/rc_1.txt
inst/testfiles/rc_3.txt
inst/testfiles/rc_3_ch1.txt
inst/testfiles/test_latin1.txt
inst/testfiles/rc_2.txt
tests
tests/testthat
tests/testthat/test_text_to_lower.R
tests/testthat/test_text_count.r
tests/testthat/test_tools.R
tests/testthat/test_text_detect.r
tests/testthat/test_text_read.r
tests/testthat/test_text_replace.R
tests/testthat/test_text_rep.r
tests/testthat/test_text_which.R
tests/testthat/test_text_collapse.R
tests/testthat/test_text_split.r
tests/testthat/test_text_tokenize.r
tests/testthat/test_text_c.R
tests/testthat/test_text_eval.R
tests/testthat/test_text_snippet.r
tests/testthat/test_text_locate.r
tests/testthat/test_text_trim.R
tests/testthat/test_text_locate_all.r
tests/test-all.R
NAMESPACE
NEWS.md
R
R/text_replace_group.R
R/text_show.R
R/text_extract_group.R
R/text_sub.R
R/text_locate_group.R
R/text_collapse.R
R/text_locate.R
R/text_length.R
R/text_extract_all.R
R/text_split.R
R/text_which.R
R/text_to_lower.R
R/text_detect.R
R/text_extract.R
R/text_pad.R
R/imports.r
R/text_write.R
R/text_count.R
R/tools.R
R/text_dup.R
R/text_c.R
R/text_replace.R
R/text_eval.R
R/character_plot.R
R/text_read.R
R/text_tokenize.R
R/text_trim.R
R/text_wrap.R
R/text_snippet.R
R/zzz.R
README.md
MD5
DESCRIPTION
man
man/text_locate_all.Rd
man/text_pad.Rd
man/test_file.Rd
man/text_sub.Rd
man/text_snippet.Rd
man/invert_spans.Rd
man/text_split_n.Rd
man/data.frame.Rd
man/text_count.Rd
man/as.data.frame.Rd
man/cuts_to_spans.Rd
man/text_locate_all_worker.Rd
man/text_tokenize_words.Rd
man/text_replace_all.Rd
man/regmatches2.Rd
man/text_to_title_case.Rd
man/text_length.Rd
man/text_detect.Rd
man/text_wrap.Rd
man/text_write.Rd
man/text_replace.Rd
man/text_tokenize_lines.Rd
man/text_replace_locates.Rd
man/sequenize.Rd
man/text_extract_all.Rd
man/text_locate_group.Rd
man/text_tokenize_sentences.Rd
man/dummy_func.Rd
man/drop_non_group_matches.Rd
man/text_extract_group_all.Rd
man/get_groups.Rd
man/text_locate_worker.Rd
man/text_tokenize.Rd
man/text_show.Rd
man/text_which.Rd
man/text_extract.Rd
man/text_nchar.Rd
man/grapes-..-grapes.Rd
man/text_extract_group.Rd
man/text_delete.Rd
man/text_which_value.Rd
man/text_rep.Rd
man/text_eval.Rd
man/text_to_lower.Rd
man/text_trim.Rd
man/text_replace_group.Rd
man/grapes-.-grapes.Rd
man/plot.character.Rd
man/text_c.Rd
man/text_filter.Rd
man/text_split.Rd
man/text_subset.Rd
man/de_sequenize.Rd
man/stringb_arrange.Rd
man/text_locate.Rd
man/text_read.Rd
man/text_collapse.Rd
man/text_to_upper.Rd
LICENSE
stringb documentation built on May 19, 2017, 1:30 p.m.

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.