\HeaderA{otkvEnv2namedSparse}{obtain sparse matrix representation of key-value structures}{otkvEnv2namedSparse}
\aliasA{otkvList2namedSparse}{otkvEnv2namedSparse}{otkvList2namedSparse}
\keyword{models}{otkvEnv2namedSparse}
\begin{Description}\relax
obtain sparse matrix representation of key-value structures
\end{Description}
\begin{Usage}
\begin{verbatim}
otkvEnv2namedSparse(obs, tms, otkvEnv)
otkvList2namedSparse(obs, tms, otkvlist)
\end{verbatim}
\end{Usage}
\begin{Arguments}
\begin{ldescription}
\item[\code{obs}] obs: vector of object tags
\item[\code{tms}] tms: vector of terms to which objects are mapped
\item[\code{otkvEnv}] otkvEnv: environment encoding the key-value mapping
\item[\code{otkvlist}] otkvlist: list encoding the key-value mapping
\end{ldescription}
\end{Arguments}
\begin{Author}\relax
Vince Carey <stvjc@channing.harvard.edu>
\end{Author}
\begin{Examples}
\begin{ExampleCode}
otkvList2namedSparse(c("A","B","D","E"), letters[1:7], 
   list("A"=c("a","b"), "B"=c("b","d"),"E"="c"))
\end{ExampleCode}
\end{Examples}

