Package crossword.r. January 19, 2018

Similar documents
Package rtext. January 23, 2019

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

Package robotstxt. November 12, 2017

Package messaging. May 27, 2018

Package spark. July 21, 2017

Package datasets.load

Package comparedf. February 11, 2019

Package dkanr. July 12, 2018

Package fastdummies. January 8, 2018

Package canvasxpress

Package d3plus. September 25, 2017

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

Package oec. R topics documented: May 11, Type Package

Package stringb. November 1, 2016

Package kirby21.base

Package postal. July 27, 2018

Package rgho. R topics documented: January 18, 2017

Package regexselect. R topics documented: September 22, Version Date Title Regular Expressions in 'shiny' Select Lists

Package wikitaxa. December 21, 2017

Package loggit. April 9, 2018

Package sessioninfo. June 21, 2017

Package statsdk. September 30, 2017

Package goodpractice

Package docxtools. July 6, 2018

Package repec. August 31, 2018

Package autocogs. September 22, Title Automatic Cognostic Summaries Version 0.1.1

Package available. November 17, 2017

Package sankey. R topics documented: October 22, 2017

Package tidyimpute. March 5, 2018

Package githubinstall

Package validara. October 19, 2017

Package IATScore. January 10, 2018

Package tidyselect. October 11, 2018

Package jpmesh. December 4, 2017

Package keyholder. May 19, 2018

Package facerec. May 14, 2018

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

Package gifti. February 1, 2018

Package IRkernel. January 7, 2019

Package io. January 15, 2018

Package tibble. August 22, 2017

Package fitbitscraper

Package estprod. May 2, 2018

Package clipr. June 23, 2018

Package projector. February 27, 2018

Package hypercube. December 15, 2017

Package graphframes. June 21, 2018

Package rsppfp. November 20, 2018

Package opencage. January 16, 2018

Package bisect. April 16, 2018

Package farver. November 20, 2018

Package rcv. August 11, 2017

Package calpassapi. August 25, 2018

Package exifr. October 15, 2017

Package datapasta. January 24, 2018

Package rzeit2. January 7, 2019

Package ECctmc. May 1, 2018

Package WordR. September 7, 2017

Package taxizedb. June 21, 2017

Package infer. July 11, Type Package Title Tidy Statistical Inference Version 0.3.0

Package ecoseries. R topics documented: September 27, 2017

Package condusco. November 8, 2017

Package ether. September 22, 2018

Package guardianapi. February 3, 2019

Package tiler. June 9, 2018

Package geogrid. August 19, 2018

Package wdman. January 23, 2017

Package narray. January 28, 2018

Package catchr. R topics documented: December 30, Type Package. Title Catch, Collect, and Raise Conditions. Version 0.1.0

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

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

Package pdfsearch. July 10, 2018

Package tidytransit. March 4, 2019

Package textrecipes. December 18, 2018

Package jstree. October 24, 2017

Package dat. January 20, 2018

Package tidylpa. March 28, 2018

Package mdftracks. February 6, 2017

Package utilsipea. November 13, 2017

Package jdx. R topics documented: January 9, Type Package Title 'Java' Data Exchange for 'R' and 'rjava'

Package knitrprogressbar

Package vip. June 15, 2018

Package gtrendsr. October 19, 2017

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

Package fastqcr. April 11, 2017

Package cli. November 5, 2017

Package dbx. July 5, 2018

Package labelvector. July 28, 2018

Package raker. October 10, 2017

Package glue. March 12, 2019

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

Package modules. July 22, 2017

Package reconstructr

Package heims. January 25, 2018

Package sfc. August 29, 2016

Package rprojroot. January 3, Title Finding Files in Project Subdirectories Version 1.3-2

Package zip. R topics documented: March 11, Title Cross-Platform 'zip' Compression Version 2.0.1

Package gtrendsr. August 4, 2018

Package promote. November 15, 2017

