Re: [R-es] Error RStudio

2023-06-19 Thread Javier Gómez Gonzalez
Lo que he hecho ha sido instalar la versión anterior de RStudio y se
acabaron los problemas.


El lun, 19 jun 2023 a las 8:46, Proyecto R-UCA () escribió:

> Buenas,
>
> Yo diría que se trata de un fichero de trabajo que está intentando cargar
> al inicio y que falla.
>
> Busca un fichero .rs.WorkingDataEnv y bórralo. Si aún así sigue dándote el
> fallo busca ficheros .RData y bórralos.
>
> Nota: Son nombres de fichero no extensiones y, por tanto, no llevan nada
> delante del punto.
>
> Un saludo.
> --
> --
> http://knuth.uca.es/R
> --
> Proyecto R-UCA
> --
> Nombre: Manuel Muñoz Márquez
> Departamento: Departamento de Estadística e Investigación Operativa
> Institución: Escuela Superior de Ingeniería
> Organización: Universidad de Cádiz
> --
>
> El dom, 18-06-2023 a las 03:04 +0200, Javier Gómez Gonzalez escribió:
> > Hola a todos
> >
> > Desde que instalé la última versión de RStudio la 2023.06.0-421 para
> > Windows me aparece el siguiente error :
> >
> > Error in exists(cacheKey, where = .rs.WorkingDataEnv, inherits = FALSE) :
> >   invalid first argument
> > Error in assign(cacheKey, frame, .rs.CachedDataEnv) :
> >   attempt to use zero-length variable name
> >
> > La versión de R que tengo es la 4.3 y el sistema operativo es Windows 10.
> >
> > Un saludo
> >
> > Javier Gómez González
> >
> > [[alternative HTML version deleted]]
> >
> > ___
> > R-help-es mailing list
> > R-help-es@r-project.org
> >
> https://urldefense.com/v3/__https://stat.ethz.ch/mailman/listinfo/r-help-es__;!!D9dNQwwGXtA!ReVoQrWyTd6D01skNmHh-ezD_3CKh1HvZ8oxfTCOskCfF69nCv-CYmf1UYoIqnU7SvXz6BEV-IcImeM$
> >
>
> ___
> R-help-es mailing list
> R-help-es@r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-help-es
>

[[alternative HTML version deleted]]

___
R-help-es mailing list
R-help-es@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-help-es


[R] Testing.

2023-06-19 Thread Rolf Turner


I have just changed my email address with the R-help mailing lists, and
I want to check that things are working.  Sorry for the noise.

cheers,

Rolf Turner

-- 
Honorary Research Fellow
Department of Statistics
University of Auckland
Stats. Dep't. (secretaries) phone:
 +64-9-373-7599 ext. 89622
Home phone: +64-9-480-4619

__
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] Nuevo conjunto de datos

2023-06-19 Thread Ps . Félix Pérez V .

Actualizo info.

El 06-06-23 a las 16:10, Ps. Félix Pérez V. escribió:

Muchas gracias.

Probaré lo que me cuentas.

Saludos.

El 06-06-23 a las 16:07, Proyecto R-UCA escribió:

Buenas:

He hecho la prueba y en la versión de R-Commander en cran ocurre como 
dices. No veo el motivo.


