Skip to content

Instantly share code, notes, and snippets.

@BojanKomazec
Created April 23, 2017 17:51
Show Gist options
  • Save BojanKomazec/5e8f307403fdfc2dc1d3201cbb944179 to your computer and use it in GitHub Desktop.
Save BojanKomazec/5e8f307403fdfc2dc1d3201cbb944179 to your computer and use it in GitHub Desktop.
> s1 <- "United"
> s2 <- "Kingdom"
> s1+s2
Error in s1 + s2 : non-numeric argument to binary operator
> paste(s1, s2)
[1] "United Kingdom"
> paste0(s1, s2)
[1] "UnitedKingdom"
> s3 <- "is in Europe"
> paste(s1, s2, s3)
[1] "United Kingdom is in Europe"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment