next up previous
Next: Outputting tables to Latex Up: Graphics and output Previous: Graphics devices

Formatting screen output

You can nicely format lines of output in R and S using the 'cat' function instead of 'print'. For example:
>cat(val1,\t,val2,\n,val3,\n)
will print the three values separated by tabs and newlines as specified.



Chris Paciorek 2012-01-21