SCM

SCM Repository

[tm] View of /trunk/tm/man/dissimilarity-methods.Rd
ViewVC logotype

View of /trunk/tm/man/dissimilarity-methods.Rd

Parent Directory Parent Directory | Revision Log Revision Log


Revision 763 - (download) (as text) (annotate)
Wed Jul 11 11:56:44 2007 UTC (12 years, 2 months ago) by feinerer
File size: 1192 byte(s)
Changed from cba to new proxy package for computing (dis)similarities.
\name{dissimilarity-methods}
\docType{methods}
\alias{dissimilarity}
\alias{dissimilarity-methods}
\alias{dissimilarity,TermDocMatrix,ANY,character-method}
\alias{dissimilarity,TextDocument,TextDocument,character-method}
\title{Methods for Function dissimilarity in Package `tm'}
\description{
Methods for function \code{dissimilarity} in package \pkg{tm}.
}
\section{Methods}{
  \describe{
    \item{x = "TermDocMatrix", y = "ANY", method = "character"}{Computes the
      dissimilarity between the documents in \code{x}
      with the distance measure \code{method}. Any method accepted by
      \code{dist} from package \pkg{proxy} can be passed over.

      Formally the dissimilarity is returned in form of a \code{dist}
      object.
    }

    \item{x = "TextDocument", y = "TextDocument", method =
      "character"}{Computes the dissimilarity between \code{x} and \code{y}
      with the distance measure \code{method}. Any method accepted by
      \code{dist} from package \pkg{proxy} can be passed over.}
  }
}
\examples{
data("crude")
tdm <- TermDocMatrix(crude)
dissimilarity(tdm, method = "cosine")
dissimilarity(crude[[1]], crude[[2]], method = "eJaccard")
}
\keyword{methods}

root@r-forge.r-project.org
ViewVC Help
Powered by ViewVC 1.0.0  
Thanks to:
Vienna University of Economics and Business Powered By FusionForge