Skip to contents

This function simply looks up the name of the harmonious ratio that matches the input proportion.

Usage

name_ratios(h, w = 1)

Arguments

h, w

pairwise height & width vectors representing input proportions

Value

Returns a character vector of ratio names or NA for input proportions that lack a match in letterblasteR::ratios

Examples

name_ratios(3, 2)
#> [1] "fifth"
name_ratios(3.0001, 2)
#> [1] NA