diff --git a/R/regime_means.R b/R/regime_means.R index 76f9245..f193d57 100644 --- a/R/regime_means.R +++ b/R/regime_means.R @@ -12,8 +12,8 @@ #' #' @export regime_means <- function(data, col, rsi){ - col <- data[,col] - rsi <- data[,rsi] + col <- data[[col]] + rsi <- data[[rsi]] current_regime <- c() regime_means <- c() diff --git a/man/rshift-package.Rd b/man/rshift-package.Rd deleted file mode 100644 index 8cc4037..0000000 --- a/man/rshift-package.Rd +++ /dev/null @@ -1,29 +0,0 @@ -% Generated by roxygen2: do not edit by hand -% Please edit documentation in R/extendr-wrappers.R -\docType{package} -\name{rshift-package} -\alias{rshift} -\alias{rshift-package} -\title{rshift: Paleoecology Functions for Regime Shift Analysis} -\description{ -Contains a variety of functions, based around regime shift analysis of paleoecological data. Citations: Rodionov() from Rodionov (2004) \doi{10.1029/2004GL019448} Lanzante() from Lanzante (1996) \doi{10.1002/(SICI)1097-0088(199611)16:11\%3C1197::AID-JOC89\%3E3.0.CO;2-L} Hellinger_trans from Numerical Ecology, Legendre & Legendre (ISBN 9780444538680) rolling_autoc from Liu, Gao & Wang (2018) \doi{10.1016/j.scitotenv.2018.06.276} Sample data sets lake_data & lake_RSI processed from Bush, Silman & Urrego (2004) \doi{10.1126/science.1090795} Sample data set January_PDO from NOAA: \url{https://www.ncei.noaa.gov/access/monitoring/pdo/}. -} -\seealso{ -Useful links: -\itemize{ - \item \url{https://github.com/alexhroom/rshift} - \item Report bugs at \url{https://github.com/alexhroom/rshift/issues} -} - -} -\author{ -\strong{Maintainer}: Alex H. Room \email{alex.room@btinternet.com} (\href{https://orcid.org/0000-0002-5314-2331}{ORCID}) [copyright holder] - -Other contributors: -\itemize{ - \item Felipe Franco-Gaviria (\href{https://orcid.org/0000-0003-4799-1457}{ORCID}) [contributor, funder] - \item Dunia H. Urrego (\href{https://orcid.org/0000-0001-7938-5529}{ORCID}) [contributor, funder] - \item The authors of the dependency Rust crates (see inst/AUTHORS file for details) [contributor] -} - -}