Re: [R] simple problem with unquoting argument

2024-07-03 Thread Troels Ring
Dear Ivan and Rui - thanks a lot for the effective help. All best wishes Troels Den 03-07-2024 kl. 10:25 skrev Ivan Krylov: В Wed, 3 Jul 2024 10:13:59 +0200 Troels Ring пишет: Now e looks right - but I have been unable to find out how to get the string e converted to the proper argument for

Re: [R] simple problem with unquoting argument

2024-07-03 Thread Ivan Krylov via R-help
В Wed, 3 Jul 2024 10:13:59 +0200 Troels Ring пишет: > Now e looks right - but I have been unable to find out how to get the > string e converted to the proper argument for sum()  - i.e. what  is > function xx? get(e) will return the value of the variable with the name stored in the variable

Re: [R] simple problem with unquoting argument

2024-07-03 Thread Rui Barradas
Às 09:13 de 03/07/2024, Troels Ring escreveu: Hi  friends - I'm in problems finding out how to unquote - I have a series of vectors named adds1adds11 and need to e.g. find the sum of each of them So I try SS <- c() for (i in 1:11) { e <- paste("adds",i,sep="") SS[i]  <- sum(xx(e)) }

[R] simple problem with unquoting argument

2024-07-03 Thread Troels Ring
Hi  friends - I'm in problems finding out how to unquote - I have a series of vectors named adds1adds11 and need to e.g. find the sum of each of them So I try SS <- c() for (i in 1:11) { e <- paste("adds",i,sep="") SS[i]  <- sum(xx(e)) } Now e looks right - but I have been unable to

Re: [R] summaryRprof: Unexpected unit for memory profiling

2024-07-02 Thread Jeff Newmiller via R-help
There was a time when people pretty much ignored the distinction between MB and MiB in computer applications, and using the binary version was usually assumed because, well, this _is_ memory we are measuring. I think this is a leftover from that time. On July 1, 2024 6:33:43 AM PDT, "Sauer,

[R] summaryRprof: Unexpected unit for memory profiling

2024-07-02 Thread Sauer, Lukas Daniel
Hello, I am profiling memory usage using utils::Rprof() and subsequently summarizing the profile using utils::summaryRprof(). According to the documentation ?summaryRprof, the option `memory = "both"` reports "memory consumption in Mb in addition to the timings", i.e. the unit is megabytes.

Re: [R] Create matrix with variable number of columns AND CREATE NAMES FOR THE COLUMNS

2024-07-01 Thread Heinz Tuechler via R-help
Sorkin, John wrote/hat geschrieben on/am 01.07.2024 17:54: #I am trying to write code that will create a matrix with a variable number of columns where the #number of columns is 1+Grps #I can do this: NSims <- 4 Grps <- 5 DiffMeans <- matrix(nrow=NSims,ncol=1+Grps) DiffMeans #I have a problem

Re: [R] Create matrix with variable number of columns AND CREATE NAMES FOR THE COLUMNS

2024-07-01 Thread Jeff Newmiller via R-help
I think you should reconsider your goal. Matrices must have all elements of the same type, and in this case you seem to be trying to mix a number of something (integer) with mean values (double). This would normally be stored together in a data frame or separately in a vector for counts and a

Re: [R] Create matrix with variable number of columns AND CREATE NAMES FOR THE COLUMNS

2024-07-01 Thread Rui Barradas
Às 16:54 de 01/07/2024, Sorkin, John escreveu: #I am trying to write code that will create a matrix with a variable number of columns where the #number of columns is 1+Grps #I can do this: NSims <- 4 Grps <- 5 DiffMeans <- matrix(nrow=NSims,ncol=1+Grps) DiffMeans #I have a problem when I try

Re: [R] Create matrix with variable number of columns AND CREATE NAMES FOR THE COLUMNS

2024-07-01 Thread Rui Barradas
Às 16:54 de 01/07/2024, Sorkin, John escreveu: #I am trying to write code that will create a matrix with a variable number of columns where the #number of columns is 1+Grps #I can do this: NSims <- 4 Grps <- 5 DiffMeans <- matrix(nrow=NSims,ncol=1+Grps) DiffMeans #I have a problem when I try

Re: [R] Create matrix with variable number of columns AND CREATE NAMES FOR THE COLUMNS

2024-07-01 Thread Ebert,Timothy Aaron
NSims <- 4 Grps <- 5 DiffMeans <- matrix(nrow=NSims,ncol=1+Grps) DiffMeans #I have a problem when I try to name the columns of the matrix. I want the first column to be NSims, #and the other columns to be something like Value1, Value2, . . . Valuen where N=Grps Colnames <- as.vector("NSims")

[R] Create matrix with variable number of columns AND CREATE NAMES FOR THE COLUMNS

