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] A humble request

2022-07-09 Thread Muhammad Zubair Chishti
Dear Respected Experts, Thank you so much for your precious time and generous support. My issue is resolved now. Regards On Sun, 3 Jul 2022, 20:48 Spencer Graves, < spencer.gra...@effectivedefense.org> wrote: > Hi, Richard: Thanks for the question. > > > "Source the function" means th

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... Her

Re: [R] Please guide

2022-07-09 Thread Muhammad Zubair Chishti
Dear Experts, A kind reminder. Please help me. On Fri, 8 Jul 2022, 21:56 Muhammad Zubair Chishti, wrote: > > *Dear Experts,* > *Greetings from Pakistan*. > *When I run the following code in R* > library(frequencyConnectedness) > library(readxl) > ##Add data here## > Data <- read_excel("Data_oil

Re: [R] Geom ribbon

2022-07-09 Thread jade.shodan--- via R-help
I'm not sure if geom_ribbon works with categorical data. It didn't work for me, so I have coded location as a numeric, which works. You can then manuall re-label the tick marks, as per the code below. Others may be able to add to the code to add a legend, or propose a different solution altogether,

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 f

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)} >

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

2022-07-09 Thread akshay kulkarni
Dear members, I have the following code: testprint <- function() { for(i in 1:5) {for(j in 1:5) {cat(j)} print(i)} } And the output is: > testprint() 12345[1] 1 12345[1] 2 12345[1] 3 12345[1] 4 12345[1] 5 Any idea on how to remove the [1] from the output, and g