# read raw format
chess <- read.table(file = "data-raw/chess.txt",
header = TRUE, # column names
sep = "", # some spaces, some tabs; both separators accounted for here
row.names = NULL, # don't need row names
colClasses = c("character", "character", # for now, IDs = characters, result = integer, timestamp = numeric
"integer", "numeric"),
nrows = 65075, # some extra rows just in case
stringsAsFactors = FALSE) # character IDs shouldn't be converted to factors
# save in data folder
#usethis::use_data(chess, overwrite = TRUE)
save(chess, file = "data-host/chess.rda")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.