Learn R Programming

colourlovers (version 0.3.6)

clstats: Retrieve basic statistics from COLOURlovers.

Description

Retrieve basic statistics from the COLOURlovers API.

Usage

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.

Value

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

Details

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

References

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

Examples

Run this code
# NOT RUN {
clstats('colors')
clstats('palettes')
clstats('patterns')
clstats('lovers')
# }

Run the code above in your browser using DataLab