Class 12
Strings
Preparation Materials
Agenda
Today we’ll focus on:
- continuing experiment analysis
- strings
Strings
We’ll review examples from the reading and exercises. At this point you should be getting familiar with:
- escaping characters
- special characters
str_c(),str_glue(),paste, andpaste0()separate()and the new variants, especially for separating widerstr_length()andstr_sub()
Using the experiment analysis project:
Create a new column in one of the dataframes that gives the string length for each sentence.
Create a new column with the first two letters of each sentence.