summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--R/ioNamesData.R19
-rw-r--r--R/util.R11
-rw-r--r--man/grapes-equals-grapes.Rd8
-rw-r--r--man/inputNames-set.Rd (renamed from man/inputNames.Rd)4
4 files changed, 25 insertions, 17 deletions
diff --git a/R/ioNamesData.R b/R/ioNamesData.R
index 823c6b0..f28f7ae 100644
--- a/R/ioNamesData.R
+++ b/R/ioNamesData.R
@@ -47,15 +47,7 @@ inputData.idframe <- function(x,series=seq(nInputSeries(x))){
x
}
-#' Extract or set series' names
-#'
-#' Extract or set names of series in input or output
-#'
-#' @param x \code{idframe} object
-#' @param value vector of strings
-#'
-#' @aliases inputNames<- inputNames<-.idframe outputNames outputNames outputNames<- outputNames<-.idframe
-#'
+
#' @export
inputNames <- function(x) UseMethod("inputNames")
@@ -70,6 +62,15 @@ inputNames.idframe <- function(x){
seriesNames(inputData(x))
}
+#' Extract or set series' names
+#'
+#' Extract or set names of series in input or output
+#'
+#' @param x \code{idframe} object
+#' @param value vector of strings
+#'
+#' @aliases inputNames inputNames<-.idframe outputNames outputNames outputNames<- outputNames<-.idframe
+#'
#' @export
"inputNames<-" <- function(x,value) UseMethod("inputNames<-")
diff --git a/R/util.R b/R/util.R
index bf92808..f58c3fb 100644
--- a/R/util.R
+++ b/R/util.R
@@ -3,15 +3,18 @@
#'
#' Assign multiple variables from a list or function return object
#'
-#' @param l,r the variables to be assigned, and the list or
-#' function return object
+#' @param l the variables to be assigned
+#' @param r the list or function-return object
+#' @param \ldots other arguments
+#'
+#' @aliases g
#'
#' @export
-'%=%' = function(l, r, ...) UseMethod('%=%')
+'%=%' = function(l,r,...) UseMethod('%=%')
# Binary Operator
#' @export
-'%=%.lbunch' = function(l, r, ...) {
+'%=%.lbunch' = function(l,r,...) {
Envir = as.environment(-1)
# if (length(r) > length(l))
diff --git a/man/grapes-equals-grapes.Rd b/man/grapes-equals-grapes.Rd
index b707b0a..c0097a7 100644
--- a/man/grapes-equals-grapes.Rd
+++ b/man/grapes-equals-grapes.Rd
@@ -2,13 +2,17 @@
% Please edit documentation in R/util.R
\name{\%=\%}
\alias{\%=\%}
+\alias{g}
\title{Multiple assignment operator}
\usage{
l \%=\% r
}
\arguments{
-\item{l, r}{the variables to be assigned, and the list or
-function return object}
+\item{l}{the variables to be assigned}
+
+\item{r}{the list or function-return object}
+
+\item{\ldots}{other arguments}
}
\description{
Assign multiple variables from a list or function return object
diff --git a/man/inputNames.Rd b/man/inputNames-set.Rd
index 5e45d35..7584a55 100644
--- a/man/inputNames.Rd
+++ b/man/inputNames-set.Rd
@@ -1,6 +1,6 @@
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/ioNamesData.R
-\name{inputNames}
+\name{inputNames<-}
\alias{inputNames}
\alias{inputNames<-}
\alias{inputNames<-.idframe}
@@ -9,7 +9,7 @@
\alias{outputNames<-.idframe}
\title{Extract or set series' names}
\usage{
-inputNames(x)
+inputNames(x) <- value
}
\arguments{
\item{x}{\code{idframe} object}