Package triebeard. August 29, 2016

Similar documents
Package ECctmc. May 1, 2018

Package validara. October 19, 2017

Package cattonum. R topics documented: May 2, Type Package Version Title Encode Categorical Features

Package semver. January 6, 2017

Package fastdummies. January 8, 2018

Package reconstructr

Package rwars. January 14, 2017

Package kdtools. April 26, 2018

Package urltools. October 17, 2016

Package rtext. January 23, 2019

Package geojsonsf. R topics documented: January 11, Type Package Title GeoJSON to Simple Feature Converter Version 1.3.

Package nngeo. September 29, 2018

Package wrswor. R topics documented: February 2, Type Package

Package bigreadr. R topics documented: August 13, Version Date Title Read Large Text Files

Package SEMrushR. November 3, 2018

Package knitrprogressbar

Package robotstxt. November 12, 2017

Package repec. August 31, 2018

Package colf. October 9, 2017

Package readxl. April 18, 2017

Package humanize. R topics documented: April 4, Version Title Create Values for Human Consumption

Package projector. February 27, 2018

Package milr. June 8, 2017

Package internetarchive

Package geoops. March 19, 2018

Package strat. November 23, 2016

Package wdman. January 23, 2017

Package pdfsearch. July 10, 2018

Package docxtools. July 6, 2018

Package fitbitscraper

Package ezknitr. September 16, 2016

Package dbx. July 5, 2018

Package ggimage. R topics documented: November 1, Title Use Image in 'ggplot2' Version 0.0.7

Package ompr. November 18, 2017

Package goodpractice

Package bisect. April 16, 2018

Package canvasxpress

Package rucrdtw. October 13, 2017

Package facerec. May 14, 2018

Package messaging. May 27, 2018

Package labelvector. July 28, 2018

Package haven. April 9, 2015

Package AhoCorasickTrie

Package hyphenatr. August 29, 2016

Package vinereg. August 10, 2018

Package deductive. June 2, 2017

Package virustotal. May 1, 2017

Package fst. December 18, 2017

Package readobj. November 2, 2017

Package phonics. February 13, Type Package Title Phonetic Spelling Algorithms Version Date Encoding UTF-8

Package fastrtext. December 10, 2017

Package ggimage. R topics documented: December 5, Title Use Image in 'ggplot2' Version 0.1.0

Package githubinstall

Package tibble. August 22, 2017

Package spelling. December 18, 2017

Package edfreader. R topics documented: May 21, 2017

R topics documented: 2 clone

Package widyr. August 14, 2017

Package hashids. August 29, 2016

Package censusr. R topics documented: June 14, Type Package Title Collect Data from the Census API Version 0.0.

Package calpassapi. August 25, 2018

Package gtrendsr. October 19, 2017

Package combiter. December 4, 2017

Package nmslibr. April 14, 2018

Package shinyfeedback

Package rsppfp. November 20, 2018

Package geogrid. August 19, 2018

Package balance. October 12, 2018

Package gtrendsr. August 4, 2018

Package ramcmc. May 29, 2018

Package eply. April 6, 2018

Package fingertipsr. May 25, Type Package Version Title Fingertips Data for Public Health

Package statsdk. September 30, 2017

Package censusapi. August 19, 2018

Package sfdct. August 29, 2017

Package jpmesh. December 4, 2017

Package tidyselect. October 11, 2018

Package rcv. August 11, 2017

Package coga. May 8, 2018

Package ezsummary. August 29, 2016

Package essurvey. August 23, 2018

Package textrecipes. December 18, 2018

Package postgistools

Package gggenes. R topics documented: November 7, Title Draw Gene Arrow Maps in 'ggplot2' Version 0.3.2

Package tiler. June 9, 2018

Package mixsqp. November 14, 2018

Package snakecase. R topics documented: March 25, Version Date Title Convert Strings into any Case

Package argon2. June 12, 2017

Package diffusr. May 17, 2018

Package redux. May 31, 2018

Package lumberjack. R topics documented: July 20, 2018

Package glcm. August 29, 2016

Package qualmap. R topics documented: September 12, Type Package

Package climber. R topics documented:

Package barcoder. October 26, 2018

Package loggit. April 9, 2018

Package elmnnrcpp. July 21, 2018

Package rnn. R topics documented: June 21, Title Recurrent Neural Network Version 0.8.1

Package fst. June 7, 2018

Package preprosim. July 26, 2016

Transcription:

