Suppose you're asked to create a string in R that includes a newline and a tab character. How would you do it?

  • "HellontWorld"
  • "HellontWorld"
  • "HellontWorld"
  • 'HellontWorld'
To create a string in R that includes a newline and a tab character, you would use the escape sequences n for newline and t for tab. For example, "HellontWorld" or 'HellontWorld' would represent the string "Hello" on a new line followed by a tab character and then "World".
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *