Re: [R] printing with bothe print and cat...

2022-07-10 Thread akshay kulkarni
Dear Rui, Many thanks... Yours Akshay M Kulkarni From: Rui Barradas Sent: Sunday, July 10, 2022 12:39 AM To: akshay kulkarni ; R help Mailing list Subject: Re: [R] printing with bothe print and cat... Hello, Like this? testprint <- function() { for(i

Re: [R] printing with bothe print and cat...

2022-07-09 Thread Rui Barradas
Hello, Like this? testprint <- function() { for(i in 1:5) { for(j in 1:5) { cat(j, "") } cat("\t", i, "\n") } } testprint() #> 1 2 3 4 5 1 #> 1 2 3 4 5 2 #> 1 2 3 4 5 3 #> 1 2 3 4 5 4 #> 1 2 3 4 5 5 Hope this helps, Rui Barradas Às 17:46 de 09/07/2

Re: [R] printing with bothe print and cat...

2022-07-09 Thread akshay kulkarni
Dear Tim, Many thanks... Yours sincerely AKSHAYM KULKARNI From: Ebert,Timothy Aaron Sent: Saturday, July 9, 2022 11:03 PM To: akshay kulkarni ; David Winsemius Cc: R help Mailing list Subject: RE: [R] printing with bothe print and cat

Re: [R] printing with bothe print and cat...

2022-07-09 Thread akshay kulkarni
Dear David, Thanks ... Yours sinecrely, AKSHAY M KULKARNI From: David Winsemius Sent: Saturday, July 9, 2022 10:30 PM To: akshay kulkarni Cc: R help Mailing list Subject: Re: [R] printing with bothe print and cat... If spaces needed. In

Re: [R] printing with bothe print and cat...

2022-07-09 Thread David Winsemius
If spaces needed. In first sequences then paste( 1:5, collapse=“ “) Sent from my iPhone > On Jul 9, 2022, at 9:59 AM, David Winsemius wrote: > > Skip the for loops: > > cat(paste( seq(1:5), ““, 1:5) ) > > — > David > > Sent from my iPhone > >> On Jul 9, 2022, at 9:47 AM, akshay kulk

Re: [R] printing with bothe print and cat...

2022-07-09 Thread David Winsemius
Skip the for loops: cat(paste( seq(1:5), ““, 1:5) ) — David Sent from my iPhone > On Jul 9, 2022, at 9:47 AM, akshay kulkarni wrote: > > Dear members, > I have the following code: > > testprint <- function() { > > for(i in 1:5) {for(j in 1:5) > {cat(j)} >