knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
Type library(statdata)
and then, datasets in the statdata
package are avaiable.
library(dplyr) library(readr) library(magrittr) library(purrr) library(fs) library(skimr) library(statdata)
kicks_num
dataset contains number of success in the traditional Korean game, Jegichagi
.
data("kicks_num") kicks_num <- kicks_num %>% set_names('count') kicks_num
skimr
package contains skim()
function, which is an improved version of summary
function. This one line command spits out all the descriptive statstics needed to understand the continuous variable.
skimr::skim(kicks_num)
We can visualize the univariate continouse variable with histogram or stem-and-leaf plot.
There are various ways to visualize histogram, but the simplest way is to use hist()
.
hist(kicks_num$count)
The stem-and-leaf plot is also possible.
stem(kicks_num$count)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.