Learn R Programming

⚠️There's a newer version (0.0-3) of this package.Take me there.

assertive.strings (version 0.0-1)

Assertions to Check Properties of Strings

Description

A set of predicates and assertions for checking the properties of strings. This is mainly for use by other package developers who want to include run-time testing features in their own packages. End-users will usually want to use assertive directly.

Copy Link

Version

Install

install.packages('assertive.strings')

Monthly Downloads

73

Version

0.0-1

License

GPL (>= 3)

Maintainer

Richard Cotton

Last Published

October 6th, 2015

Functions in assertive.strings (0.0-1)

assert_all_are_numeric_strings

Does the string contain a number?
strip_invalid_chars

Removes invalid characters from a string.
character_to_list_of_integer_vectors

Convert a character vector to a list of integer vectors
create_regex

Create a regex from components.
matches_regex

Does the input match the regular expression?
recycle

Recycle arguments
assert_all_are_single_characters

Is the input a single character?
assert_all_are_empty_character

Does the input contain empty or missing strings?
d

Create regex for repeated digits