Re: [R] Need help plotting

2022-09-22 Thread DFP
That worked, and helped my understanding.  Thank you. Hello, You have to load the packages involved: library(dplyr) library(tidyr) library(ggplot2) then run the full sequence. Though this is not important, if you are pivotting columnns named y1 and

Re: [R] Need help plotting

2022-09-22 Thread Rui Barradas
No you don't! I do! I don't have tst on my system. Rui Barradas Às 22:11 de 22/09/2022, DFP escreveu: Do I need that read.table if the tst dataframe already exists in my system?  If so, why? -- Hello, You have to load the packages involved:

Re: [R] Need help plotting

2022-09-22 Thread Rui Barradas
Hello, You have to load the packages involved: library(dplyr) library(tidyr) library(ggplot2) then run the full sequence. Though this is not important, if you are pivotting columnns named y1 and y2, why not name the result just y? pivot_longer(-time, names_to = "y") And here is

Re: [R] Need help plotting

2022-09-22 Thread DFP
I'm trying to do as you suggest, but I'm not understanding what I need to do.  I asked what the line pivot_longer(-time, names_to = "y1") would do if applied to this df: > tst     time y1 y2 1  18:55 30 19 2  18:56 30 19 3  18:57 29 19 4  18:58 31 19 5  18:59 28 19 6  19:00 28 19 7  19:01 28

Re: [ESS] Emacs 28 and Sweave files

2022-09-22 Thread Tyler Smith via ESS-help
Hi, I just noticed that this question has an answer on emacs.stackexchange that might be helpful: https://emacs.stackexchange.com/questions/17063/how-to-setup-knitr-workflow-in-emacs/17065#17065 Tyler -- plantarum.ca On Sun, Sep 11, 2022, at 10:42 AM, Tyler Smith via ESS-help wrote: > Hi, >

[R-es] Grupo de Usuarios de R de Madrid - Jueves 29 de septiembre (presencial/online).

2022-09-22 Thread Carlos Ortega
Hola, El jueves 29 de septiembre, celebraremos la siguiente reunión del "Grupo de R de Madrid". En esta ocasión contaremos con Rasana Ferrero, directora académica de "Máxima Formación" que nos hablará de: *"Consejos para comenzar tu carrera de ciencia de datos con R".* Más detalles de la

Re: [R] Write text file in Fortran format

2022-09-22 Thread avi.e.gross
Javad, After reading the exchanges, I conclude you are asking a somewhat different question than some of us expected and I see some have zoomed in on what you seem to want. You seem to want to make a very focused change and save the results to be as identical as what you started with. You

Re: [R] Error in if (class(networks) == "matrix") from a function

2022-09-22 Thread Chao Liu
Thank you Eric, Andrew, Rui and Martin for all your help and advice. I did learn some good practices under the new R version! Best, Chao On Thu, Sep 22, 2022 at 5:53 AM Martin Maechler wrote: > > Eric Berger > > on Wed, 21 Sep 2022 22:26:39 +0300 writes: > > > In R 4.2.0 there

Re: [R-es] RMD

2022-09-22 Thread Javier Marcuzzi
Estimado Jose Cuando guardas el archivo, ¿está codificado en UTF8? Javier Marcuzzi > El 22 sep. 2022, a las 07:53, Jose Betancourt Bethencourt > escribió: > > Estimados cuando hago un Rmd , al salir en html los acentos no salen > sino otros signos no deseados. ?Como puedo evitar eso? > >

Re: [R] Write text file in Fortran format

2022-09-22 Thread Rui Barradas
Hello, Maybe the following solves the problem. I hope it does if the mailman footer is no longer there. # this path depends on the OP's system path <- "~/Temp" fl <- list.files(path, pattern = "Air.txt", full.names = TRUE) # read the file as text txt <- readLines(fl) # find lines starting

[R-es] RMD

2022-09-22 Thread Jose Betancourt Bethencourt
Estimados cuando hago un Rmd , al salir en html los acentos no salen sino otros signos no deseados. ?Como puedo evitar eso? saludos -- Dr. Jose A. Betancourt Bethencourt Universidad de Ciencias Medicas Carlos j. Finlay ___ R-help-es mailing list

Re: [R] Write text file in Fortran format

2022-09-22 Thread javad bayat
These 2 lines were at the end of the text file, which I have attached but I had removed them to read the text file in R. Just like the first 8 line that start with asterisk (*). On Thu, 22 Sep 2022, 12:21 Rui Barradas, wrote: > Hello, > > Are those lines at the begining of the file? > >

Re: [R] Mathematical working procedure of imputation methods (medianImpute, knnImpute, and bagImpute) in caret package R

2022-09-22 Thread K Purna Prakash
Thanks, I'll check them out. On Wed, Sep 21, 2022, 03:16 Bert Gunter wrote: > R is open source. Look at the code and read it. > Alternatively, look at references for all of this. e.g. on Wikipedia or > via web search. We generally do not provide statistical instruction on this > list. > > Bert

Re: [R] Error in if (class(networks) == "matrix") from a function

2022-09-22 Thread Martin Maechler
> Eric Berger > on Wed, 21 Sep 2022 22:26:39 +0300 writes: > In R 4.2.0 there is a significant change. When you use an if() statement > with a condition of length > 1 this now reports an error. > e.g. this link mentions it as a change >

Re: [R] Write text file in Fortran format

2022-09-22 Thread Rui Barradas
Hello, Are those lines at the begining of the file? Rui Barradas Às 06:44 de 22/09/2022, javad bayat escreveu: Dear all; Many thanks for your useful comments and codes. I tried both Rui's and Jim's codes. Jim's codes gave an error as below: "Error in substr(inputline, 1, begincol3 - 1) :

Re: [R] Fatal Error: Contains Space

2022-09-22 Thread Andrew Simmons
Hello, I'm going to quote the tempdir() doc page: "By default, tmpdir will be the directory given by tempdir(). This will be a subdirectory of the per-session temporary directory found by the following rule when the R session is started. The environment variables TMPDIR, TMP and TEMP are checked

Re: [R] Fatal Error: Contains Space

2022-09-22 Thread Ivan Krylov
On Wed, 21 Sep 2022 13:07:25 -0400 Kaitlyn Light wrote: > However, when I tried to open RStudio, a message saying " R_tempdir > Fatal Error: Contains Space" would pop-up. Does it work when you launch Rgui (part of R itself) instead of RStudio? -- Best regards, Ivan

Re: [R] Fatal Error: Contains Space

2022-09-22 Thread Eric Berger
Does this help? https://stackoverflow.com/questions/72138987/r-studio-fatal-error-r-tempdircontains-space On Thu, Sep 22, 2022 at 10:37 AM Kaitlyn Light wrote: > Hello! > I recently downloaded R and RStudio to my windows laptop. I downloaded the > correct version and made sure it was for

[R] Fatal Error: Contains Space

2022-09-22 Thread Kaitlyn Light
Hello! I recently downloaded R and RStudio to my windows laptop. I downloaded the correct version and made sure it was for windows and not mac. However, when I tried to open RStudio, a message saying " R_tempdir Fatal Error: Contains Space" would pop-up. The program would open as a blank screen