2024-07-01 Thread Sorkin, John
#I am trying to write code that will create a matrix with a variable number of columns where the #number of columns is 1+Grps #I can do this: NSims <- 4 Grps <- 5 DiffMeans <- matrix(nrow=NSims,ncol=1+Grps) DiffMeans #I have a problem when I try to name the columns of the matrix. I want the

[R] R related tools - GUI

2024-06-29 Thread Neotropical bat risk assessments
For years I used Deducer (Package Deducer) developed by Ian Fellows.  This is still available and partially remains mostly functional.  He was working on a new GUI years ago but appears no longer to be in the pipeline I think replaced by R-Studio. Send R-help mailing list submissions to

Re: [R-es] Ayuda para hacer una lista

2024-06-28 Thread José Luis Pedro Méndez
Buenos días, No entiendo mucho del código que mencionas para la parte (3), tampoco comprendo las ideas de número de condiciones *y *y número de réplicas *x*. Sin embargo leyendo el propósito de *calcular el coeficiente de variación por lista*, *ejemplo: **tres condiciones == tres listas == 3 CV

Re: [R] [Tagged] Re: Referencing Sys.Date to a different time zone

2024-06-28 Thread Jeff Newmiller via R-help
The key points are that: a) Date values have no idea what timezone means. b) Sys.Date starts with local time and converts to Date, losing timezone info. c) You try comparing a Date with a POSIXt time value, and the conversion from Date to POSIXt _assumes UTC_. This is a problem for anyone not

Re: [R] Referencing Sys.Date to a different time zone

2024-06-28 Thread Ivan Krylov via R-help
В Fri, 28 Jun 2024 18:52:26 +0200 Dennis Fisher пишет: > When I issue the command: > Sys.Date() > I would like to be able to obtain the value for Pacific time (which > differ for the first 9 hours of the day) By the time the value of Sys.Date() is created, it's too late to discern between

[R] Referencing Sys.Date to a different time zone

2024-06-28 Thread Dennis Fisher
R 4.3.1 OS X Colleagues Hopefully this question elicits a simple answer. I am in Europe at present. When I issue the command: Sys.Date() I would like to be able to obtain the value for Pacific time (which differ for the first 9 hours of the day), I would like the process to be

Re: [R] Converting .grib to excel file

2024-06-28 Thread javad bayat
Dear Richard, I could not extract the data at all. But what I found is that, the data stored in the grib file converted into raster layer, and as I had 6 met parameters for a complete year (6 × 365 × 24) the raster layer has 52,560 layer. The first layer belongs to the first parameter for the

Re: [R] Positron as a tool

2024-06-28 Thread Stephen H. Dawson, DSL via R-help
The gap I see is in the database engine monitoring. MySQL has discontinued development of Workbench. Percona Monitoring and Management seems nice, but not as integrated in IDE as I would prefer. A Positron tool proposed by the vendor is positioned as a data science tool. The ability to know

Re: [R] Positron as a tool

2024-06-28 Thread avi.e.gross
Just to be clear, Denis, I am not in any way associated with anybody or anything and just read about it on a news feed not from POSIT directly. I am aware it is based on existing functionality and have used possibly similar editors for other languages. I did try possibly one touted by Microsoft

Re: [R-es] Ayuda para hacer una lista

2024-06-28 Thread Fer Arce via R-help-es
Hola, que tal? Sin saber nada mas de los datos, por lo que dices, mi aprioximacion seria usar la funcion split, e.g.: splittedData <- split(myData, "variablegrupo/condicion") Esto te crearia una lista con tantos objectos como condiciones tengas. Saludos On 6/27/24 10:15, Leticia G Leon

Re: [R] Positron as a tool

