clstats: Retrieve basic statistics from COLOURlovers.

Description Usage Arguments Details Value Author(s) References Examples

View source: R/clstats.r

Description

Retrieve basic statistics from the COLOURlovers API.

Usage

1
clstats(type, fmt = "xml")

Arguments

type

An API type. One of “colors”, “palettes”, “patterns”, or “lovers”.

fmt

A format for the API response, one of “xml” (the default) or “json”. This has essentially no effect on function behavior.

Details

Retrieve total numbers of colors, palettes, patterns, or lovers.

Value

A numeric value of class “clstats”. This should be the same regardless of the value of fmt.

Author(s)

Thomas J. Leeper

References

http://www.colourlovers.com/api/#stats

Examples

1
2
3
4
5
6
7
## Not run:  
clstats('colors')
clstats('palettes')
clstats('patterns')
clstats('lovers')

## End(Not run)

colourlovers documentation built on Jan. 13, 2021, 11:52 a.m.