"a"
#> [1] "a"
"string"
#> [1] "string"
"that can be arbitrarily long"
#> [1] "that can be arbitrarily long"
as.character(1:3)
#> [1] "1" "2" "3"
NA_character_
#> [1] NA
Created on 2020-03-03 by the reprex package (v0.3.0)
"a"
#> [1] "a"
"string"
#> [1] "string"
"that can be arbitrarily long"
#> [1] "that can be arbitrarily long"
as.character(1:3)
#> [1] "1" "2" "3"
NA_character_
#> [1] NA
Created on 2020-03-03 by the reprex package (v0.3.0)