r4strings icon indicating copy to clipboard operation
r4strings copied to clipboard

Handling Strings in R

Results 9 r4strings issues
Sort by recently updated
recently updated
newest added

The text at the start of section 7.1 and the example do not appear to agree on what nchar() does on encountering NA: > text nchar(text) [1] 3 3 5...

Function trimws() in the base can remove leading and/or trailing whitespace from character strings.

1. `nsmall` is the minimum number of digits to the right of the decimal point instead of `digits` `digits` The number of digits to the right of the decimal place....

The following applies to the page at https://www.gastonsanchez.com/r4strings/c-style-formatting.html In the first output example under the '4.1.2 Example: basic sprintf()' heading, the text reads "Notice that 1/6 is printed with _seven_...

* Show default width from options * Show that long strings are not broken until fill width is reached

| `str_trim()` | trims a string | _none_ | Information about str_trim function repeats two times, deleted last one, which includes less description.