diff --git a/R/tq_portfolio.R b/R/tq_portfolio.R index 720b3da9..f7484142 100644 --- a/R/tq_portfolio.R +++ b/R/tq_portfolio.R @@ -10,11 +10,11 @@ #' to quickly rename columns. #' @param n Number of times to repeat a data frame row-wise. #' @param index_col_name A renaming function for the "index" column, used when repeating data frames. -#' @param ... Additional parameters passed to `PerformanceAnalytics::Returns.portfolio` +#' @param ... Additional parameters passed to `PerformanceAnalytics::Return.portfolio` #' #' @return Returns data in the form of a `tibble` object. #' -#' @details `tq_portfolio` is a wrapper for `PerformanceAnalytics::Returns.portfolio`. +#' @details `tq_portfolio` is a wrapper for `PerformanceAnalytics::Return.portfolio`. #' The main advantage is the results are returned as a `tibble` and the #' function can be used with the `tidyverse`. #' diff --git a/man/tq_portfolio.Rd b/man/tq_portfolio.Rd index 7e1d9e8d..22a7f4e9 100644 --- a/man/tq_portfolio.Rd +++ b/man/tq_portfolio.Rd @@ -28,7 +28,7 @@ and weights in second column.} \item{col_rename}{A string or character vector containing names that can be used to quickly rename columns.} -\item{...}{Additional parameters passed to \code{PerformanceAnalytics::Returns.portfolio}} +\item{...}{Additional parameters passed to \code{PerformanceAnalytics::Return.portfolio}} \item{n}{Number of times to repeat a data frame row-wise.} @@ -41,7 +41,7 @@ Returns data in the form of a \code{tibble} object. Aggregates a group of returns by asset into portfolio returns } \details{ -\code{tq_portfolio} is a wrapper for \code{PerformanceAnalytics::Returns.portfolio}. +\code{tq_portfolio} is a wrapper for \code{PerformanceAnalytics::Return.portfolio}. The main advantage is the results are returned as a \code{tibble} and the function can be used with the \code{tidyverse}.