[R-es] Obtener una df a partir de una lista (o algo así)

2021-02-04 Thread Manuel Mendoza
Buenos días, estoy tratando de implementar el código que veis abajo, de la documentación del paquete xgboost. Me desconcierta que al cargar las bases de datos aparezcan como listas. Cuando la llama directamente al aplicar la función xgboost (data = train$data) me desconcierta todavía más. Entiendo

Re: [R] uint8

2021-02-04 Thread Jiefei Wang
Hi Luca, The answer to your question depends on your application. What do you want to do with x3? Do you really need a native vector to represent x1 and x2? Or you just want an object that behaves like it is a joint of x1 and x2? I do not think you can have a native vector x3 without paying

Re: [R] uint8

2021-02-04 Thread Bert Gunter
Please note per the posting guide linked below: "For questions about functions in standard packages distributed with R (see the FAQ Add-on packages in R ), ask questions on R-help. If the question relates to a *contributed

[R] uint8

2021-02-04 Thread Luca Passalacqua via R-help
Dear R users, I am trying to join two 8 bit integers, as defined by the "coolbutuseless/uint8" package, without success: > library(uint8) > x1 = uint8(3)> x1[1] = as.uint8(1) > x1[2] = as.uint8(2)> x2 = uint8(3)> x2[1] = as.uint8(2)> x1[1] 1 2 0> x2[1] 2 > 0 0> xx = c(x1,x2)> xx[1] 01 02 00

[R] forecast accuracy

2021-02-04 Thread Faheem Jan via R-help
I am working in the functional time series, I obtain the one year ahead forecast in the functional format, Know i want to forecast accuracy for example mean absolute percentage error in R, please help how i do this in R [[alternative HTML version deleted]]

Re: [R] Working with FactoMineR

2021-02-04 Thread Mahmood Naderan-Tahan
OK . Thanks for that. Regards, Mahmood From: Bill Dunlap Sent: Thursday, February 4, 2021 7:06:21 PM To: Mahmood Naderan-Tahan Cc: r-help@r-project.org Subject: Re: [R] Working with FactoMineR This will happen if you select no points when it asks you to 'click

Re: [R] Working with FactoMineR

2021-02-04 Thread Bill Dunlap
This will happen if you select no points when it asks you to 'click on the graph' (to select the level at which to cut the tree). On Windows you can select no points by right clicking and selecting 'Stop' from the menu that pops up. RStudio may have a different way to select no points. -Bill

Re: [ESS] Error message when starting R

2021-02-04 Thread Jeremie Juste via ESS-help
Hello Jaime, Could you check the mentioned directory to see if anything is there? For my part, if I check the following path where ESS is installed, c:/Users/Jeremie/AppData/Roaming/.emacs.d/elpa/ess-20201122.814/etc/ESSR/R/ I can see the .load.R file. A potential solution would be to delete

Re: [R] Working with FactoMineR

2021-02-04 Thread Andrés Aragón
Hi, Could you send a sample of your data frame? Andrés > El 4 feb 2021, a las 7:07, Mahmood Naderan-Tahan > escribió: > > Hi, > > I tried to run the HCPC example [1] in the online R [2], but got an error: > > > > library(FactoMineR) > data(tea) > res.mca = MCA(tea, ncp=20,

[ESS] Error message when starting R

2021-02-04 Thread Jaime Alvarez Gerding via ESS-help
Hello, I just updated ESS from MELPA and Iget the following message after starting R Messages while loading ESSR: + + + Error in file(filename, "r", encoding = encoding) : cannot open the connection In addition: Warning message: In file(filename, "r", encoding = encoding) : cannot open file

[R] Working with FactoMineR

2021-02-04 Thread Mahmood Naderan-Tahan
Hi, I tried to run the HCPC example [1] in the online R [2], but got an error: library(FactoMineR) data(tea) res.mca = MCA(tea, ncp=20, quanti.sup=19, quali.sup=c(20:36), graph=FALSE) res.hcpc = HCPC(res.mca) Result: [1] "Click on the graph to cut the tree" Error in while (coupe$y <

Re: [R] Alternative to mapply to select samples

2021-02-04 Thread Chao Liu
Thank you for your input, Petr. I will give it a try. Best, Chao ᐧ On Wed, Feb 3, 2021 at 4:32 AM PIKAL Petr wrote: > Hi > > I am not sure if I understand your function but simple mapply gives you > probably the same result and may be quicker. > > > set.seed(111) > > blf <- bl_func() > >

[R] Different files for train and test data

2021-02-04 Thread Neha gupta
Hi I have two files of my data: part1 and part2. I used part1 to train and test my data and got the RMSE value. Now I need to compare my obtained result (RMSE value) with unseen data i.e. part2 of data. How can I use the same training data of part1 and part2 data as test data. I am using caret

Re: [R] md5sum issues

2021-02-04 Thread Ivan Calandra
Dear Tim, Jeff, Duncan and Ivan, Thank you all for your input! Actually, I am already doing what Tim suggested, and as Jeff said, using the checksums is redundant since I use Git already (which does a better job). So I've decided to just remove the checksums from my scripts, and to revert