Pero he instalado la versión de desarrollo de R-Commander con la 
instrucción
install.packages(c('Rcmdr', 'RcmdrMisc'), 
repos="http://R-forge.R-project.org;)


y la opción aparece.


En Manjaro no alcanza a instalar da un sinnúmero de errores pero en 
Debian se instala sin problemas y aparece la opción.


En instalación normal en Debian Bulleyes(11) con R 4.0.4 (2021-02-15) y  
Rcmdr 2.7-1 aparece la opción de Nuevo ... datos pero en Debian 
bookworm(12) con R 4.3.0 (2023-04-21) y Rcmdr 2.8-0  no aparece la opción




Lo habitual es que a final de cada verano se libere una nueva versión 
de R-Commander, así que a partir de entonces la versión en cran

debería funcionar.


Así que tocará esperar.

Muchas gracias de nuevo por vuestra atención y ayuda.



Un saludo.

El mar, 06-06-2023 a las 13:00 -0400, Ps. Félix Pérez V. escribió:

El 06-06-23 a las 06:24, Proyecto R-UCA escribió:

Buenas, Félix:

Hola buenas  Gracias por contestar.

No veo motivo para ello.

He instalado manjaro en una máquina virtual, pero:
* ¿Qué escritorio has instalado? Yo he instalado el que viene con 
la imagen reducida.

Trabajo con Xfce 4.18

Manjaro 6.3.5-2  en otra máquina con 6.3.5-1 pasa lo mismo y con 
6.2.x idem



* ¿Cómo has instalado R y Rcmdr? No encuentro la forma de hacerlo.

R lo instalo a través de pacman:  pacman -S r

Luego en un terminal ejecuto R,  dentro de R

install.packages("Rcmdr", dependencies=T)

y ejecuto con library(Rcmdr)

Hasta ahí todo bien.  Adjunto una captura (si es que llega)


Si me ayudas un poco lo pruebo.

Gracias!

Un saludo.

El sáb, 03-06-2023 a las 16:11 -0400, Ps. Félix Pérez V. escribió:

Hola, buenas estimados.

Acabo de instalar, después de algún tiempo,  R versión 4.3  y 
Rcommander
en Manjaro Linux, 6.3.5  Y me he dado cuenta que no existe la 
opción de

crear un Nuevo conjunto de datos.

¿eso es así ahora?

Muchas gracias por su tiempo.

Saludos.


___
R-help-es mailing list
R-help-es@r-project.org
https://urldefense.com/v3/__https://stat.ethz.ch/mailman/listinfo/r-help-es__;!!D9dNQwwGXtA!Qw2TX9gd3kTkPvlOieXK1lqO8GE8lKT2Wy7wzd1vv96T9veodGMDXYvzQzGOnhyTowqxekioJb2ZKNLNgYQryQ$ 


___
R-help-es mailing list
R-help-es@r-project.org
https://urldefense.com/v3/__https://stat.ethz.ch/mailman/listinfo/r-help-es__;!!D9dNQwwGXtA!Qw2TX9gd3kTkPvlOieXK1lqO8GE8lKT2Wy7wzd1vv96T9veodGMDXYvzQzGOnhyTowqxekioJb2ZKNLNgYQryQ$ 


___
R-help-es mailing list
R-help-es@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-help-es



--
Ps. Félix Pérez Villoria
Centro Kumon & Ayudantía Pedagógica.
https://www.ayudantiapedagogica.cl
General Ordóñez 30 oficina 11B-12B, Maipú, Santiago, Chile
Móvil: 56 9 9672 2896
Móvil: 56 9 6213 2492
Oficina: 56 2 2893 4345

___
R-help-es mailing list
R-help-es@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-help-es


Re: [R-es] Resumen de R-help-es, Vol 172, Envío 25

2023-06-19 Thread patricio fuenmayor
Que tal.
Entiendo que se debe a la nueva funcionalidad visual de preview de las
tablas ...
Una solución es deshabilitar esto
configura esto en el script o en las configuraciones de inicio de R

options(rstudio.help.showDataPreview=FALSE)


El dom, 18 jun 2023 a la(s) 05:00, 
escribió:

> Envíe los mensajes para la lista R-help-es a
> r-help-es@r-project.org
>
> Para subscribirse o anular su subscripción a través de la WEB
> https://stat.ethz.ch/mailman/listinfo/r-help-es
>
> O por correo electrónico, enviando un mensaje con el texto "help" en
> el asunto (subject) o en el cuerpo a:
> r-help-es-requ...@r-project.org
>
> Puede contactar con el responsable de la lista escribiendo a:
> r-help-es-ow...@r-project.org
>
> Si responde a algún contenido de este mensaje, por favor, edite la
> linea del asunto (subject) para que el texto sea mas especifico que:
> "Re: Contents of R-help-es digest...". Además, por favor, incluya en
> la respuesta sólo aquellas partes del mensaje a las que está
> respondiendo.
> Asuntos del día:
>
>1. Re: Supuestos de una ANOVA (Proyecto R-UCA)
>2. Error RStudio (Javier Gómez Gonzalez)
>
>
> -- Forwarded message --
> From: Proyecto R-UCA 
> To: r-help-es@r-project.org
> Cc:
> Bcc:
> Date: Sun, 18 Jun 2023 00:19:31 +0200
> Subject: Re: [R-es] Supuestos de una ANOVA
> Buenas,
>
> La instrucción plot admite un parámetro which, su valor por defecto es
> c(1, 2, 3, 5), que son los cuatro gráficos que salen por defecto.
> Usando which = 2 obtienes únicamente el qqplot.
>
> Las observaciones leverage son observaciones que tienen una gran
> influencia en los resultados del análisis, de forma que eliminarlas supone
> un cambio importante en las estimaciones. No hay que confundirlas con los
> outliers o atípicos, pues una observación puede ser atípica y no
> leverage, o ser leverage y no atípica.
>
> Un saludo
> --
> --
> http://knuth.uca.es/R
> --
> Proyecto R-UCA
> --
> Nombre: Manuel Muñoz Márquez
> Departamento: Departamento de Estadística e Investigación Operativa
> Institución: Escuela Superior de Ingeniería
> Organización: Universidad de Cádiz
> --
>
> El vie, 16-06-2023 a las 12:41 +0200, Yesica Pallavicini Fernandez
> escribió:
> > Buenos días y muchas gracias por adelantado
> > En cuando a probar gráficamente los supuestos de normalidad y
> > homocedasticidad de una ANOVA
> >
> > Lo estoy haciendo de forma gráfica de la siguiente manera:
> > Primero hago el nova con: aov()
> > luego hago la comprobación de los supuestos con: plot(modelo)
> > y me salen 4 gráficos;
> > 1 un scatter plot de los "residuals" vs " Fitted",
> > 2"standardizez residuals" vs " Fitted",
> > 3QQplot,
> > 4 Residuals vs leverage
> > Pero ¿Qué es el leverage?
> >  1)¿teneis algun script que reemplace a plot(modelo) y que solo contenga
> el
> > QQplot y los valores residuales frente a los fitted?
> >
> > 2) Shapiro.test () no funciona para observaciones mayores a 500 y mis
> datos
> > tienen más de 3 observaciones. ¿sabeis de algun otro test para este
> > caso?
> >
> > Muchísimas gracias y que acabéis fenomenal la semana
> >
> > [[alternative HTML version deleted]]
> >
> > ___
> > R-help-es mailing list
> > R-help-es@r-project.org
> >
> https://urldefense.com/v3/__https://stat.ethz.ch/mailman/listinfo/r-help-es__;!!D9dNQwwGXtA!S2L6bI_NoCf_ox_hHI7PINlx5SKlSS1KpBOsabN8o1Z248Rp3TRh5axwIvBUT1g9XZtvU7qL25KUdwc$
> >
>
>
>
>
>
> -- Forwarded message --
> From: "Javier Gómez Gonzalez" 
> To: r-help-es 
> Cc:
> Bcc:
> Date: Sun, 18 Jun 2023 03:04:42 +0200
> Subject: [R-es] Error RStudio
> Hola a todos
>
> Desde que instalé la última versión de RStudio la 2023.06.0-421 para
> Windows me aparece el siguiente error :
>
> Error in exists(cacheKey, where = .rs.WorkingDataEnv, inherits = FALSE) :
>   invalid first argument
> Error in assign(cacheKey, frame, .rs.CachedDataEnv) :
>   attempt to use zero-length variable name
>
> La versión de R que tengo es la 4.3 y el sistema operativo es Windows 10.
>
> Un saludo
>
> Javier Gómez González
>
> [[alternative HTML version deleted]]
>
>
> ___
> R-help-es mailing list
> R-help-es@r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-help-es
>

