Re: [R] RMariaDB returns a query without microseconds

2021-07-26 Thread Hasan Diwan
Afternoon, > https://mariadb.com/kb/en/microseconds-in-mariadb/ -- seems you're > hitting a MariaDB (or perhaps, inherited from MySQL) limitation here. -- H > -- OpenPGP: https://hasan.d8u.us/openpgp.asc If you wish to request my time, please do so using *bit.ly/hd1AppointmentRequest

Re: [R-es] separar "frase" de texto

2021-07-26 Thread JALS
MUCHISIMAS GRACIAS! El lun., 26 de julio de 2021 17:44, José Luis Pedro Méndez < joseluispedromen...@ciencias.unam.mx> escribió: > Buenas tardes, soy José Luis > > Puedes usar la función str_extract del paquete stringr (quizá debas > instalar tidyverse antes para el correcto funcionamiento), con

Re: [R-es] separar "frase" de texto

2021-07-26 Thread José Luis Pedro Méndez
Buenas tardes, soy José Luis Puedes usar la función str_extract del paquete stringr (quizá debas instalar tidyverse antes para el correcto funcionamiento), con ayuda de una expresión regular particular en el parámetro pattern: library(stringr) str_extract("Ciclobenzaprina 10 Mg 1 En La Noche Via

[R-es] separar "frase" de texto

2021-07-26 Thread JALS
Buenas Tardes a todos! Junto con saludar y esperando se encuentren bien, favor necesito orientación como puedo rescatar de un texto los farmacos. ejemplo, en la tabla "MEDICAMENTOS" tengo estas filas, y necesito rescatar lo que se encuentra antes de la palabra "mg|Mg" 1 "Ciclobenzaprina 10 Mg 1

Re: [R] Satelit Image

2021-07-26 Thread Bert Gunter
You should generally post here for such geo-related queries: https://stat.ethz.ch/mailman/listinfo/r-sig-geo (This is a general R language help list.) You might also have a look here to see whether any of these curated subject-related package directories might be of use to you.

[R] Satelit Image

2021-07-26 Thread javad bayat
Dear all; I want to extrac special wavelength of landsat8 image, 470nm and 570nm. Is there any way to do this? Sincerely -- Best Regards Javad Bayat M.Sc. Environment Engineering Alternative Mail: bayat...@yahoo.com [[alternative HTML version deleted]]

[R] RMariaDB returns a query without microseconds

2021-07-26 Thread Baki UNAL via R-help
Hi I can query a table from a mysql database with RMariaDB. One of the table's column indicates "trade_time" and contains values such as "09:55:02.113000". When I query this table I can not get fractional seconds. I get a value such as "09:55:02". Also I get a variable class such as "hms" and

Re: [R] Puzzled over "partial"

2021-07-26 Thread Andrew Simmons
Hello, First, your statement can be re-written as sort(x,partial=p)[p] since n - (n - p) is p. Second, you need to look at ?sort And look at section "Arguments" subsection "partial", that should have the details you're looking for. From what I understand, it guarantees that the indices of

[R] Puzzled over "partial"

2021-07-26 Thread Nick Wray
Hello I am puzzled about the use or status of "partial" in R. years ago I found a little piece of code which gives the pth largest number in a vector: x<-c(5,4,7,2,6,9) n <- length(x) p<-4 sort(x,partial=n-(n-p))[n-(n-p)] This works fine, although I have tried playing around with the code and

Re: [R] Help with Converting Excel Times to R

2021-07-26 Thread PIKAL Petr
Hi Maybe I am completely wrong but when you import Excel datetimes the result is character, which can be converted to date format quite simply by strptime In case of numerisc format you need to convert date number to seconds. But you could have problems with your OS as on my system I need to set