Skip to content

help with print and ways to display results

1 message · Olivier MARTIN

#
Hi all,

I have some (stupid) problems to display  results and
i don't find a solution.

1-
res<-c(1,2,3)
I would like to display
 >Results are 1 2 3

The following command cat(paste("Results are  ",res,"\n")) give me
 >my results are  1 my results are  2 my results are  3

2- res<-cbind(c(1,2),c(2,3))
I would like to display
 >Result is the matrix 1 2
                                        2 3

Thanks,
Olivier.