Check out example codes for "r convert vector to string". It will help you in understanding the concepts better.

Code Example 1

# Basic syntax:
toString(your_vector)

# Example usage:
your_vector = c(1,2,3,4,5)
toString(your_vector)
--> "1,2,3,4,5"

Learn ReactJs, React Native from akashmittal.com