# Don't try to store text data without strings
my_name <- Jeff GirardError in parse(text = input): <text>:2:17: unexpected symbol
1: # Don't try to store text data without strings
2: my_name <- Jeff Girard
^
Spring 2026 | Data 2 (399)
Jeffrey M. Girard | Lecture 03c
Store text/character data in strings and character vectors
Install, load, and use data and functions from R packages
name <- "John Doe"
Error in parse(text = input): <text>:2:17: unexpected symbol
1: # Don't try to store text data without strings
2: my_name <- Jeff Girard
^
Error in parse(text = input): <text>:2:12: unexpected symbol
1: # Don't try to include quotation marks as normal
2: wilde <- ""Be
^
[1] "\"Be yourself; everyone else is already taken.\" -- Oscar Wilde"
"Be yourself; everyone else is already taken." -- Oscar Wilde
[1] 3
[1] 6 7 8
[1] "RED#40" "BLUE#01" "GREEN#03"
We will learn more string functions in Unit B
library("pkg_name")
install.packages("pkg_name") in R Consolepkg_name::fn_name()library("pkg_name")fn_name()Error in `str_to_title()`:
! could not find function "str_to_title"
[1] "The Lord Of The Rings"
browseVignettes("pkg_name")
browseVignettes("stringr")