similar to: Working with string

Displaying 20 results from an estimated 800 matches similar to: "Working with string"

2017 Aug 02
4
Extracting numeric part from a string
Hi again, I am struggling to extract the number part from below string : "\"cm_ffm\":\"563.77\"" Basically, I need to extract 563.77 from above. The underlying number can be a whole number, and there could be comma separator as well. So far I tried below : > library(stringr) > str_extract("\"cm_ffm\":\"563.77\"",
2019 Sep 23
5
Consulta
Buenas tarde a todo en s: Tenia la versión de R 3.6 y utilizaba la paquetería de pdftools para extraer información de archivos en pdf actualice la versión 3.6.1 y ya no reconoce la paquetería alguien que me pueda ayudar. Prácticamente no reconoce las funciones de pdftools library(pdftools) library(stringr)? library(NLP)? library(tm)? library(tesseract)? library(magick)?
2019 Aug 15
4
Feature request: non-dropping regmatches/strextract
A very common use case for regmatches is to extract regex matches into a new column in a data.frame (or data.table, etc.) or otherwise use the extracted strings alongside the input. However, the default behavior is to drop empty matches, which results in mismatches in column length if reassignment is done without subsetting. For consistency with other R functions and compatibility with this use
2011 Feb 03
2
Sorting a Data Frame by hybrid string / number key
Hi, I'm trying to present a table of some experimental data, and I want to order the rows by the instance names. The issue I've got is that there are a variety of conventions for the instance names (e.g. competition01, competition13, small_1, big_20, med_9). What I want to be able to sort them first in category order so: competition < small < med < big, and then perform the
2019 Sep 24
2
Consulta
Emilio Ahora cuando quiero instalar los paquetes pdftools, magick y otros más me salen el siguiente error WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding: https://cran.rstudio.com/bin/windows/Rtools/ Installing package into ?C:/Users/bdominguez/Documents/R/win-library/3.6? (as ?lib?
2013 Jul 15
3
ayuda con stringr
Hola a todos. Soy un poco torpe manejando cadenas de texto, así que os pido ayuda. Tengo un vector de texto de este tipo datos$tipo [1] m.1.p.Álava m.1.p.Albacete [3] m.2.p.Alicante m.1.p.Almería [5] m.3.p.Asturias m.1.p.Ávila [7] m.1.p.Badajoz m.1.p.Baleares (Illes) [9] m.1.p.Barcelona m.1.p.Burgos [11] m.1.p.Cáceres m.1.p.Cádiz Y quiero extraer el
2015 Oct 08
2
Uso comodín
Hola, Si quieres cambiar todas las ocurrencias sería "*str_replace_all()*" de esa misma librería (stringr). Si no quieres usarla por cualquier motivo, puedes hacer lo mismo con la función "*gsub()*" que está en el paquete "base" (instalada por defecto en R). Gracias, Calos Ortega www.qualityexcellence.es El 8 de octubre de 2015, 11:58, Francisco Rodríguez
2019 Sep 06
2
Cambiar el nombre de las variables de forma automática
Buenas tardes. Tengo una base de datos con 3200 variables. El nombre de todas ellas tiene un punto. Por ej., Canis.aureus. ¿Es posible cambiar ese punto por un espacio, en todas ellas, de forma automática? Esa quedaría así: Canis aureus Gracias [[alternative HTML version deleted]]
2017 Aug 03
2
Extracting numeric part from a string
... Or if you just want to stick with basic regex's without extra packages: > x <- "\"cm_ffm\":\"563.77\"" > sub("[^[:digit:]]*([[:digit:]]*.?[[:digit:]]*).*","\\1",x) [1] "563.77" Cheers, Bert On Wed, Aug 2, 2017 at 5:16 PM, Ismail SEZEN <sezenismail at gmail.com> wrote: > >> On 3 Aug 2017, at 02:59,
2023 Mar 31
1
Extraer texto de una columna en Excel
Muchas gracias Carlos, lo que quiero hacer es lo siguiente: extraer el texto que hay entre textura/s hasta el punto final. Ejemplo: *Moderadamente profundos, bien drenados, de textura franco arenosa a franco arcillo arenosa. Fertilidad natural media* Lo que quiero extraer sería: *franco arenosa a franco arcillo arenosa * Al final lo pude realizar de la siguiente manera: df <-
2011 Sep 13
2
How to use a variable after $ ($x) for subscripting a list, How to source from a character object (source(x))
Dear R colleagues, as result of a function a huge list is generated. From this result list I'd like to extract information. Think of the list i.e. as an object named "listResult" with the following form: [[a]] [1] [2] [3] [4] [5] [[b]] [1] [2] [3] [4] [5] [[c]] [1] [2] [3] [4] [5] where levels=c(a,b,c) I'd like to extract a data.frame like a [2] b [2] c [2] What I
2023 Mar 31
1
Extraer texto de una columna en Excel
Muchas gracias por la alternativa de utilizar la librería stringi, Carlos, no la conocía. On Fri, 31 Mar 2023 at 12:11, David Camilo Gomez Medina < dcgomezme en unal.edu.co> wrote: > Muchas gracias Carlos, lo que quiero hacer es lo siguiente: extraer el > texto que hay entre textura/s hasta el punto final. > Ejemplo: > *Moderadamente profundos, bien drenados, de textura franco
2019 Aug 29
2
Feature request: non-dropping regmatches/strextract
Thank you, I am aware that there are packages that can accomplish this. I mentioned stringr::str_extract as a function that does not drop empty matches. I think that the behavior of regmatches(..., regexpr(...))?in base R should permit an option to prevent dropping of empty matches both for sake of consistency with the rest of the language (missing data does not yield a dropped index in other
2011 Feb 09
2
A question on Duplicating
Hello I am struggling to accomplice an idea which is as follows: I have a vector say: a <- c("a", "b", "c", "a") and another: b <- c("m", "n", "o", "m"). Length of those 2 vectors are essentially be same. Here task is to check the duplicates in the vector 'a' and then to check whether any duplicates are
2013 Feb 01
4
Scrapping con R
Buenas tardes a todos: No sé si alguno de vosotros sabe si con R es posible buscar una palabra en una web (por ejemplo, buscar "Alicante" en www.lasprovincias.es) y que, cada vez que lo encuentre, vaya almacenado las urls en un data.frame gracias de antemano! -- Beatriz Martínez [[alternative HTML version deleted]]
2014 Nov 28
2
What's up with Firefox/Thundrebird
On 11/24/14 21:17, Mauricio Tavares wrote: > On Mon, Nov 24, 2014 at 9:03 PM, Mark LaPierre <marklapier at gmail.com> wrote: >> Hey All, >> >> Has anyone had trouble with Firefox/Thunderbird? >> >> When I log on if I start Thunderbird first then I can't start Firefox. >> Clicking on a link in an email fails to start Firefox. >> >> If I
2017 Aug 03
0
Extracting numeric part from a string
> On Aug 2, 2017, at 6:59 PM, Christofer Bogaso <bogaso.christofer at gmail.com> wrote: > > Hi again, > > I am struggling to extract the number part from below string : > > "\"cm_ffm\":\"563.77\"" > > Basically, I need to extract 563.77 from above. The underlying number > can be a whole number, and there could be comma separator
2017 Aug 03
0
Extracting numeric part from a string
> On 3 Aug 2017, at 02:59, Christofer Bogaso <bogaso.christofer at gmail.com> wrote: > > Hi again, > > I am struggling to extract the number part from below string : > > "\"cm_ffm\":\"563.77\"" > > Basically, I need to extract 563.77 from above. The underlying number > can be a whole number, and there could be comma separator as
2014 Nov 25
6
What's up with Firefox/Thundrebird
Hey All, Has anyone had trouble with Firefox/Thunderbird? When I log on if I start Thunderbird first then I can't start Firefox. Clicking on a link in an email fails to start Firefox. If I start Firefox before Thunderbird then hyperlinks in emails open a page in the existing Firefox instance. Other users on this same machine are having the same problems. This has been happening for that
2014 Nov 28
3
What's up with Firefox/Thundrebird
On 11/28/14 00:47, Philip Manuel wrote: > > On 28/11/14 16:42, Mark LaPierre wrote: >> On 11/24/14 21:17, Mauricio Tavares wrote: >>> On Mon, Nov 24, 2014 at 9:03 PM, Mark LaPierre <marklapier at gmail.com> >>> wrote: >>>> Hey All, >>>> >>>> Has anyone had trouble with Firefox/Thunderbird? >>>> >>>>