\HeaderA{presCall-methods}{Get/Set Present Call Values}{presCall.Rdash.methods}
\aliasA{presCall}{presCall-methods}{presCall}
\aliasA{presCall<\Rdash}{presCall-methods}{presCall<.Rdash.}
\aliasA{pvalData}{presCall-methods}{pvalData}
\aliasA{pvalData-methods}{presCall-methods}{pvalData.Rdash.methods}
\aliasA{pvalData<\Rdash}{presCall-methods}{pvalData<.Rdash.}
\keyword{methods}{presCall-methods}
\begin{Description}\relax
Get/set present call values from/for class \code{CallTreeSet}.

\emph{Usage}

\code{presCall(object)} \\
\code{presCall(object, treenames = NULL) <- value} \\
\\
\code{pvalData(object)} \\
\code{pvalData(object, treenames = NULL) <- value}
\end{Description}
\begin{Arguments}
\begin{ldescription}
\item[\code{object}] object of class \code{\LinkA{CallTreeSet}{CallTreeSet.Rdash.class}}.
\item[\code{treenames}] \code{character} vector containing optional tree names to be used as subset.
\item[\code{value}] \code{data.frame} containing present call values.
\end{ldescription}
\end{Arguments}
\begin{Details}\relax
Get the p-values from slot \code{data} or present calls from slot \code{detcall},
or set slot \code{data} or \code{detcall}, respectively, to \code{value}.

Method \code{presCall} returns the present calls from slot \code{detcall} as \code{data.frame},
while replacement method \code{presCall<-} allows to replace slot \code{detcall} with a
\code{data.frame}.

Method \code{pvalData} returns the p-values from slot \code{data} as \code{data.frame},
while replacement method \code{pvalData<-} allows to replace slot \code{data} with a
\code{data.frame}.

In order to create an \code{CallTreeSet} containing only a subset of e.g. slot \code{data}, first
export slot \code{data} using method \code{pvalData}, create a \code{character} vector containing
only \code{treenames} to be used in the subset, and then use replacement method \code{pvalData<-}
to replace slot \code{data} with the subset. Slots \code{treenames} and \code{numtrees} will be
updated automatically for \code{pvalData<-} but not for \code{presCall<-}.

Note: When creating \code{character} vector \code{treenames} it is sufficient to use the name
part of the tree name w/o the extension.

Note: If you do not want to replace your current object, create first a copy of type
\code{CallTreeSet} by simply writing \code{newobj <- oldobj}, and use \code{newobj} for
replacement.
\end{Details}
\begin{Author}\relax
Christian Stratowa
\end{Author}
\begin{SeeAlso}\relax
\code{\LinkA{exprs}{exprs}}
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
## Not run: 
## load ROOT scheme file and ROOT data file
scheme.test3 <- root.scheme(paste(.path.package("xps"),"schemes/SchemeTest3.root",sep="/"))
data.test3 <- root.data(scheme.test3, paste(.path.package("xps"),"rootdata/DataTest3_cel.root",sep="/"))

## create an CallTreeSet
call.mas5 <- mas5.call(data.test3,"tmp_TestMAS5Call",tmpdir="",verbose=FALSE)

## get p-values
value <- pvalData(call.mas5)

## selected treenames only
treenames <- c("TestA2", "TestB1")

## make a copy of your object if you do not want to replace it
subset.call <- call.mas5

## replace slot data with subset
exprs(subset.call, treenames) <- value
str(subset.call)
## End(Not run)
\end{ExampleCode}
\end{Examples}

