Lucca Ramalho
Lucca Ramalho

Reputation: 593

Remove space between cat()

Here's a simple one:

a <- "a"
cat(a,"b")


"a b"

Why is there a whitespace between them? How to remove it so it come out like this:

"ab"

Upvotes: 10

Views: 9424

Answers (1)

Andrii
Andrii

Reputation: 3043

You can also try this one

cat(paste0(a, "b"))

Upvotes: 10

Related Questions