Re: [R] "for" loop does not work with my plot_ly command

2021-03-30 Thread Bill Dunlap
Tmoy.png", > > paste("C:/MONOGRAPHIE/Resultats/Evolution Tmoy_",CPM[i],".png",sep="") > > > > > > > > *Lähettäjä: *Rachida El Ouaraini > > *Lähetetty: *maanantai 29. maaliskuuta 2021 18.15 > > *Vastaanottaja: *r-help@r-

Re: [R] "for" loop does not work with my plot_ly command

2021-03-30 Thread Mika Hamari
Lähetetty Samsung Galaxy -älypuhelimesta. Alkuperäinen viesti Lähettäjä: Rachida El Ouaraini Päivämäärä: 30.3.2021 12.25 (GMT+02:00) Saaja: Mika Hamari Kopio: r-help@r-project.org Aihe: Re: [R] "for" loop does not work with my plot_ly command Hi Mika, and thank you very

Re: [R] "for" loop does not work with my plot_ly command

2021-03-30 Thread Rachida El Ouaraini
Hi Jim, Many thanks for your answer ! I tried what you suggested but it doesn't work. I've got NO error message, but nothing happens at the end : no graphs ! It seems to me that the command "plot_ly" and the "for" loop DO NOT coexist, that's why I ask you how to overcome this problem? Thank you aga

Re: [R] "for" loop does not work with my plot_ly command

2021-03-30 Thread Rachida El Ouaraini
> *Lähettäjä: *Rachida El Ouaraini > *Lähetetty: *maanantai 29. maaliskuuta 2021 18.15 > *Vastaanottaja: *r-help@r-project.org > *Aihe: *[R] "for" loop does not work with my plot_ly command > > > > Hi everyone, > I am new to R programming, and I am having diff

Re: [R] "for" loop does not work with my plot_ly command

2021-03-29 Thread Jim Lemon
Hi Rachida, My guess is that you create a vector of filenames: filenames<-list.files(path="FicConfig",pattern="*.txt") then use the filenames in the loop: for(filename in filenames) { nextfile<- read.table(filename, header = TRUE, sep = "\t" , dec = ",", skip = 0) # do whatever you want with

Re: [R] "for" loop does not work with my plot_ly command

2021-03-29 Thread Mika Hamari
anottaja: r-help@r-project.org<mailto:r-help@r-project.org> Aihe: [R] "for" loop does not work with my plot_ly command Hi everyone, I am new to R programming, and I am having difficulties modifying an R script to introduce the "for" loop in the code. While searching I found t

[R] "for" loop does not work with my plot_ly command

2021-03-29 Thread Rachida El Ouaraini
Hi everyone, I am new to R programming, and I am having difficulties modifying an R script to introduce the "for" loop in the code. While searching I found that this issue has already been raised, but I did not know what to do to fix mine ! *The code that works (without for command):* CPM <- read