10

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"
1
  • 18
    Try cat(a, "b", sep = "") Commented May 17, 2018 at 18:16

1 Answer 1

10

You can also try this one

cat(paste0(a, "b"))
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.