Re: [R] [External] Re: Error in setwd(dir) when initializing R

2023-11-20 Thread Ana de las Heras Molina
Hello, Thank you all for your responses. When I initialize R, the folder in which it starts is: getwd() [1] "C:/Users/Ana/OneDrive - Universidad Complutense de Madrid (UCM)/Documentos" So it seems a problem with OneDrive -Kevin: I do not really understand your question... You mean if I set my

[R-es] Cambiar el intervalo de confianza en un anova

2023-11-20 Thread Relloso Barrio, Juan Bautista
Buenos días. Normalmente por defecto, todos los ANOVAS (análisis de varianza) que he realizado han sido con un intervalo de confianza del 95%. ¿Cuál sería la orden que debería introducir si deseo modificar ese 95% y, por ejemplo, bajarlo a un 90%? Muchas gracias. Un saludo. Juan Bautista

Re: [R] Calculating volume under polygons

2023-11-20 Thread Micha Silver
(Keeping on the list. And consider my suggestion to move this to R-sig-Geo) What is the coordinate reference system of the polygon layer? Can you share these layers? On 21/11/2023 4:58, javad bayat wrote: Dear Micha; Thank you for your reply. The R version is 4.3.2, the raster package is

Re: [R] [External] Re: Error in setwd(dir) when initializing R

2023-11-20 Thread luke-tierney
On Mon, 20 Nov 2023, Ivan Krylov wrote: On Mon, 20 Nov 2023 12:18:11 +0100 Ana de las Heras Molina wrote: Error in setwd(dir) : no es posible cambiar el directorio de trabajo If you run traceback() first thing after getting this error, does it say anything useful? (Anything besides "No

Re: [R] Cannot calculate confidence intervals NULL

2023-11-20 Thread varin sacha via R-help
Dear Bert, Dear All, Yes, thanks ! that was the problem! Le mercredi 15 novembre 2023 à 22:21:53 UTC+1, Bert Gunter a écrit : I believe the problem is here: cor1 <- cor(x1, y1, method="spearman")  cor2 <- cor(x2, y2, method="spearman") The x's and y's are not looked for in data

Re: [R] Error in setwd(dir) when initializing R

2023-11-20 Thread Ivan Krylov
On Mon, 20 Nov 2023 12:18:11 +0100 Ana de las Heras Molina wrote: > Error in setwd(dir) : no es posible cambiar el directorio de trabajo If you run traceback() first thing after getting this error, does it say anything useful? (Anything besides "No traceback available" would count as useful.)

Re: [R] Error in setwd(dir) when initializing R

2023-11-20 Thread Kevin Thorpe
I think that you may be correct about OneDrive being related. I have seen OneDrive associated with problems before. What happens if you manually set the working directory to that location? Does it work if your default home directory is local to your machine? > On Nov 20, 2023, at 6:18 AM, Ana

[R] Error in setwd(dir) when initializing R

2023-11-20 Thread Ana de las Heras Molina
Hello, I am Ana de las Heras, and I write to you because every time I open RStudio or R directly I have the following message, before I can do anything at all: Error in setwd(dir) : no es posible cambiar el directorio de trabajo At first I didn't pay much attention to it, but I am having lots

Re: [R] Calculating volume under polygons

2023-11-20 Thread Micha Silver
Hi: Some preliminary comments first 1- You might get a better response posting to R-sig-Geo 2- Probably better to switch to the `terra` package instead of the older `raster` 3- Furthermore, there is the package `exactextractr` that ensures that edge pixels are taken into account, weighted

[R] Calculating volume under polygons

2023-11-20 Thread javad bayat
Dear all; I am trying to calculate volume under each polygon of a shapefile according to a DEM. when I run the code, it gives me an error as follows. " Error in h(simpleError(msg, call)) : error in evaluating the argument 'x' in selecting a method for function 'addAttrToGeom': sp supports Z

Re: [R] anyone having trouble accesing CRAN?

2023-11-20 Thread peter dalgaard
Notice that getCRANmirrors() without the local.only=TRUE gets its list from ...tada cran.r-project.org. Arguably, that might be in for a change. Meanwhile, you might just use cloud.r-project.org right away. -pd > On 15 Nov 2023, at 20:23 , Ivan Krylov wrote: > > On Wed, 15 Nov 2023