Basic Character Manipulation (Introduction to Statistical Computing)
Three-Toed Sloth 2014-01-06
Summary:
Lecture 20: Text as data. Overview of the character data type, and of strings. Basic string operations: extracting and replacing substrings; splitting strings into character vectors; assembling character vectors into strings; tabulating counts of string tokens by string type. The need for a way of computing with text patterns, and not just constants. Example text: al2.txt
(This lecture ripped off from Vince Vu, with permission.)