Re: [R] Printing a title for an object in the console when writing a function XXXX

2011-05-07 Thread David Winsemius
On May 7, 2011, at 4:16 AM, Dan Abner wrote: Hello everyone, What is the best way to have R print a title and then skip a line (both without the [1] line preffix) when writing a function that prints an object (to the console)? Simplified example: fn3<-function(x,y){ c1<-cov(x,y) print

[R] Printing a title for an object in the console when writing a function XXXX

2011-05-07 Thread Dan Abner
Hello everyone, What is the best way to have R print a title and then skip a line (both without the [1] line preffix) when writing a function that prints an object (to the console)? Simplified example: fn3<-function(x,y){ c1<-cov(x,y) print(c1)} data1<-data.frame(age=rnorm(50),weight=rnorm(50