[R] R as a programming language
Barry Rowlingson
b.rowlingson at lancaster.ac.uk
Thu Nov 8 19:26:52 CET 2007
hadley wickham wrote:
> You're assuming an automatic cast from numbers into strings? What if
> a + "4" threw an error?
What's wrong with commas anyway when using cat():
> cat("x is ",x,' and y is ',y,'\n',sep='')
x is 1 and y is 2
and there's always sprintf() for those moments when you want neat
formatting.
Is it just me who thinks it's odd that in a language that is umpteen
years old we are still discussing the fundamentals of what essentially
makes up the 'hello world' example?
Barry
More information about the R-help
mailing list