\HeaderA{eval.js}{A JAVASCRIPT-LIKE EVAL FUNCTION}{eval.js}
\keyword{methods}{eval.js}
\begin{Description}\relax
This function evaluates expressions.
\end{Description}
\begin{Usage}
\begin{verbatim}
eval.js(expr,
        envir=parent.frame(),
        enclos=if(is.list(envir)||is.pairlist(envir)) parent.frame())
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{expr}] character string of an expression to evaluate
\item[\code{envir}] passed to eval function. see eval
\item[\code{enclos}] passed to eval function. see eval
\end{ldescription}
\end{Arguments}
\begin{Details}\relax
Wrapper to the eval functions from the R base package. Evaluates
character expression.
\end{Details}
\begin{Value}
will return the evaluated expression
\end{Value}
\begin{Note}\relax
uses function eval from base package
\end{Note}
\begin{Author}\relax
James Java
\end{Author}
\begin{References}\relax
R base package function eval
\end{References}
\begin{SeeAlso}\relax
\code{eval}
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}

df = list()
df$a = rep(1,5)
df$b = rep("one",5)
df = as.data.frame(df)

#for comparison view
df

eval.js("df$new = NA")
df

 
\end{ExampleCode}
\end{Examples}

