This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# dnorm gives the pdf for the normal at x | |
dnorm(1) | |
# pnorm gives the cdf for the normal at x | |
# P(Z < 1) | |
pnorm(1) | |
# They also accept parameters to specify the mean and standard deviation | |
# X ~ N(mean = 2, sd = 4) | |
# P(X < 1) | |
pnorm(1, 2, 4) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#' Monitor objects using output | |
#' | |
#' This creates a function that is meant to be used as a taskCallBack. | |
#' You can call the resulting function directly yourself when you want | |
#' to monitor changes but that isn't the intended use. | |
#' | |
#' @param object_name Character string. The object name you want to montior | |
#' @param FUN function - The function used to monitor the object for changes. | |
#' The only time notifications will be messaged is when | |
#' the output from FUN changes. |