Displaying 4 results from an estimated 4 matches for "str_length".
2011 Nov 13
0
Roxygen2: version 2.2
...vector? ? #' @return numeric vector giving
number of characters in each element of the?? ? #' ? character vector.
?Missing string have missing length.? ? #' @keywords character? ? #'
@seealso \code{\link{nchar}} which this function wraps? ? #' @export
#' @examples? ? #' str_length(letters)? ? #' str_length(c("i",
"like", "programming", NA))? ? str_length <- function(string) {
string <- check_string(string)
? ? ? nc <- nchar(string, allowNA = TRUE)? ? ? is.na(nc) <-
is.na(string)? ? ? nc? ? }
When you `roxygenise` your package the...
2011 Nov 13
0
Roxygen2: version 2.2
...vector? ? #' @return numeric vector giving
number of characters in each element of the?? ? #' ? character vector.
?Missing string have missing length.? ? #' @keywords character? ? #'
@seealso \code{\link{nchar}} which this function wraps? ? #' @export
#' @examples? ? #' str_length(letters)? ? #' str_length(c("i",
"like", "programming", NA))? ? str_length <- function(string) {
string <- check_string(string)
? ? ? nc <- nchar(string, allowNA = TRUE)? ? ? is.na(nc) <-
is.na(string)? ? ? nc? ? }
When you `roxygenise` your package the...
2011 Jul 01
0
stringr 0.5
...* `str_locate` now returns consistent type when matching empty string (thanks
to Stavros Macrakis)
* new `str_count` counts number of matches in a string.
* `str_pad` and `str_trim` receive performance tweaks - for large vectors this
should give at least a two order of magnitude speed up
* str_length returns NA for invalid multibyte strings
* fix small bug in internal `recyclable` function
--
Assistant Professor / Dobelman Family Junior Chair
Department of Statistics / Rice University
http://had.co.nz/
_______________________________________________
R-packages mailing list
R-packages at r-...
2011 Jul 01
0
stringr 0.5
...* `str_locate` now returns consistent type when matching empty string (thanks
to Stavros Macrakis)
* new `str_count` counts number of matches in a string.
* `str_pad` and `str_trim` receive performance tweaks - for large vectors this
should give at least a two order of magnitude speed up
* str_length returns NA for invalid multibyte strings
* fix small bug in internal `recyclable` function
--
Assistant Professor / Dobelman Family Junior Chair
Department of Statistics / Rice University
http://had.co.nz/
_______________________________________________
R-packages mailing list
R-packages at r-...