Re: [R-es] Ayuda con Función nueva variable

2022-07-06 Thread Javier Marcuzzi
Perdón, este es el código n1 <-c(974.0, 938.1, 908.9, 884.3, 862.6, 843.2, 825.4) alfa <-c(0.2642, 0.3754, 0.5014, 0.6273, 0.7380, 0.8250, 0.8875) datos <- data.frame(n1,alfa) datos #creo indice indices <- as.numeric(rownames(datos)) datos <- data.frame(indices, datos) datos valor <-1025

Re: [R] byte coding compiling.....

2022-07-06 Thread akshay kulkarni
Dear Bert, Thanks for your reply... So > cmpfun(mclapply) should do the job right? By the by, how can I give a reprex? Reprex of the code that I am giving to mclapply (as FUN argument)? Yours sincerely, AKSHAY M KULKARNI From: Bert Gunter

[R] Space between axis title and tick labels in persp plot in R (using vis.gam)

2022-07-06 Thread jade.shodan--- via R-help
Dear list, I am making a perspective plot of my generalised additive model (GAM) named a1b, using vis.gam() in mgcv, which in turn makes use of the persp function in base R. Code is as follows: library(mgcv) vis.gam(x = a1b, view = c("wbgt_max", "lag"), plot.type = "persp",

Re: [R] byte coding compiling.....

2022-07-06 Thread Bert Gunter
Unlikely See here: https://www.r-bloggers.com/2017/08/how-to-make-best-use-of-the-byte-compiler-in-r/ Byte code compilation should be automatic in both cases, as I understand it. Of course, I could be wrong due to special features of parallel programming, etc. A reprex might be helpful here.

Re: [R-es] Ayuda con Función nueva variable

2022-07-06 Thread Álvaro Hernández Vicente
Hola, Andrés: Con la mezcla que has hecho de variables de distintos ejemplos no se entiende mucho lo que necesitas. Si la fórmula que tienes en tu excel es exactamente lo que quieres replicar en R, entonces puedes hacerlo con dd <- tibble::tribble(~N1,  ~alfa,    ~NN,   NA, 

Re: [R-es] Ayuda con Función nueva variable

2022-07-06 Thread Andrés Hirigoyen
Hola Javier y Carlos, adjunto un ejemplo en excel para explicarme mejor, sigo sin conseguir el objetivo. Carlos, el valor inicial se lo doy como input. Saludos! El mar, 5 jul 2022 a la(s) 17:16, Carlos Ortega (c...@qualityexcellence.es) escribió: > Hola, > > Bueno, puedes combinar varios lags en