search for: trimw

Displaying 12 results from an estimated 12 matches for "trimw".

Did you mean: trim
2016 Jun 14
5
new function to tools/utils package: dependencies based on DESCRIPTION file
...quot;, "Imports", "LinkingTo", "Suggests") stopifnot(which %in% which_all) dcf <- read.dcf(file, which) # parse fields raw.deps <- unlist(strsplit(dcf[!is.na(dcf)], ",", fixed = TRUE)) # strip stated dependency version deps <- trimws(sapply(strsplit(trimws(raw.deps), "(", fixed = TRUE), `[[`, 1L)) # exclude base R pkgs base.pkgs <- c("R", rownames(installed.packages(priority = "base"))) setdiff(deps, base.pkgs) } This allows to easily install all package dependencies just based on...
2016 Jun 16
3
new function to tools/utils package: dependencies based on DESCRIPTION file
...gt;> stopifnot(which %in% which_all) >>> dcf <- read.dcf(file, which) >>> # parse fields >>> raw.deps <- unlist(strsplit(dcf[!is.na(dcf)], ",", fixed = TRUE)) >>> # strip stated dependency version >>> deps <- trimws(sapply(strsplit(trimws(raw.deps), "(", fixed = >>> TRUE), `[[`, 1L)) >>> # exclude base R pkgs >>> base.pkgs <- c("R", rownames(installed.packages(priority = "base"))) >>> setdiff(deps, base.pkgs) >>> } >&...
2016 Nov 17
1
new function to tools/utils package: dependencies based on DESCRIPTION file
...ll) >>>>> dcf <- read.dcf(file, which) >>>>> # parse fields >>>>> raw.deps <- unlist(strsplit(dcf[!is.na(dcf)], ",", fixed = TRUE)) >>>>> # strip stated dependency version >>>>> deps <- trimws(sapply(strsplit(trimws(raw.deps), "(", fixed = >>>>> TRUE), `[[`, 1L)) >>>>> # exclude base R pkgs >>>>> base.pkgs <- c("R", rownames(installed.packages(priority = "base"))) >>>>> setdiff(deps,...
2016 Jun 14
0
new function to tools/utils package: dependencies based on DESCRIPTION file
...uot;LinkingTo", "Suggests") > stopifnot(which %in% which_all) > dcf <- read.dcf(file, which) > # parse fields > raw.deps <- unlist(strsplit(dcf[!is.na(dcf)], ",", fixed = TRUE)) > # strip stated dependency version > deps <- trimws(sapply(strsplit(trimws(raw.deps), "(", fixed = > TRUE), `[[`, 1L)) > # exclude base R pkgs > base.pkgs <- c("R", rownames(installed.packages(priority = "base"))) > setdiff(deps, base.pkgs) > } > > This allows to easily install all p...
2016 Jun 16
0
new function to tools/utils package: dependencies based on DESCRIPTION file
...ot;Suggests") >> stopifnot(which %in% which_all) >> dcf <- read.dcf(file, which) >> # parse fields >> raw.deps <- unlist(strsplit(dcf[!is.na(dcf)], ",", fixed = TRUE)) >> # strip stated dependency version >> deps <- trimws(sapply(strsplit(trimws(raw.deps), "(", fixed = >> TRUE), `[[`, 1L)) >> # exclude base R pkgs >> base.pkgs <- c("R", rownames(installed.packages(priority = "base"))) >> setdiff(deps, base.pkgs) >> } >> >> This al...
2016 Jun 16
0
new function to tools/utils package: dependencies based on DESCRIPTION file
...t(which %in% which_all) >>>> dcf <- read.dcf(file, which) >>>> # parse fields >>>> raw.deps <- unlist(strsplit(dcf[!is.na(dcf)], ",", fixed = TRUE)) >>>> # strip stated dependency version >>>> deps <- trimws(sapply(strsplit(trimws(raw.deps), "(", fixed = >>>> TRUE), `[[`, 1L)) >>>> # exclude base R pkgs >>>> base.pkgs <- c("R", rownames(installed.packages(priority = "base"))) >>>> setdiff(deps, base.pkgs) >...
2023 Mar 31
1
Extraer texto de una columna en Excel
...ofundos, 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 <- read_excel("Agrologia.xlsx") df$Extracted_Text <- trimws(str_extract(df$CARACTERIS, "(?<=textura?(?:[^a-zA-Z]|s)).*?(?=\\.)")) Estoy abierto a cualquier sugerencia o comentario. Muchas gracias. On Fri, 31 Mar 2023 at 12:03, Carlos Ortega <cof en qualityexcellence.es> wrote: > Hola, > > Como no sé lo que querías, veo dos a...
2023 Mar 31
1
Extraer texto de una columna en Excel
...anco 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 <- read_excel("Agrologia.xlsx") > > df$Extracted_Text <- trimws(str_extract(df$CARACTERIS, > "(?<=textura?(?:[^a-zA-Z]|s)).*?(?=\\.)")) > > Estoy abierto a cualquier sugerencia o comentario. > > Muchas gracias. > > On Fri, 31 Mar 2023 at 12:03, Carlos Ortega <cof en qualityexcellence.es> > wrote: > >> Hola, &...
2024 Jan 06
0
Help request: Parsing docx files for key words and appending to a spreadsheet
...s[[i]])) > # get the data you want, here one line per item to make it clearer > # assume consistency among articles > ttl <- fileDat[[1]] > src <- fileDat[[2]] > dt <- fileDat[[3]] > aut <- fileDat[grepl("Byline:",fileDat)] > aut <- trimws(sub("Byline:","",aut), whitespace = "[\\h\\v]") > pg <- fileDat[grepl("Pg.",fileDat)] > pg <- as.integer(sub(".*Pg. ([[:digit:]]+)","\\1",pg)) > len <- fileDat[grepl("Length:", fileDat)] > len &l...
2019 Apr 26
0
R 3.6.0 is released
...TRUE. By default, keep.parse.data.pkgs is now FALSE, which changes previous behavior and significantly reduces space and time overhead when sources are kept when installing packages. * In rapply(x, ..), x can also be "list-like" and of length >= 2^{31}. * trimws() gets new optional whitespace argument, allowing more extensive definitions of "space", such as including Unicode spaces (as wished in PR#17431). * weighted.mean() no longer coerces the weights to a double/numeric vector, since sum() now handles integer overflow....
2019 Apr 26
0
R 3.6.0 is released
...TRUE. By default, keep.parse.data.pkgs is now FALSE, which changes previous behavior and significantly reduces space and time overhead when sources are kept when installing packages. * In rapply(x, ..), x can also be "list-like" and of length >= 2^{31}. * trimws() gets new optional whitespace argument, allowing more extensive definitions of "space", such as including Unicode spaces (as wished in PR#17431). * weighted.mean() no longer coerces the weights to a double/numeric vector, since sum() now handles integer overflow....
2019 Apr 26
0
R 3.6.0 is released
...TRUE. By default, keep.parse.data.pkgs is now FALSE, which changes previous behavior and significantly reduces space and time overhead when sources are kept when installing packages. * In rapply(x, ..), x can also be "list-like" and of length >= 2^{31}. * trimws() gets new optional whitespace argument, allowing more extensive definitions of "space", such as including Unicode spaces (as wished in PR#17431). * weighted.mean() no longer coerces the weights to a double/numeric vector, since sum() now handles integer overflow....