View source: R/matrixFunctions.R
project | R Documentation |
As with 'cosineSimilarity
project(matrix, vector)
matrix |
A matrix or VectorSpaceModel |
vector |
A vector (or object coercable to a vector) of the same length as the VectorSpaceModel. |
A new matrix or VectorSpaceModel of the same dimensions as 'matrix', each row of which is parallel to vector.
If the input is a matrix, the output will be a matrix: if a VectorSpaceModel, it will be a VectorSpaceModel.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.