This is all well and good:
"Since str_c() does not separate strings with spaces by default it is closer in behavior to paste0()."
str_c("foo", "bar")
#> [1] "foobar"
But after that I would add something like this:
"However, with the use of the "sep" argument, str_c can replace both paste and paste0.
str_c("foo", "bar", sep = " ")
#> [1] "foo bar"
Link to the page: https://jrnold.github.io/r4ds-exercise-solutions/strings.html#exercise-14.2.1
Thank you!
This is all well and good:
"Since str_c() does not separate strings with spaces by default it is closer in behavior to paste0()."
But after that I would add something like this:
"However, with the use of the "sep" argument, str_c can replace both paste and paste0.
Link to the page: https://jrnold.github.io/r4ds-exercise-solutions/strings.html#exercise-14.2.1
Thank you!