Package: strs 0.1.1

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.1.tar.gz
strs_0.1.1.zip(r-4.5)strs_0.1.1.zip(r-4.4)strs_0.1.1.zip(r-4.3)
strs_0.1.1.tgz(r-4.4-any)strs_0.1.1.tgz(r-4.3-any)
strs_0.1.1.tar.gz(r-4.5-noble)strs_0.1.1.tar.gz(r-4.4-noble)
strs_0.1.1.tgz(r-4.4-emscripten)strs_0.1.1.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:

4.00 score 2 stars 5 scripts 147 downloads 40 exports 2 dependencies

Last updated 13 days agofrom:971deac1e2. Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 10 2024
R-4.5-winOKNov 10 2024
R-4.5-linuxOKNov 10 2024
R-4.4-winOKNov 10 2024
R-4.4-macOKNov 10 2024
R-4.3-winOKNov 10 2024
R-4.3-macOKNov 10 2024

Exports:strs_capitalizestrs_casefoldstrs_centerstrs_containsstrs_countstrs_endswithstrs_expandtabsstrs_fstrs_findstrs_formatstrs_isalnumstrs_isalphastrs_isasciistrs_isdecimalstrs_isdigitstrs_islowerstrs_isnumericstrs_isspacestrs_istitlestrs_isupperstrs_joinstrs_lenstrs_ljuststrs_lowerstrs_lstripstrs_normalize_whitespacestrs_removeprefixstrs_removesuffixstrs_replacestrs_rfindstrs_rjuststrs_rstripstrs_slicestrs_splitstrs_splitlinesstrs_startswithstrs_stripstrs_swapcasestrs_titlestrs_upper

Dependencies:gluestringi

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
Inline String Interpolation with Environment Variablesstrs_f
Find the first occurrence of a substring in a stringstrs_find
String Interpolation with Data Supportstrs_format
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
Get the lengths of each stringstrs_len
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