R/fun-package.R

#' Use R for Fun
#'
#' This is a collection of R games and other funny stuff, such as the classical
#' Mine sweeper and sliding puzzles.
#'
#' New games are always welcome; if you know GIT and want to join the
#' development, please go to \url{https://github.com/yihui/fun}; or simply
#' contribute ideas at \url{https://github.com/yihui/fun/issues}.
#' @name fun-package
#' @aliases fun
#' @docType package
#' @author Yihui Xie, Taiyun Wei, and Yixuan Qiu
#' @keywords package
#' @examples ## See the examples in each function, or check out the demos
#' demo(package = 'fun')
NULL


#' Tag information of Yihui Xie's English blog
#'
#' Tag data collected from Yihui Xie's Blog, containing the tag words, frequency
#' and hyperlinks, etc.
#'
#' The \code{count} was multiplied by 4 in the data in order that the tag cloud
#' could be more clear.
#' @name tagData
#' @docType data
#' @format A data frame with 45 observations on the following 5 variables.
#'   \describe{ \item{tag}{a character vector; the tag words} \item{link}{a
#'   character vector; hyperlinks of tags} \item{count}{a numeric vector; the
#'   frequency of tags in blogs (see Details)} \item{color}{a character vector
#'   in hexadecimal format specifying the RGB component of tag colors}
#'   \item{hicolor}{a character vector similar to \code{color}; the color when
#'   mouse hangs over the tag} }
#' @source \url{https://yihui.org/en/} (accessed on June 10, 2009)
#' @examples
#' hist(tagData$count/4, 10)  # extremely right skewed
#' # see help(tag_cloud) for the example of creating tag cloud with this data
NULL

Try the fun package in your browser

Any scripts or data that you put into this service are public.

fun documentation built on Oct. 24, 2020, 1:07 a.m.