Type Package Title 'Radix' Trees in 'Rcpp' Version 0.3.0 Package beard August 29, 2016 Author Oliver Keyes [aut, cre], Drew Schmidt [aut], Yuuki Takano [cph] Maintainer Oliver Keyes <ironholds@gmail.com> 'Radix trees', or 's', are keyvalue data structures optimised for efficient lookups, similar in purpose to hash tables. 'beard' provides an implementation of 'radix trees' for use in R programming and in developing packages with 'Rcpp'. License MIT + file LICENSE LazyData TRUE LinkingTo Rcpp Imports Rcpp RoxygenNote 5.0.1 Suggests knitr, rmarkdown, testthat VignetteBuilder knitr URL https://github.com/ironholds/beard/ BugReports https://github.com/ironholds/beard/issues Date 2016-08-03 NeedsCompilation yes Repository CRAN Date/Publication 2016-08-04 00:57:37 R topics documented: alter............................................. 2 getters............................................ 3 greedy_match........................................ 3 1

2 alter longest_match........................................ 4 prefix_match........................................ 5.............................................. 5 beard........................................... 6 Index 7 alter Add or remove ens _add and _remove allow you to add or remove ens from s, respectively. _add(, keys, values) _remove(, keys) keys values a object created with a character vector containing the keys of the ens to add (or remove). Ens with NA keys will not be added. an atomic vector, matching the type of the, containing the values of the ens to add. Ens with NA values will not be added. nothing; the is modified in-place for creating s in the first place. <- ("foo", "bar") length() _add(, "baz", "qux") length() _remove(, "baz") length()

getters 3 getters Trie Getters "Getters" for the data stored in a object. get_keys gets the keys, get_values gets the values. get_keys() get_values() A object, created with. An atomic vector of keys or values stored in the. greedy_match Greedily match against a tree greedy_match accepts a and a character vector and returns the values associated with any key that is "greedily" (read: fuzzily) matched against one of the character vector ens. greedy_match(, to_match) to_match a object, created with a character vector containing the strings to check against the s keys. a list, the length of to_match, with each entry containing any values where the to_match element greedily matches the associated key. In the case that nothing was found, the entry will contain NA.

4 longest_match longest_match and prefix_match for longest and prefix matching, respectively. <- (keys = c("afford", "affair", "available", "binary", "bind", "blind"), values = c("afford", "affair", "available", "binary", "bind", "blind")) greedy_match(, c("avoid", "bring", "attack")) longest_match Find the longest match in a longest_match accepts a and a character vector and returns the value associated with whichever key had the longest match to each entry in the character vector. A of "binary" and "bind", for example, with an entry-to-compare of "binder", will match to "bind". longest_match(, to_match) to_match a object, created with a character vector containing the strings to match against the s keys. prefix_match and greedy_match for prefix and greedy matching, respectively. <- (keys = c("afford", "affair", "available", "binary", "bind", "blind"), values = c("afford", "affair", "available", "binary", "bind", "blind")) longest_match(, "binder")

prefix_match 5 prefix_match Find the prefix matches in a prefix_match accepts a and a character vector and returns the values associated with any key that has a particular character vector entry as a prefix (see the examples). prefix_match(, to_match) to_match a object, created with a character vector containing the strings to check against the s keys. a list, the length of to_match, with each entry containing any values where the to_match element was a prefix of the associated key. In the case that nothing was found, the entry will contain NA. longest_match and greedy_match for longest and greedy matching, respectively. <- (keys = c("afford", "affair", "available", "binary", "bind", "blind"), values = c("afford", "affair", "available", "binary", "bind", "blind")) prefix_match(, "aff") Create a Trie create_ creates a (a key-value store optimised for matching) out of a provided character vector of keys, and a numeric, character, logical or integer vector of values (both the same length). (keys, values)

6 beard keys values a character vector containing the keys for the. an atomic vector of any type, containing the values to pair with keys. Must be the same length as keys. a object. _add and _remove for adding to and removing from s after their creation, and longest_match and other match functions for matching values against the keys of a created. # An integer int_ <- (keys = "foo", values = 1) # A string str_ <- (keys = "foo", values = "bar") beard Radix trees in Rcpp This package provides access to Radix tree (or "") structures in Rcpp. At a later date it will hopefully provide them in R, too.

Index alter, 2 get_keys (getters), 3 get_values (getters), 3 getters, 3 greedy_match, 3, 4, 5 longest_match, 4, 4, 5, 6 prefix_match, 4, 5, 2 5, 5 _add, 6 _add (alter), 2 _remove, 6 _remove (alter), 2 beard, 6 beard-package (beard), 6 7