The R package examiner2
is a toy example package.
You can install the sample version of examiner2
on github using the R package devtools
# if you haven't had installed 'devtools'
install.packages("devtools")
# load devtools
library(devtools)
# install 'examiner2'
install_github('examiner2', username='gastonstat')
examiner2
is a very simple package that I use for teaching purposes in my workshop Create an R package (in windows)
# load examiner
library(examiner2)
# create random matrix (10 rows, 5 columns)
set.seed(3131)
M = matrix(rnorm(50), 10, 5)
# let's apply examine
M_exam = examine(M)
M_exam
# test class 'examined'
is.examined(M_exam) # TRUE
is.examined(M) # FALSE
# try with iris
examine(iris) # fails
# remove 'Species' from iris
examine(as.matrix(iris[,1:4]))
Gaston Sanchez (gaston.stat at gmail.com)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.