[R] Document Term Matrix

2018-01-05 Thread Elahe chalabi via R-help
Hi, Does anyone know what is maximal term length in Document Term Matrix? <> Non-/sparse entries: 8081/210709 Sparsity : 96% Maximal term length: 12 Weighting : term frequency (tf) Thanks for any help! Elahe __ R-help@r-project.org

Re: [R] Document Term Matrix will not maintain decimal places of numbers or capture all terms

2017-03-15 Thread Sarah Goslee
This question is a strong argument for not posting in HTML. I at least cannot make sense out of the example. It's also a strong argument for providing a small reproducible example using dput() to provide data. Someone is more likely to be able to help if we don't have to guess what you meant. Sa

[R] Document Term Matrix will not maintain decimal places of numbers or capture all terms

2017-03-14 Thread Will Ebert
Before I updated my version of RStudio (1.0.136), everything worked great. With the update something has changed with Document Term Matrix in the 'tm' package. I want to create a dtm, but with numbers. For instance if I have a .csv with one column as shown below: x1.0111.21123.35212.11 I want the