search for: stringr

Displaying 20 results from an estimated 259 matches for "stringr".

Did you mean: string
2015 Apr 19
4
running unit tests on the stringr package
I am trying to learn how to run the unit tests in the stringr package and have the following questions. 1) The r-cran-stringr package does not suggest/depend on the r-cran-testthat package . Would it make sense to add such a thing since after all the tests in /usr/lib/R/site-library/stringr/tests rely on testthat package? 2) I am getting the following error...
2013 Apr 10
3
Stringr Package
Hi Group, I have a question on Stringr package I have a table like this X Y ab su - di ac pi - tu ad tu - tu I want output like this X Y ab su ab di ac pi ac tu ad tu ad tu I am wondering if this operation can be done using stringr package (only) ? [[alter...
2016 Mar 16
2
no puedo instalar knitr y Rmarkdown en ubuntu
Hola Carlos, el ubuntu tiene compilador :) Este es el error completo al querer instalar el paquete stringr Installing package into ?/home/jose210179/R/i686-pc-linux-gnu-library/3.2? (as ?lib? is unspecified) --2016-03-15 21:46:23-- https://cran.rstudio.com/src/contrib/stringr_1.0.0.tar.gz Resolviendo cran.rstudio.com (cran.rstudio.com)... 54.230.163.212 Conectando con cran.rstudio.com (cran.rstudio.co...
2015 Apr 20
0
running unit tests on the stringr package
...irk that this is not really the best place for these matters, but as I got curious, I checked and found you should use test_package() and not test_dir(), as the latter does not load unexported functions of the package (such as check_string()) that may occur in the tests. For packaging of r-cran-stringr, it is probably most efficient to file a bug report there because of the missing Suggests for r-cran-testthat. Kind regards, Johannes Am Sonntag, 19. April 2015, 17:58:53 schrieb kamaraju kusumanchi: > I am trying to learn how to run the unit tests in the stringr package > and have the f...
2010 Aug 25
0
stringr: version 0.4
...ions, but because they have grown organically over time, they can be inconsistent and a little hard to learn. Additionally, they lag behind the string operations in other programming languages, so that some things that are easy to do in languages like Ruby or Python are rather hard to do in R. The `stringr` package aims to remedy these problems by providing a clean, modern interface to common string operations. More concretely, `stringr`: * Processes factors and characters in the same way. * Gives functions consistent names and arguments. * Simplifies string operations by eliminating options t...
2010 Aug 25
0
stringr: version 0.4
...ions, but because they have grown organically over time, they can be inconsistent and a little hard to learn. Additionally, they lag behind the string operations in other programming languages, so that some things that are easy to do in languages like Ruby or Python are rather hard to do in R. The `stringr` package aims to remedy these problems by providing a clean, modern interface to common string operations. More concretely, `stringr`: * Processes factors and characters in the same way. * Gives functions consistent names and arguments. * Simplifies string operations by eliminating options t...
2013 Jul 15
3
ayuda con stringr
...va 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 nombre de la provincia. Estoy intentándolo con stringr y usando expresiones regulares, pero no doy con la tecla. Seguro que es fácil He probado algo como require(stringr) str_extract(datos$tipo,"[p][A-Za-z]+") Pero me devuelve todo NA.. ¿Alguna idea o sitio dónde pueda aprender algo sobre expresiones regulares? Saludos
2011 Oct 25
0
Installing rgeos on Mac OS X 10.4 (was Re: "package 'stringr' does not have a name space"
I figured it out, at least enough to get rgeos's gSimplify function to work, which was my original goal; the stringr problem was with 0.2, however I got stringr 0.5 to install by changing the minimum version in DESCRIPTION from R2.11 to R 2.10. ... Thanks for the help! ############# # This is how I got rgeos to install in R GUI on my Intel Mac OS X 10.4: ############# # stringr download source 0.5 from CR...
2011 Jul 01
0
stringr 0.5
# stringr Strings are not glamorous, high-profile components of R, but they do play a big role in many data cleaning and preparations tasks. R provides a solid set of string operations, but because they have grown organically over time, they can be inconsistent and a little hard to learn. Additionally, they...
2011 Jul 01
0
stringr 0.5
# stringr Strings are not glamorous, high-profile components of R, but they do play a big role in many data cleaning and preparations tasks. R provides a solid set of string operations, but because they have grown organically over time, they can be inconsistent and a little hard to learn. Additionally, they...
2011 Dec 09
0
stringr 0.6
# stringr Strings are not glamorous, high-profile components of R, but they do play a big role in many data cleaning and preparations tasks. R provides a solid set of string operations, but because they have grown organically over time, they can be inconsistent and a little hard to learn. Additionally, they...
2011 Dec 09
0
stringr 0.6
# stringr Strings are not glamorous, high-profile components of R, but they do play a big role in many data cleaning and preparations tasks. R provides a solid set of string operations, but because they have grown organically over time, they can be inconsistent and a little hard to learn. Additionally, they...
2013 Jul 15
0
ayuda con stringr
...+ ,'m.2.p.Alicante' + ,'m.1.p.Almería' + ,'m.3.p.Asturias' + ,'m.1.p.Ávila' + ,'m.1.p.Badajoz' + ,'m.1.p.Baleares (Illes)' + ,'m.1.p.Barcelona' + ,'m.1.p.Burgos' + ,'m.1.p.Cáceres' + ,'m.1.p.Cádiz' + ) > > library(stringr) > prov.incia <- word(cad.ena, 4, sep=fixed(".")) > prov.incia [1] "Álava" "Albacete" "Alicante" [4] "Almería" "Asturias" "Ávila" [7] "Badajoz" "Baleares (Il...
2011 Jul 07
1
Working with string
...ot; (or "p/P") - then again some set of numbers. Examples of such string is "fdahsdfcha163517253c463278643" or "fdahsdfcha163517253C463278643" or "fdahsdfcha163517253P463278643", "fdahsdfcha163517253p463278643" etc. I have tried using latest stringr package to accomplice that. Here is my try: > library(stringr) > str_extract("fdahsdfcha163517253c463278643", "[c]") [1] "c" But it seems that, above code fetching "c" from "fdahsdfcha" only. My goal is to understand what is there be...
2017 Jun 21
2
Missing dependencies in pkg installs
...I did not find the R Installation and Administration Manual helpful. > install.packages("Hmisc") Installing package into '/usr/lib64/R/library' (as 'lib' is unspecified) also installing the dependencies 'stringi', 'evaluate', 'reshape2', 'stringr', knitr', 'ggplot2', 'htmlTable', 'viridis' trying URL 'https://cloud.r-project.org/src/contrib/stringi_1.1.5.tar.gz' Content type 'application/x-gzip' length 3645872 bytes (3.5 MB) ================================================== downloaded 3.5 MB...
2017 Jun 22
0
Missing dependencies in pkg installs
...lation and Administration Manual helpful. > > >> install.packages("Hmisc") > Installing package into '/usr/lib64/R/library' > (as 'lib' is unspecified) > also installing the dependencies 'stringi', 'evaluate', 'reshape2', 'stringr', knitr', 'ggplot2', 'htmlTable', 'viridis' > > trying URL 'https://cloud.r-project.org/src/contrib/stringi_1.1.5.tar.gz' > Content type 'application/x-gzip' length 3645872 bytes (3.5 MB) > ================================================...
2016 Mar 15
2
no puedo instalar knitr y Rmarkdown en ubuntu
...nas, he intentado varias veces instalar knitr y Rmarkdown tanto desde Rstudio como desde la terminal de Ubuntu usando diferentes codigos y en nunca consegui q lo instalara. el error q tira es el siguiente: Warning in install.packages : installation of package ?/tmp/RtmpavyTWw/downloaded_packages/stringr_1.0.0.tar.gz? had non-zero exit status Alguien me podria ayudar, porq estoy dejando definitivamente windows, pero si no me anda R al 100% no puedo mudarme a ubuntu. Gracias, saludos -- "*?Que tudo pesado se torne leve, todo corpo, dançarino, e todo espírito, pássaro.? * *Nietzsche, "As...
2017 Sep 28
0
Searching for Enumerated Items using str_count() from the stringr package
...should carefully read the docs, see ?regexp. You really do not want to pass a multi-element vector as 'keywords' in this case, but instead: stri_count_regex(text3, "[0-9]+\\) ") or: stri_count_regex(text3, "[[:digit:]]+\\) ") BTW, I do not understand why to use the stringr package if it is just a wrapper around the stringi package. Regards, Denes > keywords > > Count<-str_count(text3,keywords) > > === > > I am looking for Count<-c(3,0) > > Any suggestions? > > Thanks! > > Dan > > [[alternative HTML vers...
2017 Sep 28
2
Searching for Enumerated Items using str_count() from the stringr package
Hi all, I have a large number of text strings to search for enumerated items. However, I am receiving this error message even though I thought that I properly escaped the special character closed parenthesis: > Count<-str_count(text3,keywords) Error in stri_count_regex(string, pattern, opts_regex = opts(pattern)) : Syntax error in regexp pattern. (U_REGEX_RULE_SYNTAX) === Here is
2011 Feb 03
2
Sorting a Data Frame by hybrid string / number key
...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 secondary ordering by the final one or two digits. I've used Hadley Wickham's StringR package to split the names into the string and numeric sections so I could get those ordered easily enough. What I'm struggling with is how to sort the categories (because I don't want them in a straight alphabetic order). library(stringr) d <- data.frame(instance = c("competition1...