Q:

Write a R program to concatenate a vector

0

Write a R program to concatenate a vector.

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

a = c("Python","NumPy", "Pandas")
print(a)
x = paste(a, collapse = "")
print("Concatenation of the said string:")
print(x)

Sample Output:

[1] "Python" "NumPy"  "Pandas"
[1] "Concatenation of the said string:"
[1] "PythonNumPyPandas"

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now