[[alternative HTML version deleted]]

___
R-help-es mailing list
R-help-es@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-help-es


Re: [R] Why install.packages(repos = X) does not override the 'repos' R option?

2023-06-19 Thread peter dalgaard
Yes. Specifically, RStudio overrides utils::install.packages() with their own 

> install.packages
function (...) 
.rs.callAs(name, hook, original, ...)


which is paved with good intentions, but does deflect blame towards R Core 
things go wrong.

-pd


> On 15 Jun 2023, at 19:42 , Duncan Murdoch  wrote:
> 
> (Sorry, forgot "Reply all" last time.)
> 
> That's an RStudio bug.  It doesn't happen if you use install.packages()
> from R.
> 
> Duncan Murdoch
> 
> On 14/06/2023 9:22 a.m., Dean Attali wrote:
>> There is a default R option for which repos to install from -
>> `getOption("repos")`.
>> When installing a package using install.packages(), you can provide a
>> `repos` parameter. The default value of that parameter is
>> `getOption("repos")`. I assumed that this parameter would override the R
>> option. In other words, I assumed that if the parameter is provided, then
>> the R option would not even be looked at. But after testing this, it seems
>> this is not the case.
>> For example, running the following two lines in an R session:
>> options(repos=c(CRAN="https://BADNAME.com;))
>> install.packages("vctrs", repos = "https://cloud.R-project.org;)
>> I would have expected the first line to be rendered meaningless, but in
>> fact after running the second line I see errors about the BADNAME
>> repository. This feels like a bug to me, but I'm sure there's a reason
>> behind this. Does anyone know why this is the case?
>>  [[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.

-- 
Peter Dalgaard, Professor,
Center for Statistics, Copenhagen Business School
Solbjerg Plads 3, 2000 Frederiksberg, Denmark
Phone: (+45)38153501
Office: A 4.23
Email: pd@cbs.dk  Priv: pda...@gmail.com

__
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] warnng to an error....

2023-06-19 Thread akshay kulkarni
Dear Martin,
 THanks  for your exhortation!

THanking you,
Yours sincerely,
AKSHAY M KULKARNI

From: Martin Maechler 
Sent: Monday, June 19, 2023 1:15 PM
To: akshay kulkarni 
Cc: Bert Gunter ; R help Mailing list 

Subject: Re: [R] warnng to an error

> akshay kulkarni
> on Sat, 17 Jun 2023 18:35:53 + writes:

> Dear Bert, Duncan's theory is workingprobably the same
> as yours...

"theory" .. well *truth*.



Note that I wrote a blog post I had hope would be read more
( --> and be cited more .. when helping peopling with such problems ;-))

Simple search ("google") for  "class think R blog"
or directly
  https://blog.r-project.org/2019/11/09/when-you-think-class.-think-again/

To say it again:   Using  something like

if(... class(x) == "" ..)

is almost always (*) bad code.
Everyone should learn about  inherits() and why sane R code
should use that instead.

---
*)  It may be ok, e.g., when `x` was very expliclitly
constructed in the same part of code a bit earlier

Martin


> THanking you, Yours sincerely, AKSHAY M KULKARNI
>  From: Bert Gunter
>  Sent: Saturday, June 17, 2023
> 11:28 PM To: akshay kulkarni  Cc: R
> help Mailing list  Subject: Re: [R]
> warnng to an error

> What is class(x) ??

> I think you need to (re?) learn about S3 classes, which
> can in general be vectors. See ?class (the S3 portion) or
> any tutorial on S3 classes in R. I have no idea what you
> are trying to do, but I *suspect* it may be accomplished
> through S3 inheritance rather than changing the class
> vector. That is just a guess, however.

> -- Bert

> On Sat, Jun 17, 2023 at 10:27 AM akshay kulkarni
> mailto:akshay...@hotmail.com>>
> wrote: Dear members, AN update: I have changed the if
> clause to:

> if(class(x)[1] == "xts") || class(x)[2] == "zoo") {code}

> but am bootless.

> PLease help...

> THanking you, Yours sincerely, AKSHAY M KULKARNI

>  From: R-help
> mailto:r-help-boun...@r-project.org>>
> on behalf of akshay kulkarni
> mailto:akshay...@hotmail.com>>
> Sent: Saturday, June 17, 2023 10:46 PM To: R help Mailing
> list mailto:r-help@r-project.org>>
> Subject: [R] warnng to an error

> Dear members,

>   I have the following code:

>> FUN(OHLCDataEP[[63]])
> Error in (class(x) == "xts") || (class(x) == "zoo") :
> 'length = 2' in coercion to 'logical(1)'
>> traceback()
> 2: ygix(x, "c") at #9 1: FUN(OHLCDataEP[[63]])
>> class(OHLCDataEP[[63]])
> [1] "xts" "zoo"

> The following is in ygix() :

> if((class(x) == "xts") || (class(x) == "zoo")

> I think this would have been a warning
> 
(https://stackoverflow.com/questions/72848442/r-warning-lengthx-2-1-in-coercion-to-logical1)
> but I am on a ubuntu22.04 machine with R 4.3.0.

> What should I do? Change it to: if((class(x)[1] == "xts")
> || (class(x)[2] == "zoo")) {code}...

> or is there any workaround?

> THanking you, Yours sincerely, AKSHAY M KULKARNI
> 
[https://cdn.sstatic.net/Sites/stackoverflow/Img/apple-touch-i...@2.png?v=73d79a89bded]
> R Warning 'length(x) = 2 > 1' in coercion to
> 
'logical(1)'
> Using R 4.1.3 I observe: var - 0 
> if(is.data.frame(var) || is.vector(var)) var -
> as.matrix(var)  is.null(var) || (!is.matrix(var)
>  var == 0) || (dim(var)==c(1,1) 
> stackoverflow.com 



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

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

>[[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 

Re: [R-es] Resumen de R-help-es, Vol 172, Envío 25

2023-06-19 Thread Juan Carlos Arronte
Javier,

Por lo visto, es un error de la nueva versi�n de RStudio. A m� me pasaba lo 
mismo usando Mac.

Seg�n he le�do en el github de Rstudio est�n trabajando en solucionarlo. Tienes 
dos opciones: o volver a la versi�n anterior o instalar el �ltimo daily build. 
Yo he hecho esto �ltimo, y aunque es una beta, el problema est� solucionado.

https://github.com/rstudio/rstudio/issues/13188

Un saludo

De: R-help-es  en nombre de 
r-help-es-requ...@r-project.org 
Enviado: domingo, 18 de junio de 2023 12:00
Para: r-help-es@r-project.org 
Asunto: Resumen de R-help-es, Vol 172, Env�o 25

Env�e los mensajes para la lista R-help-es a
r-help-es@r-project.org

Para subscribirse o anular su subscripci�n a trav�s de la WEB
https://stat.ethz.ch/mailman/listinfo/r-help-es

O por correo electr�nico, enviando un mensaje con el texto "help" en
el asunto (subject) o en el cuerpo a:
r-help-es-requ...@r-project.org

Puede contactar con el responsable de la lista escribiendo a:
r-help-es-ow...@r-project.org

Si responde a alg�n contenido de este mensaje, por favor, edite la
linea del asunto (subject) para que el texto sea mas especifico que:
"Re: Contents of R-help-es digest...". Adem�s, por favor, incluya en
la respuesta s�lo aquellas partes del mensaje a las que est�
respondiendo.


Asuntos del d�a:

   1. Re: Supuestos de una ANOVA (Proyecto R-UCA)
   2. Error RStudio (Javier G�mez Gonzalez)

--

Message: 1
Date: Sun, 18 Jun 2023 00:19:31 +0200
From: Proyecto R-UCA 
To: r-help-es@r-project.org
Subject: Re: [R-es] Supuestos de una ANOVA
Message-ID: 
Content-Type: text/plain; charset="utf-8"

Buenas,

La instrucci�n plot admite un par�metro which, su valor por defecto es c(1, 2, 
3, 5), que son los cuatro gr�ficos que salen por defecto.
Usando which = 2 obtienes �nicamente el qqplot.

Las observaciones leverage son observaciones que tienen una gran influencia en 
los resultados del an�lisis, de forma que eliminarlas supone
un cambio importante en las estimaciones. No hay que confundirlas con los 
outliers o at�picos, pues una observaci�n puede ser at�pica y no
leverage, o ser leverage y no at�pica.

Un saludo
--
--
http://knuth.uca.es/R
--
Proyecto R-UCA
--
Nombre: Manuel Mu�oz M�rquez
Departamento: Departamento de Estad�stica e Investigaci�n Operativa
Instituci�n: Escuela Superior de Ingenier�a
Organizaci�n: Universidad de C�diz
--

El vie, 16-06-2023 a las 12:41 +0200, Yesica Pallavicini Fernandez escribi�:
> Buenos d�as y muchas gracias por adelantado
> En cuando a probar gr�ficamente los supuestos de normalidad y
> homocedasticidad de una ANOVA
>
> Lo estoy haciendo de forma gr�fica de la siguiente manera:
> Primero hago el nova con: aov()
> luego hago la comprobaci�n de los supuestos con: plot(modelo)
> y me salen 4 gr�ficos;
> 1 un scatter plot de los "residuals" vs " Fitted",
> 2"standardizez residuals" vs " Fitted",
> 3QQplot,
> 4 Residuals vs leverage
> Pero �Qu� es el leverage?
>  1)�teneis algun script que reemplace a plot(modelo) y que solo contenga el
> QQplot y los valores residuales frente a los fitted?
>
> 2) Shapiro.test () no funciona para observaciones mayores a 500 y mis datos
> tienen m�s de 3 observaciones. �sabeis de algun otro test para este
> caso?
>
> Much�simas gracias y que acab�is fenomenal la semana
>
> [[alternative HTML version deleted]]
>
> ___
> R-help-es mailing list
> R-help-es@r-project.org
> https://urldefense.com/v3/__https://stat.ethz.ch/mailman/listinfo/r-help-es__;!!D9dNQwwGXtA!S2L6bI_NoCf_ox_hHI7PINlx5SKlSS1KpBOsabN8o1Z248Rp3TRh5axwIvBUT1g9XZtvU7qL25KUdwc$
>




--

Message: 2
Date: Sun, 18 Jun 2023 03:04:42 +0200
From: Javier G�mez Gonzalez 
To: r-help-es 
Subject: [R-es] Error RStudio
Message-ID:

Content-Type: text/plain; charset="utf-8"

Hola a todos

Desde que instal� la �ltima versi�n de RStudio la 2023.06.0-421 para


Error in exists(cacheKey, where = .rs.WorkingDataEnv, inherits = FALSE) :
  invalid first argument
Error in assign(cacheKey, frame, .rs.CachedDataEnv) :
  attempt to use zero-length variable name



Un saludo

Javier G�mez Gonz�lez

[[alternative HTML version deleted]]




--

Subject: Pi� de p�gina del digest

___
R-help-es mailing list
R-help-es@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-help-es


--

Fin de Resumen de R-help-es, Vol 172, Env�o 25
**

[[alternative HTML version deleted]]

___
R-help-es mailing 

Re: [R-es] Supuestos de una ANOVA

2023-06-19 Thread Francisco Rodriguez Sanchez
Buenos días Yesica

Con ese tamaño de muestra los tests detectarían desviaciones muy sutiles 
de la normalidad que aún así serían totalmente irrelevantes para el 
análisis, p. ej. ver

https://notstatschat.rbind.io/2019/02/09/what-have-i-got-against-the-shapiro-wilk-test/

https://allendowney.blogspot.com/2013/08/are-my-data-normal.html

Creo que lo mejor en ese caso es utilizar el q-q plot u otras gráficas 
como las generadas por "performance::check_model()"

Saludos


On 16/6/23 12:41, Yesica Pallavicini Fernandez wrote:
> Shapiro.test () no funciona para observaciones mayores a 500 y mis datos
> tienen más de 3 observaciones. ¿sabeis de algun otro test para este
> caso?

-- 
Dr Francisco Rodríguez-Sánchez
https://frodriguezsanchez.net

[[alternative HTML version deleted]]

___
R-help-es mailing list
R-help-es@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-help-es


Re: [R-es] Seleccionar valores consecutivos en un dataframe

2023-06-19 Thread Jaume Tormo via R-help-es
Hola a todos,

¡Muchisimas gracias!
Con esto que me dais resuelvo el problema y además he aprendido unas
cuantas funciones nuevas.

Jaume.

On Fri, Jun 16, 2023 at 9:27 AM Jaume Tormo  wrote:

> Estimados eRReros,
>
> Tengo un df como el adjunto (en txt y como objeto de R)
> Como veréis hay una columna T/F que se llama germ y cada fila corresponde
> a datos de un día.
> Me gustaría que R fuera siguiendo la columna germ y en cada serie de días
> con TRUE sumara el valor de la columna p. Se trata de saber si en esa serie
> de días con valor T el total de p es mayor que 1 o no.
> He hecho algo parecido con rle() que me cuenta la longitud de las series
> de TRUE, pero este siguiente paso no se como darlo.
> Si uso apply o subset me toma todas las filas del df con T en la columna
> germ. Lo que no se el como decirle a R que empiece por el principio y vaya
> tomando grupo a grupo.
> Me imagino que podría llegar a construir un bucle que lo hiciera, pero no
> quiero pasarme tres horas dándole vueltas si hay una función o combinación
> de funciones que lo hace ¿Alguna sugerencia o me pongo ya con el bucle?
>
> Muchas gracias.
>
> Jaume.
>
>
> --
> Dr. Jaume Tormo.
> Area of Ecology
> Department of Agrarian and Environmental Sciences
> Technological College. Agri-food and Environment
> University of Zaragoza, Spain
> 0034 974292678
> https://flipboard.com/@jaumetormo/hallazgos-interesantes-bj8opmboy
> https://acercad.wordpress.com/
>
>

-- 
Dr. Jaume Tormo.
Area of Ecology
Department of Agrarian and Environmental Sciences
Technological College. Agri-food and Environment
University of Zaragoza, Spain
0034 974292678
https://flipboard.com/@jaumetormo/hallazgos-interesantes-bj8opmboy
https://acercad.wordpress.com/

[[alternative HTML version deleted]]

___
R-help-es mailing list
R-help-es@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-help-es


Re: [R] warnng to an error....

2023-06-19 Thread Martin Maechler
> akshay kulkarni 
> on Sat, 17 Jun 2023 18:35:53 + writes:

> Dear Bert, Duncan's theory is workingprobably the same
> as yours...

"theory" .. well *truth*.



Note that I wrote a blog post I had hope would be read more
( --> and be cited more .. when helping peopling with such problems ;-))

Simple search ("google") for  "class think R blog"
or directly
  https://blog.r-project.org/2019/11/09/when-you-think-class.-think-again/

To say it again:   Using  something like

if(... class(x) == "" ..)

is almost always (*) bad code.
Everyone should learn about  inherits() and why sane R code
should use that instead.

---
*)  It may be ok, e.g., when `x` was very expliclitly
constructed in the same part of code a bit earlier

Martin


> THanking you, Yours sincerely, AKSHAY M KULKARNI
>  From: Bert Gunter
>  Sent: Saturday, June 17, 2023
> 11:28 PM To: akshay kulkarni  Cc: R
> help Mailing list  Subject: Re: [R]
> warnng to an error

> What is class(x) ??

> I think you need to (re?) learn about S3 classes, which
> can in general be vectors. See ?class (the S3 portion) or
> any tutorial on S3 classes in R. I have no idea what you
> are trying to do, but I *suspect* it may be accomplished
> through S3 inheritance rather than changing the class
> vector. That is just a guess, however.

> -- Bert

> On Sat, Jun 17, 2023 at 10:27 AM akshay kulkarni
> mailto:akshay...@hotmail.com>>
> wrote: Dear members, AN update: I have changed the if
> clause to:

> if(class(x)[1] == "xts") || class(x)[2] == "zoo") {code}

> but am bootless.

> PLease help...

> THanking you, Yours sincerely, AKSHAY M KULKARNI

>  From: R-help
> mailto:r-help-boun...@r-project.org>>
> on behalf of akshay kulkarni
> mailto:akshay...@hotmail.com>>
> Sent: Saturday, June 17, 2023 10:46 PM To: R help Mailing
> list mailto:r-help@r-project.org>>
> Subject: [R] warnng to an error

> Dear members,

>   I have the following code:

>> FUN(OHLCDataEP[[63]])
> Error in (class(x) == "xts") || (class(x) == "zoo") :
> 'length = 2' in coercion to 'logical(1)'
>> traceback()
> 2: ygix(x, "c") at #9 1: FUN(OHLCDataEP[[63]])
>> class(OHLCDataEP[[63]])
> [1] "xts" "zoo"

> The following is in ygix() :

> if((class(x) == "xts") || (class(x) == "zoo")

> I think this would have been a warning
> 
(https://stackoverflow.com/questions/72848442/r-warning-lengthx-2-1-in-coercion-to-logical1)
> but I am on a ubuntu22.04 machine with R 4.3.0.

> What should I do? Change it to: if((class(x)[1] == "xts")
> || (class(x)[2] == "zoo")) {code}...

> or is there any workaround?

> THanking you, Yours sincerely, AKSHAY M KULKARNI
> 
[https://cdn.sstatic.net/Sites/stackoverflow/Img/apple-touch-i...@2.png?v=73d79a89bded]
> R Warning 'length(x) = 2 > 1' in coercion to
> 
'logical(1)'
> Using R 4.1.3 I observe: var - 0 
> if(is.data.frame(var) || is.vector(var)) var -
> as.matrix(var)  is.null(var) || (!is.matrix(var)
>  var == 0) || (dim(var)==c(1,1) 
> stackoverflow.com 



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

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

>   [[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 

Re: [R-es] Error RStudio

2023-06-19 Thread Proyecto R-UCA
Buenas, 

Yo diría que se trata de un fichero de trabajo que está intentando cargar al 
inicio y que falla.

Busca un fichero .rs.WorkingDataEnv y bórralo. Si aún así sigue dándote el 
fallo busca ficheros .RData y bórralos.

Nota: Son nombres de fichero no extensiones y, por tanto, no llevan nada 
delante del punto.

Un saludo.
-- 
--
http://knuth.uca.es/R
--
Proyecto R-UCA
--
Nombre: Manuel Muñoz Márquez
Departamento: Departamento de Estadística e Investigación Operativa
Institución: Escuela Superior de Ingeniería
Organización: Universidad de Cádiz
--

El dom, 18-06-2023 a las 03:04 +0200, Javier Gómez Gonzalez escribió:
> Hola a todos
> 
> Desde que instalé la última versión de RStudio la 2023.06.0-421 para
> Windows me aparece el siguiente error :
> 
> Error in exists(cacheKey, where = .rs.WorkingDataEnv, inherits = FALSE) :
>   invalid first argument
> Error in assign(cacheKey, frame, .rs.CachedDataEnv) :
>   attempt to use zero-length variable name
> 
> La versión de R que tengo es la 4.3 y el sistema operativo es Windows 10.
> 
> Un saludo
> 
>     Javier Gómez González
> 
> [[alternative HTML version deleted]]
> 
> ___
> R-help-es mailing list
> R-help-es@r-project.org
> https://urldefense.com/v3/__https://stat.ethz.ch/mailman/listinfo/r-help-es__;!!D9dNQwwGXtA!ReVoQrWyTd6D01skNmHh-ezD_3CKh1HvZ8oxfTCOskCfF69nCv-CYmf1UYoIqnU7SvXz6BEV-IcImeM$
>  

___
R-help-es mailing list
R-help-es@r-project.org
https://stat.ethz.ch/mailman/listinfo/r-help-es