Sri krishna Devarayalu Balanagu wrote:
Suppose I want the output as "Trial and a sheet" without quotes
x=c("a", "b", "c")
print("Trial and x[1] sheet")
Getting "Trial and x[1] sheet"
Can anyone help?
And for your sins in not reading the documentation:
cat(paste(rev(c("sheet",x[1],"and","Trial"))),"\n")
"R helps those who help themselves"
Jim
______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.