I am relatively new to R. How do I use the value of variables in print and other statements. For example, in Java we can do this by:
System.out.println(" My name is "+ pradeep);
We use the + operator. How to do this in R?
In R you can do this with paste()
(see ?paste
for more info):
print(paste("My name is ", pradeep, ".", sep = ""))