To print each element of a vector on a new line in R, you can use the ________ function.

  • cat()
  • echo()
  • print()
  • write()
The cat() function in R can be used to concatenate and print objects. If you want to print each element of a vector on a new line, you can use the cat() function with "n" (newline character) as the separator.
Add your answer
Loading...

Leave a comment

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