# Code placed in this file fill be executed every time the
# lesson is started. Any variables created here will show up in
# the user's working directory and thus be accessible to them
# throughout the lesson.
# # Make path to lesson directory
# lesson_dir <- file.path(path.package(substring(find("swirl")[1], 9)), "Courses",
# "MEASUREMENT", "Lesson_2")
#
# # Make path to data and let user call read.csv(data_path)
# data_path <- file.path(lesson_dir, "congress.csv")
#
# # Load data into a variable for the user
# congress <- read.csv(data_path, stringsAsFactors=FALSE)
z <- list(z1 = 1:10, z2 = c("bye", "adios", "ciao"),
z3 = data.frame(a1 = 1:3, a2 = c("apple", "orange", "banana")))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.