Package pmatch. October 19, 2018

Transcription:

Date 2018-01-13 Type Package Title Generating s from Word Lists Version 0.3.5 Author Peter Meissner Package crossword.r January 19, 2018 Maintainer Peter Meissner <retep.meissner@gmail.com> Generate crosswords from a list of words. License MIT + file LICENSE Encoding UTF-8 LazyData true Imports R6 (>= 2.2.0), dplyr (>= 0.5.0), stringr (>= 1.2.0), magrittr (>= 1.5), jsonlite (>= 1.5), r6extended (>= 0.1.1) RoxygenNote 6.0.1 Collate 'cw_matrix_to_df.r' '.R' 'cw_greplv.r' 'cw_normalize_words.r' 'cw_to_json.r' 'cw_wordlist_animal_en.r' Suggests covr, testthat NeedsCompilation no Repository CRAN Date/Publication 2018-01-19 12:25:58 UTC R topics documented:.......................................... 2 cw_greplv.......................................... 3 cw_matrix_to_df...................................... 3 cw_normalize_words.................................... 4 cw_to_json......................................... 4 cw_wordlist_animal_en................................... 4 %>%............................................ 5 Index 6 1

2 Format An R6Class generator object for generating crosswords from word lists Fields letters a character matrix representing the grid of the crossword words a data.frame like (tibble) storing words, their position on the grid (row, col), their length in character, their direction ("right", "down") the word and the clue Methods add_words(words, clues = NULL) this method will try to add words to the crossword by placing it on the grid; clues is optional and should be the same length; density() gives back statistics on fill state of grid to_json(pretty = FALSE) thi exports grid and word list data to JSON for external usage; pretty parameter determines if this is done in a human readable or more machine efficient way Examples library(crossword.r) cw <- $new(rows = 4, columns = 4) cw$add_words(c("back", "nasa", "kick", "nuk", "ic", "sic")) cw cw$letters cw$words cw$density()

cw_greplv 3 cw_greplv a vectorized version of grep a vectorized version of grep cw_greplv(pattern, x, ignore.case = FALSE, perl = FALSE, fixed = FALSE, usebytes = FALSE) pattern x ignore.case perl fixed usebytes character string containing a regular expression (or character string for fixed = TRUE) to be matched in the given character vector. Coerced by as.character to a character string if possible. If a character vector of length 2 or more is supplied, the first element is used with a warning. Missing values are allowed except for regexpr and gregexpr. a character vector where matches are sought, or an object which can be coerced by as.character to a character vector. Long vectors are supported. if FALSE, the pattern matching is case sensitive and if TRUE, case is ignored during matching. logical. Should Perl-compatible regexps be used? logical. If TRUE, pattern is a string to be matched as is. Overrides all conflicting arguments. logical. If TRUE the matching is done byte-by-byte rather than character-bycharacter. See Details. cw_matrix_to_df function that turn matrix into a data.frame in long format function that turn matrix into a data.frame in long format cw_matrix_to_df(x) x the data.frame to transform

4 cw_wordlist_animal_en cw_normalize_words normalize words to be added to grid normalize words to be added to grid cw_normalize_words(words) words character vector of words to normalize for crossword usage cw_to_json function implementing to_json method function implementing to_json method cw_to_json(cw, pretty = FALSE) cw pretty an object of class crossword should json formatted to be mor human readable or not cw_wordlist_animal_en en - animals data frame of words and clues cw_wordlist_animal_en Format An object of class data.frame with 68 rows and 2 columns.

%>% 5 %>% re-export magrittr pipe operator re-export magrittr pipe operator

Index Topic datasets, 2 cw_wordlist_animal_en, 4 %>%, 5 as.character, 3, 2 cw_greplv, 3 cw_matrix_to_df, 3 cw_normalize_words, 4 cw_to_json, 4 cw_wordlist_animal_en, 4 Long vectors, 3 R6Class, 2 regular expression, 3 6