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)) attach(data1) fn3(age,weight) ===== How do I have R print a nicely formatted title when printing c1 to the console? Thanks, Dan [[alternative HTML version deleted]] ______________________________________________ R-help@r-project.org 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.