Title: | Randomised Emoji Scenes |
---|---|
Description: | Print to the console a randomised scene composed of emoji. |
Authors: | Matt Dray [aut, cre] |
Maintainer: | Matt Dray <[email protected]> |
License: | MIT + file LICENSE |
Version: | 0.0.0.9000 |
Built: | 2024-11-15 04:21:37 UTC |
Source: | https://github.com/matt-dray/emojiscape |
Print to the console a randomised scene composed of emoji, given a specific terrain type.
generate( terrain = c("arable", "city", "desert", "forest", "garden", "liminal", "mountains", "ocean", "pastoral", "polar", "rainforest", "sky", "space", "suburbs", "traffic", "undergrowth", "woods"), grid_size = 10, prob_common = 0.75, prob_uncommon = 0.2, prob_rare = 0.05 )
generate( terrain = c("arable", "city", "desert", "forest", "garden", "liminal", "mountains", "ocean", "pastoral", "polar", "rainforest", "sky", "space", "suburbs", "traffic", "undergrowth", "woods"), grid_size = 10, prob_common = 0.75, prob_uncommon = 0.2, prob_rare = 0.05 )
terrain |
Character. What type of locale? See 'details' below for options. |
grid_size |
Numeric, greater than zero. Width and length of the emoji matrix. |
prob_common |
Numeric. Probability of occurrence for the 'common' emoji in the terrain set. |
prob_uncommon |
Numeric. Probability of occurrence for the 'uncommon' emoji in the terrain set. |
prob_rare |
Numeric. Probability of occurrence for the 'rare' emoji in the terrain set. |
Your terrain choice results in the selection of a predetermined three- emoji set, from which a sample is taken to fill a square matrix with dimensions of grid_size.
Currently, terrain options are "arable", "city", "desert", "forest", "garden", "liminal", "mountains", "ocean", "pastoral", "polar", "rainforest", "roads", "sky", "space", "undergrowth" and "woods".
The prob_* arguments are passed to sample() and are relative to each other.
Class NULL. Matrix of emoji printed to the console line by line with cat().
generate("ocean")
generate("ocean")
Print a dataframe with the emoji that are found in the name terrain and their probability slot.
get_set(terrain)
get_set(terrain)
terrain |
Character. What type of locale? See 'details' below for options. |
Currently, terrain options are "arable", "city", "desert", "forest", "garden", "liminal", "mountains", "ocean", "pastoral", "polar", "rainforest", "sky", "space", "suburbs", "traffic", "undergrowth" and "woods".
A data.frame of 4 columns and 3 rows.
get_set("space")
get_set("space")