Introduction

scratchr is a package ... a real R package ... with all kinds of not-so-useful functions built-in. To get started, try running browseVignettes(package = "scratchr") ... and you're back here!

hello()

One of two functions that ships with scratchr, hello() will say hello. It also features very important ASCII illustrations of animals, creatures, star wars characters, etc courtesy of the cowsay package. It takes two arguments:

library(scratchr)
hello(name = "vp", animal = "spider")

nb if you leave animal blank, you'll get a random creature ... and if you leave name blank, you'll be a "user"

hello()

bday_clock()

Ever wonder how many days until your birthday?

bday_clock(month = "January", day = 1)

futurepop

scratchr also includes a built-in time series dataset. This data is a combination of the uspop data (see ?datasets::uspop) and some completely arbitrary population projections that run through 2030.

futurepop
str(futurepop)

It seems that the population is increasing ...

plot(futurepop)


uvasomrc/scratchr documentation built on May 29, 2019, 10:51 a.m.