diff options
-rw-r--r-- | R/util.R | 7 | ||||
-rw-r--r-- | man/grapes-equals-grapes.Rd | 16 |
2 files changed, 23 insertions, 0 deletions
@@ -1,4 +1,11 @@ # Generic form +#' Multiple assignment operator +#' +#' Assign multiple variables from a list or function return object +#' +#' @param lhs,rhs the variables to be assingned, and the list or +#' function return object +#' #' @export '%=%' = function(l, r, ...) UseMethod('%=%') diff --git a/man/grapes-equals-grapes.Rd b/man/grapes-equals-grapes.Rd new file mode 100644 index 0000000..730860d --- /dev/null +++ b/man/grapes-equals-grapes.Rd @@ -0,0 +1,16 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/util.R +\name{\%=\%} +\alias{\%=\%} +\title{Multiple assignment operator} +\usage{ +l \%=\% r +} +\arguments{ +\item{lhs, rhs}{the variables to be assingned, and the list or +function return object} +} +\description{ +Assign multiple variables from a list or function return object +} + |