summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--NAMESPACE3
-rw-r--r--R/util.R7
2 files changed, 8 insertions, 2 deletions
diff --git a/NAMESPACE b/NAMESPACE
index 0a764aa..6c7beb9 100644
--- a/NAMESPACE
+++ b/NAMESPACE
@@ -1,5 +1,6 @@
# Generated by roxygen2: do not edit by hand
+S3method("%=%",lbunch)
S3method("inputNames<-",idframe)
S3method("outputNames<-",idframe)
S3method(deltat,idframe)
@@ -27,6 +28,7 @@ S3method(sim,idpoly)
S3method(summary,estpoly)
S3method(summary,idframe)
S3method(time,idframe)
+export("%=%")
export("inputNames<-")
export("outputNames<-")
export(armax)
@@ -38,6 +40,7 @@ export(detrend)
export(estpoly)
export(etfe)
export(fitch)
+export(g)
export(getcov)
export(idframe)
export(idfrd)
diff --git a/R/util.R b/R/util.R
index bb2066e..42d06df 100644
--- a/R/util.R
+++ b/R/util.R
@@ -1,12 +1,14 @@
# Generic form
+#' @export
'%=%' = function(l, r, ...) UseMethod('%=%')
# Binary Operator
+#' @export
'%=%.lbunch' = function(l, r, ...) {
Envir = as.environment(-1)
- if (length(r) > length(l))
- warning("RHS has more args than LHS. Only first", length(l), "used.")
+# if (length(r) > length(l))
+# warning("RHS has more args than LHS. Only first", length(l), "used.")
if (length(l) > length(r)) {
warning("LHS has more args than RHS. RHS will be repeated.")
@@ -35,6 +37,7 @@ extendToMatch <- function(source, destin) {
}
# Grouping the left hand side
+#' @export
g = function(...) {
List = as.list(substitute(list(...)))[-1L]
class(List) = 'lbunch'