Re: [R] Text showing when R is launched

2023-10-11 Thread Rui Barradas

Às 19:21 de 11/10/2023, George Loftus escreveu:

Hi,

Thankyou for your response


[https://9c11xq.db.files.1drv.com/y4m7xqt5yVu7b5IG1jFuopunwB7Oa9Eij0WeZ7p1lSSmBECcSIB3XjcKjXIUhdMrJwaJdjZnBRhMeAxY0_Kko06Nq1fm5IhqaHlT6aFeI3R7gicXCteRPkzqNwmCdVxZu5DhNq66IrpwDyQ1lr8E5OFdm_xL86pMgNSLAx5HRRKLPOmFdUFWdv1ID-D1PC6LvNvAB-rT87JiQonSHRJIHouLg?width=200=150=center]
[https://res-h3.public.cdn.office.net/assets/mail/file-icon/png/cloud_blue_16x16.png]Screenshot
 2023-10-11 at 19.19.48.png
?

However this is all that exists in Users/Admin

There were a couple of R files in there which I have since deleted but I am 
still getting the same issue

Thankyou,
George


From: Rui Barradas 
Sent: 10 October 2023 12:06
To: George Loftus ; r-help@r-project.org 

Subject: Re: [R] Text showing when R is launched

Às 23:56 de 09/10/2023, George Loftus escreveu:

Good Evening,

I was wondering if you were able to help, I am running R on MacOS, it is the 
2020 model mac so have install the Intel arm of R which I believe is correct

However when I launch R or resume the R window after going on a different 
programme the following text is running

I have also copied and pasted for ease

1   HIToolbox   0x7ff82142e0c2 
_ZN15MenuBarInstance22RemoveAutoShowObserverEv + 30
2   HIToolbox   0x7ff82146a638 
_ZL17BroadcastInternaljPvh + 167
3   SkyLight0x7ff81c70f23d 
_ZN12_GLOBAL__N_123notify_datagram_handlerEj15CGSDatagramTypePvmS1_ + 1030
4   SkyLight0x7ff81ca2205a 
_ZN21CGSDatagramReadStream26dispatchMainQueueDatagramsEv + 202
5   SkyLight0x7ff81ca21f81 
___ZN21CGSDatagramReadStream15mainQueueWakeupEv_block_invoke + 18
6   libdispatch.dylib   0x7ff8178867fb 
_dispatch_call_block_and_release + 12
7   libdispatch.dylib   0x7ff817887a44 
_dispatch_client_callout + 8
8   libdispatch.dylib   0x7ff8178947b9 
_dispatch_main_queue_drain + 952
9   libdispatch.dylib   0x7ff8178943f3 
_dispatch_main_queue_callback_4CF + 31
10  CoreFoundation  0x7ff817b215f0 
__CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
11  CoreFoundation  0x7ff817ae1b70 __CFRunLoopRun + 2454
12  CoreFoundation  0x7ff817ae0b60 CFRunLoopRunSpecific 
+ 560
13  HIToolbox   0x7ff82142e766 
RunCurrentEventLoopInMode + 292
14  HIToolbox   0x7ff82142e576 
ReceiveNextEventCommon + 679
15  HIToolbox   0x7ff82142e2b3 
_BlockUntilNextEventMatchingListInModeWithFilter + 70
16  AppKit  0x7ff81ac31293 _DPSNextEvent + 909
17  AppKit  0x7ff81ac30114 
-[NSApplication(NSEvent) _nextEventMatchingEventMask:untilDate:inMode:dequeue:] 
+ 1219
18  R   0x000103d60c76 -[RController 
doProcessEvents:] + 166
19  R   0x000103d5b295 -[RController 
handleReadConsole:] + 149
20  R   0x000103d6466f Re_ReadConsole + 175
21  libR.dylib  0x000104442154 R_ReplDLLdo1 + 148
22  R   0x000103d71c47 run_REngineRmainloop 
+ 263
23  R   0x000103d66d5f -[REngine runREPL] + 
143
24  R   0x000103d56718 main + 792
25  dyld0x7ff8176d4310 start + 2432
1   HIToolbox   0x7ff8214a1726 
_ZN15MenuBarInstance22EnsureAutoShowObserverEv + 102
2   HIToolbox   0x7ff82146a638 
_ZL17BroadcastInternaljPvh + 167
3   SkyLight0x7ff81c70f23d 
_ZN12_GLOBAL__N_123notify_datagram_handlerEj15CGSDatagramTypePvmS1_ + 1030
4   SkyLight0x7ff81ca2205a 
_ZN21CGSDatagramReadStream26dispatchMainQueueDatagramsEv + 202
5   SkyLight0x7ff81ca21f81 
___ZN21CGSDatagramReadStream15mainQueueWakeupEv_block_invoke + 18
6   libdispatch.dylib   0x7ff8178867fb 
_dispatch_call_block_and_release + 12
7   libdispatch.dylib   0x7ff817887a44 
_dispatch_client_callout + 8
8   libdispatch.dylib   0x7ff8178947b9 
_dispatch_main_queue_drain + 952
9   libdispatch.dylib   0x7ff8178943f3 
_dispatch_main_queue_callback_4CF + 31
10  CoreFoundation  0x7ff817b215f0 
__CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE__ + 9
11  CoreFoundation  0x7ff817ae1b70 __CFRunLoopRun + 2454
12  CoreFoundation  0x7ff817ae0b60 CFRunLoopRunSpecific 
+ 560
13  HIToolbox   

Re: [R] Problem with compatible library versions

2023-10-11 Thread Uwe Ligges

No.

In 10 years you may have different hardware and a different OS, so that 
the old R and old packages won't run on the new hardware or produce 
different results. This may even happen for some sort of containers and 
virtualizations.


To be really safe, you ideally need to keep the whole system as is (but 
then there are security updates etc).


Best,
Uwe Ligges




On 11.10.2023 14:54, Ebert,Timothy Aaron wrote:

Is that a method where a program that I write today would still run without 
changes in 10 years?
Tim

-Original Message-
From: R-help  On Behalf Of Richard O'Keefe
Sent: Wednesday, October 11, 2023 8:08 AM
To: Uwe Ligges 
Cc: r-help@r-project.org
Subject: Re: [R] Problem with compatible library versions

[External Email]

There is a fairly straightforward way to load older versions of packages, and 
that is to use the 'groundhog' package.
As the first sentence of https://groundhogr.com/ puts it:
Make your R scripts reproducible by replacing library(pkg)
with groundhog.library(pkg, date).

pkg can be a vector of package names or a single name.

On Wed, 11 Oct 2023 at 20:58, Uwe Ligges 
wrote:



On 10.10.2023 17:34, Sabine Braun wrote:

On the github website I have reported several bugs with new versions
of the tidyverse group (probably dplyr) which prevent me from using
R normally. I wanted to go back to older versions but this seems not
bo be easy. I downloaded R 4.1.2. and Rtools 40 but the library
versions


So this is on Windows.

Actually, if you install R-4.1.2 and use a clean library and install
binaries, then you should get binary installation from CRAN that fit
to the R-4.1.x series.

If you want to install older package versions, then you have to
install these one by one from sources, unfortunately.

Best,
Uwe Ligges




installed are still the newest ones. I was able to install dplyr 1.0.7.
manually but there are error messages on incompatibility when
loading this version. Is there a possibility to load older library
versions which alre compatible ?

Thank you very much!

Best regards

Sabine Braun




__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat/
.ethz.ch%2Fmailman%2Flistinfo%2Fr-help=05%7C01%7Ctebert%40ufl.edu
%7C86c81ebb0b184971b4eb08dbca52d5b3%7C0d4da0f84a314d76ace60a62331e1b84
%7C0%7C0%7C638326229351781447%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAw
MDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C
ta=kEpdr7GlTQwcaKCMfI0NJfWXrgCshp5DVALyiu%2FHG4I%3D=0
PLEASE do read the posting guide

http://www.r-project.org/posting-guide.html

and provide commented, minimal, self-contained, reproducible code.


 [[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.r-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R-es] Hacer un Split plot

2023-10-11 Thread Javier Marcuzzi
Estimado Juan Bautista

¿A que se refiere con dos editores diferentes? ¿Editor de texto, de código R, o 
en código R escribir dos funciones diferentes?

Observando usted escribe model y luego model2.aov, antes de continuar, ¿que 
posibilidad hay que el algoritmo de cálculo sea diferente? Porque si 
internamente hay referencia a dos algoritmos diferentes, librerías o paquetes, 
el resultado puede variar. 

En lo personal me pasó recrear el ejemplo de un libro, y los resultados no me 
daban, consulté al autor, y la respuesta fue que en el libro había unos 5 
datos, este tenía impreso todos los pasos con las matrices, numerito por 
numerito, en cambio el algoritmo estaba preparado para una gran cantidad de 
números, en otras palabras, al aumentar los cálculos los valores se aproximaban 
unos a otros, pero en una gran cantidad de cálculos la memoria o poder de 
procesamiento del procesador informático quedaría bloqueado, de ahí la 
diferencia entre el algoritmo del libro y el optimizado. ¿Que posibilidades hay 
que usted tenga alguna semejanza a esto?

Javier Rubén Marcuzzi

> El 11 oct 2023, a las 08:36, Manuel Mendoza  
> escribió:
> 
> Por si te fuera de utilidad, esta es la respuesta de chat GPT 4.0
> 
> Parece que tienes un par de problemas y preguntas aquí. Intentaré ayudarte 
> paso a paso.
> 
> ### Problema 1: Error en la Separación de Medias HSD por Tratamiento
> 
> Sobre el código que estás utilizando para la separación de medias, el error 
> específico que estás recibiendo `argument "trt" is missing, with no default` 
> posiblemente se relaciona con la función `HSD.test`. Vamos a revisar el 
> bloque de código que has compartido:
> 
> ```r
> by(, $TRAT, function(x) {
>   anova_result <- aov(RTOSE ~ CORTE, data = x)
>   HSD_result <- HSD.test(anova_result)
>   Tratamiento <- unique(x$TRAT)
>   return(list(Tratamiento = TRAT, HSD_result = HSD_result))
> })
> ```
> 
> Si estás utilizando la función `HSD.test` del paquete `agricolae`, asegúrate 
> de proporcionar todos los argumentos necesarios para esta función, que serían 
> el objeto de anova, el nombre del tratamiento y el nivel de significancia. 
> Por ejemplo:
> 
> ```r
> HSD_result <- HSD.test(anova_result, "CORTE", group=TRUE, console=TRUE)
> ```
> 
> Además, asegúrate de que la variable `TRAT` está disponible en el scope de tu 
> función; en tu código, pareces utilizar `Tratamiento` para almacenar el valor 
> único de `x$TRAT`, pero intentas devolver una variable llamada `TRAT` que no 
> está definida. Tal vez quisiste hacer esto:
> 
> ```r
> return(list(Tratamiento = Tratamiento, HSD_result = HSD_result))
> ```
> 
> ### Problema 2: Comparación de Dos Métodos para ANOVA de Split Plot
> 
> Tienes dos bloques de código para ANOVA:
> 
> 1. `model <- with(CEPAS, sp.plot(REP, CEPA, VARIEDAD, trAUDPC))`
> 2. `model2.aov <- aov(trAUDPC ~ CEPA*VARIEDAD + REP + Error(REP/CEPA))`
> 
> Dado que no tengo toda la información sobre las funciones y los datos, es un 
> poco difícil decir con certeza si ambos realizan un ANOVA de split plot de la 
> misma manera. 
> 
> - La función `sp.plot` no es estándar en R y puede ser parte de un paquete 
> específico o un script personalizado que no estoy familiarizado con. Si 
> proporcionas más información sobre esta función, podría ayudarte mejor.
> - La segunda línea de código parece utilizar la función `aov` de una manera 
> que podría ser coherente con un diseño de split plot, especificando un 
> término de error estratificado `Error(REP/CEPA)`, pero sin tener acceso a los 
> datos y más contexto, es un poco difícil de verificar.
> 
> Si los resultados que obtienes son diferentes, aquí hay algunas cosas que 
> querrás revisar:
> 
> - **Datos**: Asegúrate de que los datos que se están utilizando son 
> exactamente los mismos en ambos análisis.
> - **Modelo**: Verifica que los modelos que estás ajustando sean equivalentes 
> y apropiados para tu diseño experimental.
> - **Hipótesis**: Confirma que las hipótesis que se están probando sean las 
> mismas.
> 
> Recuerda que proporcionar un ejemplo reproducible (datos de ejemplo y código) 
> es la mejor manera de obtener ayuda específica y precisa. Si puedes compartir 
> más detalles, estaré encantado de ayudarte más!
> 
> El mié, 11 oct 2023 a las 10:32, Relloso Barrio, Juan Bautista 
> () escribió:
>> Buenos días.
>> 
>> Perdón por insistir. Quiero hacer un ANOVA para unos datos que tienen un 
>> diseño Split plot.
>> 
>> Y estoy utilizando dos editores diferentes, que, si todo fuera correcto y ya 
>> que toman los mismos datos, me debería dar el mismo resultado, … pero no es 
>> así.
>> 
>> Querría saber si básicamente los dos hacen un análisis de varianza SPLIT 
>> PLOT ?. Y el mismo análisis?
>> 
>> Los comandos que doy son estos:
>> 
>> CEPAS, es el nombre del archivo de datos.
>> 
>> model<-with(CEPAS, sp.plot(REP, CEPA, VARIEDAD, trAUDPC))
>> 
>> Y el otro es este
>> 
>> model2.aov<- aov(trAUDPC~CEPA*VARIEDAD+REP+Error(REP/CEPA))
>> 
>>  
>> 
>>  Un 

Re: [R] Problem with compatible library versions

2023-10-11 Thread Ebert,Timothy Aaron
Is that a method where a program that I write today would still run without 
changes in 10 years?
Tim

-Original Message-
From: R-help  On Behalf Of Richard O'Keefe
Sent: Wednesday, October 11, 2023 8:08 AM
To: Uwe Ligges 
Cc: r-help@r-project.org
Subject: Re: [R] Problem with compatible library versions

[External Email]

There is a fairly straightforward way to load older versions of packages, and 
that is to use the 'groundhog' package.
As the first sentence of https://groundhogr.com/ puts it:
   Make your R scripts reproducible by replacing library(pkg)
   with groundhog.library(pkg, date).

pkg can be a vector of package names or a single name.

On Wed, 11 Oct 2023 at 20:58, Uwe Ligges 
wrote:
>
>
> On 10.10.2023 17:34, Sabine Braun wrote:
> > On the github website I have reported several bugs with new versions
> > of the tidyverse group (probably dplyr) which prevent me from using
> > R normally. I wanted to go back to older versions but this seems not
> > bo be easy. I downloaded R 4.1.2. and Rtools 40 but the library
> > versions
>
> So this is on Windows.
>
> Actually, if you install R-4.1.2 and use a clean library and install
> binaries, then you should get binary installation from CRAN that fit
> to the R-4.1.x series.
>
> If you want to install older package versions, then you have to
> install these one by one from sources, unfortunately.
>
> Best,
> Uwe Ligges
>
>
>
> > installed are still the newest ones. I was able to install dplyr 1.0.7.
> > manually but there are error messages on incompatibility when
> > loading this version. Is there a possibility to load older library
> > versions which alre compatible ?
> >
> > Thank you very much!
> >
> > Best regards
> >
> > Sabine Braun
> >
> >
>
> __
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat/
> .ethz.ch%2Fmailman%2Flistinfo%2Fr-help=05%7C01%7Ctebert%40ufl.edu
> %7C86c81ebb0b184971b4eb08dbca52d5b3%7C0d4da0f84a314d76ace60a62331e1b84
> %7C0%7C0%7C638326229351781447%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAw
> MDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C
> ta=kEpdr7GlTQwcaKCMfI0NJfWXrgCshp5DVALyiu%2FHG4I%3D=0
> PLEASE do read the posting guide
http://www.r-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.r-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R] Problem with compatible library versions

2023-10-11 Thread Richard O'Keefe
There is a fairly straightforward way to load older versions
of packages, and that is to use the 'groundhog' package.
As the first sentence of https://groundhogr.com/ puts it:
   Make your R scripts reproducible by replacing library(pkg)
   with groundhog.library(pkg, date).

pkg can be a vector of package names or a single name.

On Wed, 11 Oct 2023 at 20:58, Uwe Ligges 
wrote:
>
>
> On 10.10.2023 17:34, Sabine Braun wrote:
> > On the github website I have reported several bugs with new versions of
> > the tidyverse group (probably dplyr) which prevent me from using R
> > normally. I wanted to go back to older versions but this seems not bo be
> > easy. I downloaded R 4.1.2. and Rtools 40 but the library versions
>
> So this is on Windows.
>
> Actually, if you install R-4.1.2 and use a clean library and install
> binaries, then you should get binary installation from CRAN that fit to
> the R-4.1.x series.
>
> If you want to install older package versions, then you have to install
> these one by one from sources, unfortunately.
>
> Best,
> Uwe Ligges
>
>
>
> > installed are still the newest ones. I was able to install dplyr 1.0.7.
> > manually but there are error messages on incompatibility when loading
> > this version. Is there a possibility to load older library versions
> > which alre compatible ?
> >
> > Thank you very much!
> >
> > Best regards
> >
> > Sabine Braun
> >
> >
>
> __
> R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

[[alternative HTML version deleted]]

__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.


Re: [R-es] Hacer un Split plot

2023-10-11 Thread Manuel Mendoza
Por si te fuera de utilidad, esta es la respuesta de chat GPT 4.0

Parece que tienes un par de problemas y preguntas aquí. Intentaré ayudarte
paso a paso.

### Problema 1: Error en la Separación de Medias HSD por Tratamiento

Sobre el código que estás utilizando para la separación de medias, el error
específico que estás recibiendo `argument "trt" is missing, with no
default` posiblemente se relaciona con la función `HSD.test`. Vamos a
revisar el bloque de código que has compartido:

```r
by(, $TRAT, function(x) {
  anova_result <- aov(RTOSE ~ CORTE, data = x)
  HSD_result <- HSD.test(anova_result)
  Tratamiento <- unique(x$TRAT)
  return(list(Tratamiento = TRAT, HSD_result = HSD_result))
})
```

Si estás utilizando la función `HSD.test` del paquete `agricolae`,
asegúrate de proporcionar todos los argumentos necesarios para esta
función, que serían el objeto de anova, el nombre del tratamiento y el
nivel de significancia. Por ejemplo:

```r
HSD_result <- HSD.test(anova_result, "CORTE", group=TRUE, console=TRUE)
```

Además, asegúrate de que la variable `TRAT` está disponible en el scope de
tu función; en tu código, pareces utilizar `Tratamiento` para almacenar el
valor único de `x$TRAT`, pero intentas devolver una variable llamada `TRAT`
que no está definida. Tal vez quisiste hacer esto:

```r
return(list(Tratamiento = Tratamiento, HSD_result = HSD_result))
```

### Problema 2: Comparación de Dos Métodos para ANOVA de Split Plot

Tienes dos bloques de código para ANOVA:

1. `model <- with(CEPAS, sp.plot(REP, CEPA, VARIEDAD, trAUDPC))`
2. `model2.aov <- aov(trAUDPC ~ CEPA*VARIEDAD + REP + Error(REP/CEPA))`

Dado que no tengo toda la información sobre las funciones y los datos, es
un poco difícil decir con certeza si ambos realizan un ANOVA de split plot
de la misma manera.

- La función `sp.plot` no es estándar en R y puede ser parte de un paquete
específico o un script personalizado que no estoy familiarizado con. Si
proporcionas más información sobre esta función, podría ayudarte mejor.
- La segunda línea de código parece utilizar la función `aov` de una manera
que podría ser coherente con un diseño de split plot, especificando un
término de error estratificado `Error(REP/CEPA)`, pero sin tener acceso a
los datos y más contexto, es un poco difícil de verificar.

Si los resultados que obtienes son diferentes, aquí hay algunas cosas que
querrás revisar:

- **Datos**: Asegúrate de que los datos que se están utilizando son
exactamente los mismos en ambos análisis.
- **Modelo**: Verifica que los modelos que estás ajustando sean
equivalentes y apropiados para tu diseño experimental.
- **Hipótesis**: Confirma que las hipótesis que se están probando sean las
mismas.

Recuerda que proporcionar un ejemplo reproducible (datos de ejemplo y
código) es la mejor manera de obtener ayuda específica y precisa. Si puedes
compartir más detalles, estaré encantado de ayudarte más!

El mié, 11 oct 2023 a las 10:32, Relloso Barrio, Juan Bautista
() escribió:

> Buenos días.
>
> Perdón por insistir. Quiero hacer un ANOVA para unos datos que tienen un
> diseño Split plot.
>
> Y estoy utilizando dos editores diferentes, que, si todo fuera correcto y
> ya que toman los mismos datos, me debería dar el mismo resultado, … pero no
> es así.
>
> Querría saber si básicamente los dos hacen un análisis de varianza SPLIT
> PLOT ?. Y el mismo análisis?
>
> Los comandos que doy son estos:
>
> CEPAS, es el nombre del archivo de datos.
>
> model<-with(CEPAS, sp.plot(REP, CEPA, VARIEDAD, trAUDPC))
>
> Y el otro es este
>
> model2.aov<- aov(trAUDPC~CEPA*VARIEDAD+REP+Error(REP/CEPA))
>
>
>
>  Un saludo.
>
> *Juan Bautista Relloso Barrio*
>
> Coordinador de Equipos e Infraestructuras | Técnico de Cultivos del
> Departamento de Producción Vegetal
>
> Talde eta Azpiegitura Koordinatzailea | Laborantza teknikaria Landare
> Ekoizpen Departamentua
>
> jbauti...@neiker.eus | M. 688 62 98 14
>
> *www.neiker.eus* 
> 
>  
> 
>
> *[image: ej_ekonomia_garapen_lateral]*  [image:
> https://www.emakunde.euskadi.eus/contenidos/informacion/violencia_puntolila/eu_def/adjuntos/punto.lila.jpg]
>
>
>
> PRIBATUTASUN POLITIKA  | 
> POLÍTICA
> DE PRIVACIDAD  | LEGAL NOTICE
> 
>
>
>
>
>
>
>
> *De:* R-help-es  *En nombre de *Relloso
> Barrio, Juan Bautista
> *Enviado el:* viernes, 22 de septiembre de 2023 16:18
> *Para:* r-help-es@r-project.org
> *Asunto:* [R-es] no encuentro el error
>
>
>
> Buenas tardes.
>
> Intento hacer la separación de medias “por tratamientos”
>
> Pero me da un error que no consigo corregir. No sé que hago mal. Os paso
> los comandos y el error
>
>
>
> # Separación de medias HSD por Tratamiento No funciona
>
> by(, 

Re: [R-es] Hacer un Split plot

2023-10-11 Thread Relloso Barrio, Juan Bautista
Buenos días.
Perdón por insistir. Quiero hacer un ANOVA para unos datos que tienen un diseño 
Split plot.
Y estoy utilizando dos editores diferentes, que, si todo fuera correcto y ya 
que toman los mismos datos, me debería dar el mismo resultado, … pero no es así.
Querría saber si básicamente los dos hacen un análisis de varianza SPLIT PLOT 
?. Y el mismo análisis?
Los comandos que doy son estos:
CEPAS, es el nombre del archivo de datos.
model<-with(CEPAS, sp.plot(REP, CEPA, VARIEDAD, trAUDPC))
Y el otro es este
model2.aov<- aov(trAUDPC~CEPA*VARIEDAD+REP+Error(REP/CEPA))

 Un saludo.
Juan Bautista Relloso Barrio
Coordinador de Equipos e Infraestructuras | Técnico de Cultivos del 
Departamento de Producción Vegetal
Talde eta Azpiegitura Koordinatzailea | Laborantza teknikaria Landare Ekoizpen 
Departamentua
jbauti...@neiker.eus  | M. 688 62 98 14
www.neiker.eus
[cid:image001.png@01D9FC2D.E9B85580]  
 [cid:image002.png@01D9FC2D.E9B85580]  
[cid:image003.png@01D9FC2D.E9B85580]   
[cid:image004.png@01D9FC2D.E9B85580] 
[cid:image005.png@01D9FC2D.E9B85580][ej_ekonomia_garapen_lateral]   

[https://www.emakunde.euskadi.eus/contenidos/informacion/violencia_puntolila/eu_def/adjuntos/punto.lila.jpg]

PRIBATUTASUN POLITIKA | POLÍTICA 
DE PRIVACIDAD | LEGAL 
NOTICE



De: R-help-es 
mailto:r-help-es-boun...@r-project.org>> En 
nombre de Relloso Barrio, Juan Bautista
Enviado el: viernes, 22 de septiembre de 2023 16:18
Para: r-help-es@r-project.org
Asunto: [R-es] no encuentro el error

Buenas tardes.
Intento hacer la separación de medias “por tratamientos”
Pero me da un error que no consigo corregir. No sé que hago mal. Os paso los 
comandos y el error

# Separación de medias HSD por Tratamiento No funciona
by(, $TRAT, function(x) {
  anova_result <- aov(RTOSE ~ CORTE, data = x)
  HSD_result <- HSD.test(anova_result)
  Tratamiento <- unique(x$TRAT)
  return(list(Tratamiento = TRAT, HSD_result = HSD_result))
})
Y el error es este:
Error in pmatch(trt, names(A)) :
argument "trt" is missing, with no default

 Un saludo.
Juan Bautista Relloso Barrio
Coordinador de Equipos e Infraestructuras | Técnico de Cultivos del 
Departamento de Producción Vegetal
Talde eta Azpiegitura Koordinatzailea | Laborantza teknikaria Landare Ekoizpen 
Departamentua
jbauti...@neiker.eus  | M. 688 62 98 14
www.neiker.eus
[cid:image001.png@01D9FC2D.E9B85580]  
 [cid:image002.png@01D9FC2D.E9B85580]  
[cid:image003.png@01D9FC2D.E9B85580]   
[cid:image004.png@01D9FC2D.E9B85580] 
[cid:image005.png@01D9FC2D.E9B85580][ej_ekonomia_garapen_lateral]   

[https://www.emakunde.euskadi.eus/contenidos/informacion/violencia_puntolila/eu_def/adjuntos/punto.lila.jpg]

PRIBATUTASUN POLITIKA | POLÍTICA 
DE PRIVACIDAD | LEGAL 
NOTICE



De: Carlos Ortega mailto:c...@qualityexcellence.es>>
Enviado el: lunes, 18 de septiembre de 2023 23:04
Para: Relloso Barrio, Juan Bautista 
mailto:jbauti...@neiker.eus>>
CC: r-help-es@r-project.org
Asunto: Re: [R-es] Boxplot ordenados...

Hola Juan,

Sí, te recomiendo que uses la librería "ggeasy" que simplifica mucho estas 
modificaciones, mejor que trabajar directamente con "ggplot".
Sería así:

#-
library(ggeasy)

ggplot(data = AÑOS, aes(x = VARIEDAD, y = rAUDPCor, colour = ANO,
 group = ANO)) +
  stat_summary(fun = mean, geom = "point") +
  stat_summary(fun = mean, geom = "line") +
  labs(y  =  'mean rAUDPCor') +
  labs(x  =  'Variety') +
  theme_bw() +
easy_rotate_x_labels( angle = 90)

#


Gracias,
Carlos Ortega
www.qualityexcellence.es

El lun, 18 sept 2023 a las 22:47, Relloso Barrio, Juan Bautista 
(mailto:jbauti...@neiker.eus>>) escribió:
Buenas noches.
Quisiera saber si alguien me puede decir como en estos comandos para un gráfico 
…


ggplot(data = AÑOS, aes(x = VARIEDAD, y = rAUDPCor, colour = ANO,
 group = ANO)) +
  stat_summary(fun = mean, geom = "point") +
  stat_summary(fun = mean, geom = "line") +
  labs(y  =  'mean rAUDPCor') +
  labs(x  =  'Variety') +
  theme_bw()

Qué debo de añadir para que la orientación de las los nombres de las variedades 
del eje “X” me aparezcan en vertical en vez de en horizontal.
Muchas gracias.

Re: [R] Problem with compatible library versions

2023-10-11 Thread Uwe Ligges



On 10.10.2023 17:34, Sabine Braun wrote:

On the github website I have reported several bugs with new versions of
the tidyverse group (probably dplyr) which prevent me from using R
normally. I wanted to go back to older versions but this seems not bo be
easy. I downloaded R 4.1.2. and Rtools 40 but the library versions


So this is on Windows.

Actually, if you install R-4.1.2 and use a clean library and install 
binaries, then you should get binary installation from CRAN that fit to 
the R-4.1.x series.


If you want to install older package versions, then you have to install 
these one by one from sources, unfortunately.


Best,
Uwe Ligges




installed are still the newest ones. I was able to install dplyr 1.0.7.
manually but there are error messages on incompatibility when loading
this version. Is there a possibility to load older library versions
which alre compatible ?

Thank you very much!

Best regards

Sabine Braun




__
R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.