Re: [R] Polygon

2018-10-21 Thread David L Carlson
I think this does what you want. z1<- -1 z2<- 2 oldp <- par(mgp=c(3, .5, 0)) curve(dnorm(x,0,1), xlim=c(-5, 5),main="Standard Normal", xaxt="n", frame=F, xlab="") jj<-seq(z1,z2,0.01) cord.x<- jj cord.y<- dnorm(jj) polygon(c(-1, cord.x, 2), c(0, cord.y, 0), col="skyblue")

Re: [R] Polygon

2018-10-21 Thread Steven Yen
David, Rui, and All: Greetings. 1. I need a helping hand with the polygon statement below so that I can have the area under the curve highlighted, between (z1,z2). 2. Is it possible to label the X-axis with in two scale, in the current z-scale and another, say x = (z+5)*2? Thank you. z1<- -1

Re: [R-es] Instalar paquetes antiguos R en Windows 10

2018-10-21 Thread Jorge I Velez
Claro. Lo que ocurre es que C:\Users\Victoria MartÌn es diferente a C:/Users/Victoria Martmn/ No sé qué debes hacer para corregir el problema, pero no debe ser difícil. Saludos, Jorge Velez.- El El dom, 21 de oct. de 2018 a las 10:55 a. m., JOSE MARTIN AREVALO < martin_j...@gva.es>

[R-es] Instalar paquetes antiguos R en Windows 10

2018-10-21 Thread JOSE MARTIN AREVALO
Hola a todos y gracias por responder. He seguido la sugerencia de ver si era un problema de permisos, y creo que no es el caso. Me da la impresión que R busca archivos en un directorio que no existe y, además, no creo haberle configurado. Os pongo la salida que me da cuando bajo este archivo

Re: [R-es] Instalar paquetes antiguos en Windows 10

2018-10-21 Thread Javier Marcuzzi
Estimado José Martín Arevalo ¿Que posibilidad hay en los directorios diferentes? Uno busca en 3.3.0 y otro en 3.5.1 Javier Rubén Marcuzzi El dom., 21 oct. 2018 a las 8:39, Carlos Ortega () escribió: > Hola, > > Prueba a instalar primero la versión anterior de la dependencia > ("optmatch") y

Re: [R] studio server on High SIerra

2018-10-21 Thread Marc Girondot via R-help
I post long time ago a post on my blog about this: https://max2.ese.u-psud.fr/epc/conservation/Girondot/Publications/Blog_r/Entrees/2014/8/3_Install_RStudio_server_on_Marverick_MacOSX.html You could try using this base. Marc Le 21/10/2018 à 05:12, Fuchs Ira a écrit : Can I run Rstudio Server

Re: [R] integral of the fuction for each value

2018-10-21 Thread Tobias Fellinger
Hi, I'm not entirely sure what you want to calculate. If you want to integrate by u in the interval from 0 to 4 for every value of x I would suggest something like this: x <- rnorm(10,0,1) f <- function(u,x){ exp((x-u)) } sapply(x, function(i){ integrate(f,lower=1,upper=4, x=i)$value })

[R] integral of the fuction for each value

2018-10-21 Thread malika yassa via R-help
hello please you help me i have this functionx<-rnorm(10,0,1)f<-fuction(u,x)  {exp((x-u)}I want to calculate the integral of this function for each value of x{for(i in 1:lenght(x)integrate(f,lower=1,upper=4) thinks [[alternative HTML version deleted]]

Re: [R-es] Instalar paquetes antiguos en Windows 10

2018-10-21 Thread Carlos Ortega
Hola, Prueba a instalar primero la versión anterior de la dependencia ("optmatch") y luego instalar el paquete "Matchlt". Además parece que tienes un problema de permisos en el directorio donde se instalan, localiza ese directorio y da permisos completos. Saludos, Carlos Ortega

[R-es] Instalar paquetes antiguos en Windows 10

2018-10-21 Thread JOSE MARTIN AREVALO
Hola a todos! Espero que alguien me pueda echar algo de luz al problema que tengo. Estoy intentando instalar algunos paquetes antiguos en R (3.3.0), como ‘devtools’ en su penúltima versión, y me está resultando imposible. Instalé Rtools y R me dice que funciona, pero no consigo hacer que se

Re: [R] Need to understand how to troubleshoot below error

2018-10-21 Thread MEENA SUBRAMANIAN via R-help
Hi Jeff, im a new learner to R an I am trying to execute the below and my files get created except for the last function write.csv(housedata, file ="housedatacomplete.csv")write where my new file housedatacomplete.csv does not get created and no write command works for me. Also I am unable to