Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remove space between cat()

Tags:

r

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"
like image 335
Lucca Ramalho Avatar asked Apr 28 '26 06:04

Lucca Ramalho


1 Answers

You can also try this one

cat(paste0(a, "b"))
like image 187
Andrii Avatar answered Apr 29 '26 20:04

Andrii



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!