Package ‘stringr’
Package `stringr'
December 2, 2022
Title Simple, Consistent Wrappers for Common String Operations Version 1.5.0 Description A consistent, simple and easy to use set of wrappers around
the fantastic 'stringi' package. All function and argument names (and positions) are consistent, all functions deal with ``NA'''s and zero length vectors in the same way, and the output from one function is easy to feed into the input of another. License MIT + file LICENSE
URL ,
BugReports Depends R (>= 3.3) Imports cli, glue (>= 1.6.1), lifecycle (>= 1.0.3), magrittr, rlang
(>= 1.0.0), stringi (>= 1.5.3), vctrs Suggests covr, htmltools, htmlwidgets, knitr, rmarkdown, testthat (>=
3.0.0) VignetteBuilder knitr Config/Needs/website tidyverse/tidytemplate Config/testthat/edition 3 Encoding UTF-8 LazyData true RoxygenNote 7.2.1 NeedsCompilation no Author Hadley Wickham [aut, cre, cph],
RStudio [cph, fnd] Maintainer Hadley Wickham Repository CRAN Date/Publication 2022-12-02 10:20:02 UTC
1
2
case
R topics documented:
case . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 invert_match . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 modifiers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 stringr-data . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6 str_c . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7 str_conv . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 str_count . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9 str_detect . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 str_dup . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 str_equal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11 str_escape . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12 str_extract . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13 str_flatten . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 str_glue . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15 str_length . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16 str_like . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 str_locate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18 str_match . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19 str_order . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21 str_pad . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22 str_remove . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 str_replace . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24 str_replace_na . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25 str_split . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26 str_starts . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28 str_sub . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29 str_subset . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30 str_trim . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31 str_trunc . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32 str_unique . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 33 str_view . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34 str_which . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 str_wrap . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 word . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 37
Index
39
case
Convert string to upper case, lower case, title case, or sentence case
case
3
Description
? str_to_upper() converts to upper case. ? str_to_lower() converts to lower case. ? str_to_title() converts to title case, where only the first letter of each word is capitalized. ? str_to_sentence() convert to sentence case, where only the first letter of sentence is capi-
talized.
Usage str_to_upper(string, locale = "en") str_to_lower(string, locale = "en") str_to_title(string, locale = "en") str_to_sentence(string, locale = "en")
Arguments string locale
Input vector. Either a character vector, or something coercible to one.
Locale to use for comparisons. See stringi::stri_locale_list() for all possible options. Defaults to "en" (English) to ensure that default behaviour is consistent across platforms.
Value A character vector the same length as string.
Examples
dog ................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related download
- advanced find and replace in microsoft word
- microsoft word 1a business letters format text wrap
- atomic learning practice quiz sets
- package stringr
- word choice practice
- find and replace information technology
- word processing features cengage
- microsoft word tips jefferson county public schools
- step by step word processing exercises
Related searches
- sure jell package insert
- frontline gold package insert pdf
- xfinity blast package channels
- fedex tracking package tracking number
- fluzone sanofi pasteur package insert
- fluzone package insert 2019
- fluzone pediatric package insert
- fedex track package without number
- fluzone package insert 2019 20
- fluzone high dose package insert
- fluzone quadrivalent 2019 package insert
- fluzone package insert pdf