\HeaderA{compare.filters}{Compares two filters.}{compare.filters}
\keyword{attribute}{compare.filters}
\begin{Description}\relax
Compares two filters (such as those returned from \code{\LinkA{filter.select}{filter.select}}). This function returns TRUE is they are the same otherwise returns FALSE.
\end{Description}
\begin{Usage}
\begin{verbatim}compare.filters(f1,f2)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{f1}] Filter, such as that returned by \code{\LinkA{filter.select}{filter.select}} 
\item[\code{f2}] Filter, such as that returned by \code{\LinkA{filter.select}{filter.select}} 
\end{ldescription}
\end{Arguments}
\begin{Details}\relax
A very simple function. It only needs to check that the \code{family} and \code{filter.number} components of the filter are the same.
\end{Details}
\begin{Value}
If \code{f1} and \code{f2} are the same the function returns TRUE, otherwise it returns FALSE.
\end{Value}
\begin{Section}{RELEASE}
Version 3.9 Copyright Guy Nason 1998
\end{Section}
\begin{SeeAlso}\relax
\code{\LinkA{filter.select}{filter.select}}.
\end{SeeAlso}
\begin{Examples}
\begin{ExampleCode}
#
# Create three filters!
#
#filt1 <- filter.select(4, family="DaubExPhase")
#filt2 <- filter.select(3, family="DaubExPhase")
#filt3 <- filter.select(4, family="DaubLeAsymm")
#
# Now let us see if they are the same...
#
#compare.filters(filt1, filt2)
# [1] FALSE
#compare.filters(filt1, filt3)
# [1] FALSE
#compare.filters(filt2, filt3)
# [1] FALSE
#
# Nope, (what a surprise) they weren't. How about
#
#compare.filters(filt1, filt1)
# [1] TRUE
#
# Yes, they were the same!
\end{ExampleCode}
\end{Examples}

