Skip to contents

All functions

cnorm()
Returns the critical value(s) from the normal distribution
ct()
Returns the critical value(s) from a t-distribution
do_it()
Repeats a process many times and returns a vector of results
download_any_file()
Download any file related to the class
download_github_directory()
Download files from a GitHub directory
download_only_if_missing()
A helper function that downloads a file only if it does not already exist. If the file already exists, a message is shown (if desired).
get_F_stat()
Calculates the F statistic
get_MAD_stat()
Calculates the MAD statistic
get_approval_sample()
Generate a random sample of a president's approval ratings
get_chisqr_stat()
Calculates the chi-square statistic
get_class_material_root_path()
Get the root path for class materials
get_proportion()
Calculates proportion of values in a particular category
get_sprinkle_sample()
Generate a random sample of sprinkle colors
get_version()
Get the package name and version number
goto_class()
Go to the directory for a specific class
goto_directory()
Sets the working directory and has RStudio file pane set to that directory If the directory does not exist, the user is prompted to download the files.
goto_final_project()
Go to the directory for the final project
goto_homework()
Go to the directory for specific homework
goto_practice_session()
Go to the directory for a specific practice session
list_backups()
List all available backups
list_github_files()
Lists the files that are on the class GitHub site in a particular directory
move_to_backup()
Move a folder to the backup directory
plot_chisq()
Plots a chi-squared distribution
plot_f()
Plots an F-distribution
plot_norm()
Plots a Normal distribution
plot_t()
Plots a t-distribution
pnull()
Calculates the proportion of points in a vector greater than a specified value
ptail()
Calculates the proportion of points in a vector more extreme than a specified value
rapprovals()
Generate a random sample of a president's approval ratings
resample_pairs()
Samples with replacement the same rows from two vectors
restore_from_backup()
Restore a backup from a zip file
rflip()
Gives a count/proportion from simulating n coin flips
rflip_count()
Gives a count/proportion from simulating n coin flips
rflip_sequence()
Generates a sequence of coin flips
rroll()
Generates a vector of random die rolls
rsprinkles()
Generate a random sample of sprinkle colors
save_zip_of_all_class_material()
Save a zip file of all class material
set_class_material_root_path()
Set the root path where class materials will be downloaded
shuffle()
Shuffles the order of the values in a vector
stats_by_group()
Statistics by group
update_installed_packages()
Installs packages that are used in the class