Defines functions check_rh

Documented in check_rh

#' Checks to see if you have a valid RobihHood object
#' @param RH object of class RobinHood

check_rh <- function(RH) {

    # Check if RH is the correct class
    if (class(RH) != "RobinHood") stop("RH must be class RobinHood, see RobinHood()")


Try the RobinHood package in your browser

Any scripts or data that you put into this service are public.

RobinHood documentation built on March 1, 2021, 5:08 p.m.