summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--DESCRIPTION3
-rw-r--r--NAMESPACE18
-rw-r--r--R/imports.R4
-rw-r--r--R/preprocess.R1
-rw-r--r--R/util.R2
-rw-r--r--man/grapes-equals-grapes.Rd2
6 files changed, 26 insertions, 4 deletions
diff --git a/DESCRIPTION b/DESCRIPTION
index 7a5e5d0..fac5bd7 100644
--- a/DESCRIPTION
+++ b/DESCRIPTION
@@ -12,6 +12,5 @@ Description: The sysid package provides functions for constructing mathematical
License: GPL-3
Depends: R (>= 3.1)
Imports:
- signal,tframe, ggplot2 (>= 2.1.0), reshape2, polynom, bitops
+ signal,tframe, ggplot2 (>= 2.1.0), reshape2, polynom, bitops, zoo
RoxygenNote: 5.0.1
-Suggests: zoo
diff --git a/NAMESPACE b/NAMESPACE
index ce892cd..d0c791d 100644
--- a/NAMESPACE
+++ b/NAMESPACE
@@ -71,3 +71,21 @@ import(polynom)
import(reshape2)
import(signal)
import(tframe)
+importFrom(graphics,par)
+importFrom(graphics,plot)
+importFrom(stats,ar)
+importFrom(stats,arima)
+importFrom(stats,ccf)
+importFrom(stats,coef)
+importFrom(stats,fitted)
+importFrom(stats,lm)
+importFrom(stats,mvfft)
+importFrom(stats,predict)
+importFrom(stats,resid)
+importFrom(stats,rnorm)
+importFrom(stats,start)
+importFrom(stats,ts)
+importFrom(stats,window)
+importFrom(utils,read.table)
+importFrom(utils,tail)
+importFrom(zoo,na.approx)
diff --git a/R/imports.R b/R/imports.R
new file mode 100644
index 0000000..8cbf480
--- /dev/null
+++ b/R/imports.R
@@ -0,0 +1,4 @@
+#' @importFrom stats predict resid arima ts start ar ccf coef fitted lm mvfft rnorm window
+#' @importFrom graphics par plot
+#' @importFrom utils read.table tail
+NULL \ No newline at end of file
diff --git a/R/preprocess.R b/R/preprocess.R
index 7bdada3..27aaf0c 100644
--- a/R/preprocess.R
+++ b/R/preprocess.R
@@ -114,6 +114,7 @@ trInfo <- function(InputOffset=numeric(0),OutputOffset=numeric(0),
#' summary(cstr_mis) # finding out the number of NAs
#' cstr <- misdata(cstr_mis)
#'
+#' @importFrom zoo na.approx
#' @export
misdata <- function(data){
if (!requireNamespace("zoo", quietly = TRUE)) {
diff --git a/R/util.R b/R/util.R
index c2c67f8..bf92808 100644
--- a/R/util.R
+++ b/R/util.R
@@ -3,7 +3,7 @@
#'
#' Assign multiple variables from a list or function return object
#'
-#' @param lhs,rhs the variables to be assingned, and the list or
+#' @param l,r the variables to be assigned, and the list or
#' function return object
#'
#' @export
diff --git a/man/grapes-equals-grapes.Rd b/man/grapes-equals-grapes.Rd
index 730860d..b707b0a 100644
--- a/man/grapes-equals-grapes.Rd
+++ b/man/grapes-equals-grapes.Rd
@@ -7,7 +7,7 @@
l \%=\% r
}
\arguments{
-\item{lhs, rhs}{the variables to be assingned, and the list or
+\item{l, r}{the variables to be assigned, and the list or
function return object}
}
\description{