2024-06-28 Thread Dénes Tóth
Hi Avi, I am not sure that the R-help mailing list is a suitable channel for advertising R-related tools... But given you mentioned Positron (https://github.com/posit-dev/positron), which is based on VSCode, it is worth calling out that a free, open-source, community-maintained, very feature

[R] Positron as a tool

2024-06-27 Thread avi.e.gross
This is just an FYI based on a news item I saw tonight. There have been discussions on what editors or environments people can use when working with R and I personally have mostly been using versions of RSTUDIO and lately for both R and python. As often noted, RSTUDIO is a product of a company,

Re: [R-es] Ayuda para hacer una lista

2024-06-27 Thread Eric
Hola Leticia, podrías compartir una sección de tus datos para comprender el problema correctamente por favor ? Se me ocurre que con la librería data.table puede ser muy sencillo resolver el problema, pero necesito saber cómo están organizados tus datos. Saludos !! Eric. On Wed, 26

Re: [R-es] Ayuda para hacer una lista

2024-06-27 Thread Javier Marcuzzi
Estimada Leticia Lista, data.frame, etc. Son formas de tener la información, lo que pasa es que alguna tiene más herramientas que otras para poder trabajar. Si usted lo desea realizar con una lista y un bucle, se puede, pero todo ese trabajo por ahí es mas simple desde un data.frame, o alguna

Re: [R-es] Ayuda para hacer una lista

2024-06-27 Thread Leticia G Leon
Muchas fracias por la rapida contastacion Javier. Si, ya me he dado cuenta que a veces es mas limpiar y formatear que calcular. Lo que yo necesito hacer no es crear un data.frame, es crear una lista por cada grupo/condicion de muestras. Y queria hacerlo en un for loop, para que no tuviese que

Re: [R] Regarding the Security Vulnerability CVE 2024 - 27322

2024-06-27 Thread Ivan Krylov via R-help
В Thu, 27 Jun 2024 11:08:53 + "Priya, Aishwarya" пишет: > Is there a way to patch or upgrade the existing installation to > version 4.4.0, rather than having to uninstall the older version and > then install the latest one? I don't think that there is a supported way to do that. The main

Re: [R] Regarding the Security Vulnerability CVE 2024 - 27322

2024-06-27 Thread Priya, Aishwarya via R-help
Hi Ivan and R - Help Team, Thank you for your prompt response and the helpful information. I have another query: Is there a way to patch or upgrade the existing installation to version 4.4.0, rather than having to uninstall the older version and then install the latest one? A direct upgrade or

[R] emmeans (component = " response", type = "response")

2024-06-26 Thread Cade, Brian S via R-help
I am estimating fairly simple zero-inflated negative binomial models in glmmTMB. The models have just two factors and their interaction, a total of 4 levels. I was trying to use emmeans() to obtain estimates and 95% CI for these four levels. However, when I use emmeans() with the arguments

Re: [R] Regarding the Security Vulnerability CVE 2024 - 27322

2024-06-26 Thread Ben Bolker
On 2024-06-26 4:25 p.m., Ivan Krylov via R-help wrote: Dear Aishwarya Priyadarshini, Welcome to R-help! Most people here aren't affiliated with R Foundation. В Wed, 26 Jun 2024 17:03:37 + "Priya, Aishwarya via R-help" пишет: I am reaching out to seek your guidance on addressing the

Re: [R] Regarding the Security Vulnerability CVE 2024 - 27322

2024-06-26 Thread Ivan Krylov via R-help
Dear Aishwarya Priyadarshini, Welcome to R-help! Most people here aren't affiliated with R Foundation. В Wed, 26 Jun 2024 17:03:37 + "Priya, Aishwarya via R-help" пишет: > I am reaching out to seek your guidance on addressing the security > vulnerability CVE-2024-27322. > To address this

[R] Regarding the Security Vulnerability CVE 2024 - 27322

2024-06-26 Thread Priya, Aishwarya via R-help
Dear R Foundation Team, I hope this message finds you well. I am reaching out to seek your guidance on addressing the security vulnerability CVE-2024-27322. As I understand, a security fix for this vulnerability has been available starting from v4.4.0. This issue affects all versions from

Re: [R-es] Ayuda para hacer una lista

2024-06-26 Thread Javier Marcuzzi
Hola Leticia Acomodar datos para analizar suele llevar más trabajo que el análisis. Yo prefiero en un data.frame colocar todos los datos, porque siempre es más fácil filtrar que agregar. Cuándo tengo el data.frame con todo, realizo un plot (datos), y muchas veces en la gráfica veo cosas que me

[R-es] Ayuda para hacer una lista

2024-06-26 Thread Leticia G Leon
Hola Soy Leticia, quería hacer una consulta al grupo a ver si me podéis ayudar. Tengo unos datos de proteínas, el data frame es: 5 columnas iniciales que tienen información sobre las proteínas y después las columnas con las intensidades, de las cuales no se cuantas condiciones tienen ni cuántas

Re: [R] Converting .grib to excel file

2024-06-26 Thread Richard O'Keefe
Whoops, sorry, you *did* answer "what went wrong". > param_names <- c("param1", "param2", "param3", "param4", "param5", "param6") > extracted_data <- extract(raster_data, param_names, df = TRUE) #Error in (function (classes, fdef, mtable) : #unable to find an inherited method for function

Re: [R] Converting .grib to excel file

2024-06-26 Thread Richard O'Keefe
I'm now inclined to go with 'search for "convert GRIB to CSV". https://confluence.ecmwf.int/display/CKB/How+to+convert+GRIB+to+CSV is the first line. I know that's not an R solution, but using software specifically developed for encoding, decoding, extracting, GRIB file by the European Centre

Re: [R] Converting .grib to excel file

2024-06-26 Thread javad bayat
Dear all; I used the terra package to export .grib data as an excel file but I could not do it. The grib file is readed and converted to raster correctly. It contains hourly data of a complete year for 6 met parameters (365 * 24 * 6 = 52,560). In the "raster_data" it can be seen as "nlyr" (

Re: [R] Converting .grib to excel file

2024-06-25 Thread javad bayat
Dear Bert and Sara; I have searched on the internet and found some way to do this like python. But python is so complicated to me as it needs many steps to be done for reading and converting it. I will try terra package to convert it. On Tue, 25 Jun 2024, 15:15 javad bayat, wrote: > Richard, >

Re: [R] Converting .grib to excel file

2024-06-25 Thread javad bayat
Richard, Many thanks for your email. I had attached the grib file to the original email to R help team but it seems you did not receive it. Unfortunately, I do not know how to reduce the volume or extract some of the grib file data to send it for you. The file has the volume of 6 Megabyte. I can

Re: [R] Converting .grib to excel file

2024-06-25 Thread Sarah Goslee
Hi, While Bert is correct that there are plenty of tools, my preferred approach is to use the terra package to load a grib as a raster stack. >From there, it's straightforward to use all the spatial tools with the data, or to extract it in whatever form and with whatever dimensions you wish.

Re: [R] "--" < 0

2024-06-25 Thread avi.e.gross
Unfortunately, Adrian, even trying to coerce a string like "--" to numeric just produces an NA and comparison fails: > as.numeric("--") < 0 [1] NA Warning message: NAs introduced by coercion The same is true of anything that is character as it cannot be coerced. > as.numeric("anything") < 0

Re: [R] Converting .grib to excel file

2024-06-25 Thread Bert Gunter
Do a web search on "convert grib data to csv". You will get many hits. You probably don't need R to do this. -- Bert On Tue, Jun 25, 2024 at 1:33 AM javad bayat wrote: > Dear all; > I have downloaded meteorology data from " > >

Re: [R] Converting .grib to excel file

2024-06-25 Thread Richard O'Keefe
Your message referred to an attached file but there was no attachment, I have no account at that service, so could not download a sample for myself. Does the licence for the data even allow you to send some of it in a message? Which parameters are you extracting? When you say "it didn't work",

Re: [R] "--" < 0

2024-06-25 Thread Adrian Dusa
Oh I see... It's not that "-7" gets coerced to numeric, but 0 gets coerced to "0". Of course... On Tue, Jun 25, 2024 at 11:02 AM Martin Maechler wrote: > > Adrian Dusa > > on Tue, 25 Jun 2024 10:56:07 +0300 writes: > > > Dear R fellows, > > >> From time to time, just when I

Re: [R] "--" < 0

2024-06-25 Thread peter dalgaard
Also notice that > "+5" < 0 [1] TRUE > as.numeric("+5") < 0 [1] FALSE So the presumption is wrong. It is really about > sort(c(0:3, "+", "-")) [1] "-" "+" "0" "1" "2" "3" -pd > On 25 Jun 2024, at 10:02 , Martin Maechler wrote: > >> Adrian Dusa >>on Tue, 25 Jun 2024 10:56:07

[R] Converting .grib to excel file

2024-06-25 Thread javad bayat
Dear all; I have downloaded meteorology data from " https://cds.climate.copernicus.eu/cdsapp#!/dataset/reanalysis-era5-single-levels?tab=form; as .grib format. It has hourly data of a complete year (every hour of every day of 12 months) and has 6 meteorology parameters. The file has been attached.

Re: [R] "--" < 0

2024-06-25 Thread Martin Maechler
> Adrian Dusa > on Tue, 25 Jun 2024 10:56:07 +0300 writes: > Dear R fellows, >> From time to time, just when I thought I knew my R, I get >> bitten by some > small things that reminds one to constantly return to the > basics. > I knew for instance that "-1"

[R] "--" < 0

2024-06-25 Thread Adrian Dusa
Dear R fellows, >From time to time, just when I thought I knew my R, I get bitten by some small things that reminds one to constantly return to the basics. I knew for instance that "-1" < 0 is TRUE, presumably because R first coerces to numeric before comparing with 0. But I did not expect that

Re: [R] Naming output file

2024-06-24 Thread avi.e.gross
I had the same FIRST impression which could have made sense as in writing the data back out to a file with a similar name and that would have been trivial. I mean if you had exactly three, a loop would not even be particularly useful versus writing two lines, copying them and editing the latter

Re: [R] Naming output file

2024-06-24 Thread Richard O'Keefe
The subject line says (capitalisation changed) "name output FILE" but I see no attempt in the sample code to create an output FILE. I was expecting to see something like write(, file = paste0("bop",im)) On Mon, 24 Jun 2024 at 23:41, Steven Yen wrote: > > I would like a loop to > > (1) read

Re: [R-es] 90 - Reunión Grupo de R -Madrid: Jueves 27 de junio de 2024

2024-06-24 Thread Carlos Ortega
Hola José Luis, ¿Qué tal?. El enlace a Zoom, aparece en la página de Meetup en la zona de la derecha, parte superior. Dime si no la encuentras y te la paso. Gracias, Carlos. El lun, 24 jun 2024 a las 19:42, José Luis Pedro Méndez (< joseluispedromen...@ciencias.unam.mx>) escribió: > Buenos

Re: [R] Naming output file

2024-06-24 Thread Fer Arce via R-help
Hi, try with: m<-3 for (im in 1:m) { mydata<-read.csv(paste0("2010midata",im,".csv")) assign(paste0("bop",im),boprobit(eqs,mydata,wt=weight,method="BHHH",tol=0,reltol=0,gradtol=1e-5, Fisher=TRUE) } cheers F. On 6/24/24 06:41, Steven Yen wrote: I would like a loop to (1) read data files

Re: [R] Integration of functions with a vector argument

2024-06-24 Thread Levine, Michael
Dear Bert, Thank you very much for your suggestions! Yours sincerely, Michael Michael Levine Associate Professor, Statistics Department of Statistics Purdue University 250 North University Street West Lafayette, IN 47907 USA email: mlev...@purdue.edu Phone: +1-765-496-7571 Fax:

Re: [R] Integration of functions with a vector argument

2024-06-24 Thread Levine, Michael
Dear Ivan, Thank you very much again for your suggestions! I will try to use Cubature, then. yours sincerely, Michael Michael Levine Associate Professor, Statistics Department of Statistics Purdue University 250 North University Street West Lafayette, IN 47907 USA email: mlev...@purdue.edu

Re: [R-es] 90 - Reunión Grupo de R -Madrid: Jueves 27 de junio de 2024

2024-06-24 Thread José Luis Pedro Méndez
Buenos días, ¿Serían tan amables de compartir compartir algún enlace para conectarnos? Muchas gracias El dom, 23 jun 2024 a las 6:17, Carlos Ortega () escribió: > ¿Qué tal? > > El próximo jueves (27 de junio), volvemos con una nueva sesión del > "Grupo de R de Madrid". > > Volvemos a contar

Re: [R] Naming output file

2024-06-24 Thread Steven Yen
Thanks to all. Editing the line to the following worked: ame<-ame.bopa(get(paste0("bop",im)),y1.level=y1value,y2.level=y2value,jindex=jindex1,vb.method="invH",joint12=TRUE,     printing=FALSE,testing=TRUE) On 6/24/2024 9:00 PM, Ivan Krylov wrote: В Mon, 24 Jun 2024 20:16:46 +0800

Re: [R] Naming output file

2024-06-24 Thread Ben Bolker
As stated earlier in the thread, this is where you would need to use get(paste0("bop", im)) [the analogue of assign]. This unwieldiness is the exact reason that several posters are encouraging you to change your approach and store these objects in a list ... On 2024-06-24 8:16 a.m.,

Re: [R] Naming output file

2024-06-24 Thread Ivan Krylov via R-help
В Mon, 24 Jun 2024 20:16:46 +0800 Steven Yen пишет: > In the call to ame.bopa in a loop, I like inputs in the call to > ame.bopa to be bop1, bop2, bop3,... Thanks. > > for (im in 1:m) { > ame<-ame.bopa(bop,y1.level=y1value,y2.level=y2value,jindex=jindex1,vb.method="invH",joint12=TRUE, >   

Re: [R] Naming output file

2024-06-24 Thread Steven Yen
Great, thanks. Eric's suggestion is the most simple. Here's a resulting problem. In the call to ame.bopa in a loop, I like inputs in the call to ame.bopa to be bop1, bop2, bop3,... Thanks. for (im in 1:m) {

Re: [R] Naming output file

2024-06-24 Thread Steven Yen
Thanks Eric. I am not following your suggested line. Would you just edit my line 4? Thanks. On 6/24/2024 7:51 PM, Eric Berger wrote: > How about > > assign(paste0("bop",im), boprobit( etc )) > > > > On Mon, Jun 24, 2024 at 2:41 PM Steven Yen wrote: > > I would like a loop to > > (1)

Re: [R] Naming output file

2024-06-24 Thread Rui Barradas
Às 12:41 de 24/06/2024, Steven Yen escreveu: I would like a loop to (1) read data files 2010midata1,2010midata2,2010midata3; and (2)  name OUTPUT bop1,bop2,bop3. I succeeded in line 3 of the code below, BUT not line 4. The error message says: Error in paste0("bop", im) <- boprobit(eqs,

Re: [R] Naming output file

2024-06-24 Thread Eric Berger
assign(paste0("bop",im),boprobit(eqs,mydata,wt=weight,method="BHHH",tol=0,reltol=0,gradtol=1e-5,Fisher=TRUE)) On Mon, Jun 24, 2024 at 2:56 PM Steven Yen wrote: > Thanks Eric. I am not following your suggested line. Would you just edit > my line 4? Thanks. > On 6/24/2024 7:51 PM, Eric Berger

Re: [R] Naming output file

2024-06-24 Thread Ivan Krylov via R-help
В Mon, 24 Jun 2024 19:41:10 +0800 Steven Yen пишет: > (2)  name OUTPUT bop1,bop2,bop3. > > I succeeded in line 3 of the code below, > > BUT not line 4. The error message says: > > Error in paste0("bop", im) <- boprobit(eqs, mydata, wt = weight, > method = "NR", : target of assignment expands

Re: [R] Naming output file

2024-06-24 Thread Eric Berger
How about assign(paste0("bop",im), boprobit( etc )) On Mon, Jun 24, 2024 at 2:41 PM Steven Yen wrote: > I would like a loop to > > (1) read data files 2010midata1,2010midata2,2010midata3; and > > (2) name OUTPUT bop1,bop2,bop3. > > I succeeded in line 3 of the code below, > > BUT not line

[R] Naming output file

2024-06-24 Thread Steven Yen
I would like a loop to (1) read data files 2010midata1,2010midata2,2010midata3; and (2)  name OUTPUT bop1,bop2,bop3. I succeeded in line 3 of the code below, BUT not line 4. The error message says: Error in paste0("bop", im) <- boprobit(eqs, mydata, wt = weight, method = "NR", : target of

[R-es] 90 - Reunión Grupo de R -Madrid: Jueves 27 de junio de 2024

2024-06-23 Thread Carlos Ortega
¿Qué tal? El próximo jueves (27 de junio), volvemos con una nueva sesión del "Grupo de R de Madrid". Volvemos a contar con Guillermo Luijk que nos seguirá contando cómo manipular imágenes usando R. En esta ocasión nos contará como generar una imagen a partir de una secuencia de imágenes. El

Re: [R] Regression performance when using summary() twice

2024-06-21 Thread John Fox
Dear Christian, You're apparently using the glm.nb() function in the MASS package. Your function is peculiar in several respects. For example, you specify the model formula as a character string and then convert it into a formula, but you could just pass the formula to the function -- the

Re: [R] Regression performance when using summary() twice

2024-06-21 Thread Michael Dewey
Dear Christian Without knowing how big your datset is it is hard to be sure but confint() can take some time. Have you thought of calling summary once summ <- summary(model) and then replace all subsequent calls to summary with summ Michael On 21/06/2024 15:38, c.bu...@posteo.jp wrote:

Re: [R] devtools - bad credentials R4.4.1

2024-06-21 Thread Robert Baer
Thank  you Jeff.  I did not know Windows Credential Manager, but I used it and found something that looked like a reference to a GIT PAT and removed it. Now devtools::install_github() is once again installing my package without complaining. Appreciate the direction and links. On 6/20/2024

[R] Regression performance when using summary() twice

2024-06-21 Thread c . buhtz
Hello, I am not a regular R user but coming from Python. But I use R for several special task. Doing a regression analysis does cost some compute time. But I wonder when this big time consuming algorithm is executed and if it is done twice in my sepcial case. It seems that calling "glm()"

Re: [R] Problem with combining monthly nc files into a yearly file (era5 climate data)

2024-06-21 Thread Roy Mendelssohn - NOAA Federal via R-help
Hi Leni: You forget to post the important part - the errors you have been getting and if you have the errors isolated to particular lines in the code. HTH, -Roy > On Jun 21, 2024, at 3:59 AM, Leni Koehnen via R-help > wrote: > > Dear R-help List, > > I am currently trying to run a code

[R] Problem with combining monthly nc files into a yearly file (era5 climate data)

2024-06-21 Thread Leni Koehnen via R-help
Dear R-help List,  I am currently trying to run a code which is available on Zenodo (https://zenodo.org/records/10997880 - 02_MicroClimModel.R). The code downloads yearly era5 climate data. Unfortunately, the limit to download these nc-files was recently reduced to 6. Therefore, I can

Re: [R] Bug with writeClipboard in {utils}

2024-06-21 Thread Ivan Krylov via R-help
В Thu, 20 Jun 2024 18:39:34 +0300 Ivan Krylov via R-help пишет: > > Is there a way to test this patch or will there soon be a published > > patched R version available for download? > > Not directly. Now that the bug is fixed in R-devel (thanks Tomas!), a Windows build of the development

Re: [R] devtools - bad credentials R4.4.1

2024-06-21 Thread Hadley Wickham
The place to start for such problems is always usethis::git_sitrep() Hadley On Thu, Jun 20, 2024 at 11:17 PM Robert Baer wrote: > I am trying to install a package from github which has worked fine in > the past, but now seems to be stuck on some new authentication issues. > Does anyone know how

Re: [R] Bug with writeClipboard in {utils}

2024-06-21 Thread Barthelemy Tanguy via R-help
Hello, Thank you for your research and your bug report. At the end of your bug report (https://bugs.r-project.org/show_bug.cgi?id=18747) you mentioned that "the problem doesn't reappear with the attached patch". Is there a way to test this patch or will there soon be a published patched R

Re: [R] Bug with writeClipboard in {utils}

2024-06-21 Thread Barthelemy Tanguy via R-help
Hello, Thank you for your different tests. You have that you didn't find any errors with Rscript or with R but I have the impression that your test with R (second test) showed additional and unwanted characters (second line of the output)? Thank you again Tanguy BARTHELEMY

Re: [R] devtools - bad credentials R4.4.1

2024-06-20 Thread Jeff Newmiller via R-help
I would delete the PAT from the credential manager since it seems to be timed out anyway... I don't know my way around the Windows Credential Manager very well, but it seems to me

Re: [R] devtools - bad credentials R4.4.1

2024-06-20 Thread Robert Baer
Not being a developer, I have limited uderstanding of PATs and global git options, but here is what I was able to cobble together to start looking at my situation: > Sys.getenv("GITHUB_PAT") [1] "" > Sys.unsetenv("GITHUB_PAT") > Sys.getenv("GITHUB_PAT") [1] "" >

Re: [R] devtools - bad credentials R4.4.1

2024-06-20 Thread Jeff Newmiller via R-help
My guess is that this is related to you saving an expired Personal Access Token in your global git options or credentials store? Git is perfectly capable of using per-repo credentials... don't configure a credential in your global configuration and it won't fall back on using it to access

[R] devtools - bad credentials R4.4.1

2024-06-20 Thread Robert Baer
I am trying to install a package from github which has worked fine in the past, but now seems to be stuck on some new authentication issues.  Does anyone know how I can straighten myself out?  In theory, this is a public repository so I'm not sure why I even need authenticating for

Re: [R] Integration of functions with a vector argument

2024-06-20 Thread Bert Gunter
The calculus package might also be relevant (not sure if it was in the Task View): https://cran.r-project.org/web/packages/calculus/index.html -- Bert On Thu, Jun 20, 2024 at 10:01 AM Bert Gunter wrote: > If you haven't already done so, you may wish to have a look here: > > >

Re: [R] Integration of functions with a vector argument

2024-06-20 Thread Bert Gunter
If you haven't already done so, you may wish to have a look here: https://cran.r-project.org/web/views/NumericalMathematics.html#differentiation-and-integration (Or perhaps in other related subtopics in the Numerical Math task view) Cheers, Bert On Thu, Jun 20, 2024 at 8:37 AM Ivan Krylov via

Re: [R] unable to get barchart of censored subjects from ggsurvplot() in survminer package, if there is no predcitor

2024-06-20 Thread Ivan Krylov via R-help
В Mon, 17 Jun 2024 15:53:16 -0400 "Christopher W. Ryan via R-help" пишет: > Caused by error: > ! Unknown colour name: strata" > about "uknown colour name strata" > ## but there are no strata rlang::last_trace() demonstrates that the error happens because some code receives a string 'strata' and

Re: [R] What is the HEX code for "transparent" color?

2024-06-20 Thread Ivan Krylov via R-help
В Mon, 17 Jun 2024 19:38:21 +0200 Yosu Yurramendi пишет: > output$distPlot <- renderPlot({ > numrows <- 3; numcols <- 3 > a <- c(1,0,1,1,1,1,1,0,1) > pattern <- matrix(a, numrows, numcols, byrow=TRUE) > palette <- c("#", "black") > par(bg="#") >

Re: [R] Bug with writeClipboard in {utils}

2024-06-20 Thread Ivan Krylov via R-help
В Thu, 20 Jun 2024 13:21:38 + Barthelemy Tanguy пишет: > Is there a way to test this patch or will there soon be a published > patched R version available for download? Not directly. If you're willing to follow the partially manual process yourself, the instructions at [1] describe how to

Re: [R] Integration of functions with a vector argument

2024-06-20 Thread Ivan Krylov via R-help
В Tue, 18 Jun 2024 23:12:03 + "Levine, Michael" пишет: > I have heard of several packages used for numerical integration in R - > cubature that you mentioned, mvQuad, and pracma. My impression is > that you think that Cubature is the best in your opinion. Is that so? Yes, but the

Re: [R] Bug with writeClipboard in {utils}

2024-06-20 Thread Rui Barradas
Hello, Inline. Às 14:15 de 20/06/2024, Barthelemy Tanguy escreveu: Hello, Thank you for your different tests. You have that you didn't find any errors with Rscript or with R but I have the impression that your test with R (second test) showed additional and unwanted characters (second line

Re: [R] plot(aov, which=1) with different labels?

2024-06-20 Thread Duncan Murdoch
On 2024-06-20 2:01 a.m., DynV Montrealer wrote: I need to do a non-English report including the red line from plot(aov, which=1), which I don't know how to reproduce. I'm thinking that if I replace the labels that it would be good (so no English remains). What I have so far is almost what I

[R] plot(aov, which=1) with different labels?

2024-06-20 Thread DynV Montrealer
I need to do a non-English report including the red line from plot(aov, which=1), which I don't know how to reproduce. I'm thinking that if I replace the labels that it would be good (so no English remains). What I have so far is almost what I need, the only thing that needs to change is what's

Re: [R] Bug with writeClipboard in {utils}

2024-06-19 Thread Rui Barradas
Às 11:12 de 18/06/2024, Barthelemy Tanguy via R-help escreveu: Hello, I'm encountering what seems to be a bug when using the `writeClipboard()` function in the R {utils} package. When I try to copy text to the clipboard, I notice that I get extra characters when I try to paste it (by hand

Re: [R] Bug with writeClipboard in {utils}

2024-06-19 Thread Ivan Krylov via R-help
В Tue, 18 Jun 2024 10:12:04 + Barthelemy Tanguy via R-help пишет: > #> [1] "plot(AirPassengers)" "⤀攀" > #> [1] "plot(AirPassengers)" "\u0a00" > #> [1] "plot(AirPassengers)" "\xed\xb0\x80ư" Thanks for showing an example! I was able to reproduce it both with R-4.3.1 on Windows 7 and with a

[R] Bug with writeClipboard in {utils}

2024-06-19 Thread Barthelemy Tanguy via R-help
Hello, I'm encountering what seems to be a bug when using the `writeClipboard()` function in the R {utils} package. When I try to copy text to the clipboard, I notice that I get extra characters when I try to paste it (by hand with CTRL+V or with the `readClipboard()` function from R packages

Re: [R] I have Problem using the Pipe Command

2024-06-19 Thread Richard O'Keefe
You can get an external 1TB hard drive for NZD 60 if you shop around. That's USD 37 or GBP 29. How much data do you have and how valuable? You don't need a whole 'nother laptop to backup! If you did, you could get a 2nd-hand laptop adequate for the purpose for NZD 150 (USD 92, GBP 72). Again, how

[R] PROBLEM RESOLED::code for year month day hr format

2024-06-19 Thread Jibrin Alhassan
The help I sought on code for year month day and hr format for solar wind hourly data has been resolved. Thank you all for your time, patience and wonderful contributions. Jibrin Alhassan. On Mon, Jun 17, 2024, 9:26 PM Jibrin Alhassan wrote: > Hello Rui, > Thanks for your kind and unrelenting

Re: [R] Integration of functions with a vector argument

2024-06-19 Thread Levine, Michael
Dear Ivan, Sorry for my slow response. Your advice works well; however, as you predicted, the time it takes to obtain any results is completely unacceptable (for example, a sequence of integrations we discussed is done once per iteration and even one iteration takes about 2 hours to complete).

Re: [R] I have Problem using the Pipe Command

2024-06-19 Thread Ogbos Okike
Dear Martin, I agree with you. I am anxious to upgrade. But I am afraid of losing some data on my only one system. I do not have enough backup. I am planning to buy a backup laptop before venturing to upgrade. But if there is any possibility of upgrading without losing my documents/data, I would

[R] I have Problem using the Pipe Command: PROBLEM SOLVED!

2024-06-19 Thread Ogbos Okike
Dear Eric, This is too great! I quickly changed |> to %>% and it worked like margic. Ben suggested that earlier but I thought I had to open the installed 'magrittr' with gedit in order to edit it. Following your pointers now, I simply changed the |> in my code to %>% to I have great success and

Re: [R] I have Problem using the Pipe Command

2024-06-19 Thread Martin Maechler
> Duncan Murdoch > on Tue, 18 Jun 2024 12:25:49 -0400 writes: > On 2024-06-18 12:17 p.m., Ben Bolker wrote: >> You probably have to update your R version. The native pipe |> wasn't >> introduced until R version 4.4. R.version.string (among others) will >> tell you

Re: [R] I have Problem using the Pipe Command

2024-06-19 Thread Eric Berger
So all is good. You are successfully using the R pipe %>% (before it became part of R). If you want to use the newer pipe that is part of R, i.e. |> instead of %>% you will have to install a more recent version of R. Your previous email with sessionInfo() showed that you are using R version 3.4.4

Re: [R] I have Problem using the Pipe Command

2024-06-19 Thread Eric Berger
In your R session do library(magrittr) 1:10 %>% sum() This should output 55. If that does not work send the results, include the output of sessionInfo() showing that you have loaded magrittr. On Wed, Jun 19, 2024 at 9:43 AM Ogbos Okike wrote: > Dear Eric, > Good morning from Nigeria. > >

<    1   2   3   4   5   6   7   8   9   10   >