Re: [R] conversion of d m s (lat) d m s (long) coordinates into decimal coordinates

2022-04-26 Thread Nicolas Degallier
Hi Rui, I succeded to convert a coordinate from decimal to DMS formats but not the inverse!!! dd<- -52.55684 c<-dd2dms(dd, NS = FALSE) c [1] 52d33'24.624"W > The use of char2dms() function is not so easy because I cannot yet read() the text file with the DMS coordinates (one col. with the

[R] Confusing fori or ifelse result in matrix manipulation

2022-04-26 Thread Uwe Freier
Hello, many thanks for your replies. The code I've posted was simplified and depicted my problem basically. Of course my intention was not to add 0-columns to a matrix, the problem resulted from my approach to add only eigenvectors to a matrix if the corresponding eigenvalue is element of

Re: [R] flag records

2022-04-26 Thread Avi Gross via R-help
Lots of people here are touchy about homework and I can understand that. But sharing code and saying where you are stuck is a plus for me as compared to asking someone to do it all. So, without commenting on whether your shown code is right, assuming youhave a data.frame object sorted as

Re: [R] Convert one rectangle into two rectangles

2022-04-26 Thread Bert Gunter
Sounds like homework. We try not to do homework here (if it is). See the posting guide linked below for details. Bert Gunter "The trouble with having an open mind is that people keep coming along and sticking things into it." -- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) On

[R] Time series and correlation

2022-04-26 Thread Marlin Keith Cox
Hi all, I have three columns. Resistance, Time and Frequency, and I need to find correlations between Resistance and Time by each of 100 Frequencies. I have set Frequencies to be a factor. Time is in the format "%m/%d/%Y %H:%M:%S", but correlations dont seem to like Time data. I can run this code

Re: [R-es] Incremento del error relativo de predicción con XgBoost

2022-04-26 Thread Manuel Mendoza
Gracias Carlos, he descubierto que el paquete DALEX, que me recomendaste para obtener los PDPs con XgBoost, te da también la importancia basada en la permutación. Por cierto, que DALEX te represente los PDPs para distintas categorías, tanto de la variable objetivo como de alguno de los