{stringr} R# Documentation

stringr


require(R);

#' Simple, Consistent Wrappers for Common String Operations
imports "stringr" from "REnv";

Simple, Consistent Wrappers for Common String Operations stringr provide fast, correct implementations of common string manipulations. stringr focusses on the most important and commonly used string manipulation functions whereas stringi provides a comprehensive set covering almost anything you can imagine.

Simple, Consistent Wrappers for Common String Operations stringr provide fast, correct implementations of common string manipulations. stringr focusses on the most important and commonly used string manipulation functions whereas stringi provides a comprehensive set covering almost anything you can imagine.



.NET clr function exports
html

comvert any object to html text document

toString

Convert an R Object to a Character String

This is a helper function for format to produce a single character string describing an R object.

loadJSON
loadXml

load a .NET object from the xml data file

xml

Convert most of the R# object or VB.NET object to xml document string.

bdecode
bencode
json

Convert most of the R# object or VB.NET object to json string.

base64

encode byte stream or text content into base64 string

base64_decode

decode base64 string as text or the raw bytes buffer object.

urldecode

Decodes URL-encoded string Decodes any %## encoding in the given string. Plus symbols ('+') are decoded to a space character.

grep
nchar

Count the Number of Characters (or Bytes or Width)

nchar takes a character vector as an argument and returns a vector whose elements contain the sizes of the corresponding elements of x.

regexp

Initializes a new instance of the RegularExpression class for the specified regular expression `pattern`.

regex_match

Searches the specified input string for the first occurrence of the regular expression specified in the System.Text.RegularExpressions.Regex constructor.

sprintf

Use C-style String Formatting Commands

A wrapper for the C function sprintf, that returns a character vector containing a formatted combination of text and variable values.

paste0

paste0(..., collapse) is equivalent to paste(..., sep = "", collapse), slightly more efficiently.

str_pad

Pad A String.

str_empty

test of the give character vector is empty string or not

tagvalue

parse the string text in format like tag{delimiter}value

tolower

Character Translation and Casefolding

Translate characters in character vectors, in particular from upper to lower case or vice versa.

toupper
concatenate
chr

chr returns the characters corresponding to the specified ASCII codes.

charAt
substr

Substrings of a Character Vector

Extract or replace substrings in a character vector.

str_replace

Pattern Matching and Replacement

random_str

generate random string which is all consist with ascii chars.

text_equals

check of the text equals between two character vector.

text_grep

apply for batch text grep/trimming/strip


[Document Index]