Package: strs 0.1.0

Garrett Shipley

strs: 'Python' Style String Functions

A comprehensive set of string manipulation functions based on those found in 'Python' without relying on 'reticulate'. It provides functions that intend to (1) make it easier for users familiar with 'Python' to work with strings, (2) reduce the complexity often associated with string operations, (3) and enable users to write more readable and maintainable code that manipulates strings.

Authors:Garrett Shipley [aut, cre]

strs_0.1.0.tar.gz
strs_0.1.0.zip(r-4.5)strs_0.1.0.zip(r-4.4)strs_0.1.0.zip(r-4.3)
strs_0.1.0.tgz(r-4.4-any)strs_0.1.0.tgz(r-4.3-any)
strs_0.1.0.tar.gz(r-4.5-noble)strs_0.1.0.tar.gz(r-4.4-noble)
strs_0.1.0.tgz(r-4.4-emscripten)strs_0.1.0.tgz(r-4.3-emscripten)
strs.pdf |strs.html
strs/json (API)

# Install 'strs' in R:
install.packages('strs', repos = c('https://pythonicr.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/pythonicr/strs/issues

On CRAN:

37 exports 2 stars 1.51 score 1 dependencies 4 scripts

Last updated 21 days agofrom:9c2f309bdd. Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKSep 03 2024
R-4.5-winOKSep 03 2024
R-4.5-linuxOKSep 03 2024
R-4.4-winOKSep 03 2024
R-4.4-macOKSep 03 2024
R-4.3-winOKSep 03 2024
R-4.3-macOKSep 03 2024

Exports:strs_capitalizestrs_casefoldstrs_centerstrs_containsstrs_countstrs_endswithstrs_expandtabsstrs_findstrs_isalnumstrs_isalphastrs_isasciistrs_isdecimalstrs_isdigitstrs_islowerstrs_isnumericstrs_isspacestrs_istitlestrs_isupperstrs_joinstrs_ljuststrs_lowerstrs_lstripstrs_normalize_whitespacestrs_removeprefixstrs_removesuffixstrs_replacestrs_rfindstrs_rjuststrs_rstripstrs_slicestrs_splitstrs_splitlinesstrs_startswithstrs_stripstrs_swapcasestrs_titlestrs_upper

Dependencies:stringi

Readme and manuals

Help Manual

Help pageTopics
Capitalize the first character of each sentencestrs_capitalize
Perform case folding on stringsstrs_casefold
Center a string in a field of a given widthstrs_center
Check if string contains a substringstrs_contains
Count occurrences of a substring in a stringstrs_count
Check if string ends with a specified suffixstrs_endswith
Expand tabs in a string to spacesstrs_expandtabs
Find the first occurrence of a substring in a stringstrs_find
Check if string is alphanumericstrs_isalnum
Check if string contains only alphabetical charactersstrs_isalpha
Check if string contains only ascii charactersstrs_isascii
Check if string contains only decimal charactersstrs_isdecimal
Check if string contains only digitsstrs_isdigit
Check if string is in lowercasestrs_islower
Check if string contains only numeric charactersstrs_isnumeric
Check if string contains only whitespace charactersstrs_isspace
Check if string is in title casestrs_istitle
Check if string is in uppercasestrs_isupper
Join elements into a single string with a separatorstrs_join
Left-justify string in a field of a given widthstrs_ljust
Convert string to lowercasestrs_lower
Left strip characters from a stringstrs_lstrip
Normalize whitespace in a stringstrs_normalize_whitespace
Remove a prefix from a stringstrs_removeprefix
Remove a suffix from a stringstrs_removesuffix
Replace substring in a stringstrs_replace
Find the last occurrence of a substring in a stringstrs_rfind
Right-justify string in a field of a given widthstrs_rjust
Right strip characters from a stringstrs_rstrip
Slice substrings from a stringstrs_slice
Split string into substringsstrs_split
Split string into linesstrs_splitlines
Check if string starts with a specified prefixstrs_startswith
Strip characters from both ends of a stringstrs_strip
Swap uppercase and lowercase characters in a stringstrs_swapcase
Convert string to title casestrs_title
Convert string to uppercasestrs_upper