Last data update: 2014.03.03

Data Source

R Release (3.2.3)
CranContrib
BioConductor
All

Data Type

Packages
Functions
Images
Data set

Classification

Results 1 - 10 of 25 found.
[1] < 1 2 3 > [3]  Sort:

word (Package: stringr) : Extract words from a sentence.

Extract words from a sentence.
● Data Source: CranContrib
● Keywords:
● Alias: word
● 0 images

str_sub (Package: stringr) : Extract and replace substrings from a character vector.

str_sub will recycle all arguments to be the same length as the longest argument. If any arguments are of length 0, the output will be a zero length character vector.
● Data Source: CranContrib
● Keywords:
● Alias: str_sub, str_sub<-
● 0 images

str_length (Package: stringr) : The length of a string.

Technically this returns the number of "code points", in a string. One code point usually corresponds to one character, but not always. For example, an u with a umlaut might be represented as a single character or as the combination a u and an umlaut.
● Data Source: CranContrib
● Keywords:
● Alias: str_length
● 0 images

%>% (Package: stringr) : Pipe operator

Pipe operator
● Data Source: CranContrib
● Keywords: internal
● Alias: %>%
● 0 images

str_trim (Package: stringr) : Trim whitespace from start and end of string.

Trim whitespace from start and end of string.
● Data Source: CranContrib
● Keywords:
● Alias: str_trim
● 0 images

str_conv (Package: stringr) : Specify the encoding of a string.

This is a convenient way to override the current encoding of a string.
● Data Source: CranContrib
● Keywords:
● Alias: str_conv
● 0 images

str_replace_na (Package: stringr) : Turn NA into "NA"

Turn NA into "NA"
● Data Source: CranContrib
● Keywords:
● Alias: str_replace_na
● 0 images

str_subset (Package: stringr) : Keep strings matching a pattern.

This is a convenient wrapper around x[str_detect(x, pattern)]. Vectorised over string and pattern
● Data Source: CranContrib
● Keywords:
● Alias: str_subset
● 0 images

str_split (Package: stringr) : Split up a string into pieces.

Vectorised over string and pattern.
● Data Source: CranContrib
● Keywords:
● Alias: str_split, str_split_fixed
● 0 images

str_c (Package: stringr) : Join multiple strings into a single string.

To understand how str_c works, you need to imagine that you are building up a matrix of strings. Each input argument forms a column, and is expanded to the length of the longest argument, using the usual recyling rules. The sep string is inserted between each column. If collapse is NULL each row is collapsed into a single string. If non-NULL that string is inserted at the end of each row, and the entire matrix collapsed to a single string.
● Data Source: CranContrib
● Keywords:
● Alias: str_c, str_join
● 0 images