Skip to content

Commit

Permalink
update examples (see #43) and show defined function args
Browse files Browse the repository at this point in the history
  • Loading branch information
JustinMShea committed Dec 10, 2021
1 parent 6207bc0 commit 8f0a506
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 5 deletions.
14 changes: 11 additions & 3 deletions R/selectCRSPandSPGMI.R
Original file line number Diff line number Diff line change
Expand Up @@ -21,14 +21,22 @@
#'
#' @return A merged data.frame consisting of selected stocks and factors
#'
#' @export
#'
#'@examples
#'data(stocksCRSP)
#'data(factorsSPGMI)
#'
#'stocks_factors <- selectCRSPandSPGMI()
#'stocks_factors <- selectCRSPandSPGMI(stocks = stocksCRSP, factors = factorsSPGMI,
#' dateSet = c("2006-01-31", "2010-12-31"),
#' stockItems = c("Date", "TickerLast",
#' "CapGroup", "Sector",
#' "Return", "Ret13WkBill",
#' "mktIndexCRSP"),
#' factorItems = c("BP", "LogMktCap", "SEV"),
#' capChoice = "SmallCap",
#' Nstocks = 20)
#'
#'str(stocks_factors)
#'@export
selectCRSPandSPGMI <- function(stocks = stocksCRSP, factors = factorsSPGMI,
dateSet = c("2006-01-31","2010-12-31"),
stockItems = c("Date", "TickerLast", "CapGroup",
Expand Down
13 changes: 11 additions & 2 deletions man/selectCRSPandSPGMI.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 8f0a506

Please sign in to comment.