Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>The functions you're looking for are in the 'slam' package. Since 'slam' is only imported and isn't a dependency it takes a little bit of work to view the documentation. Here is an example session of how one might go about figuring that out and looking at the documentation.</p> <pre><code>&gt; # I'm assuming you loaded tm first &gt; library(tm) &gt; # See if we can view the code &gt; col_sums Error: object 'col_sums' not found &gt; # Use getAnywhere to grab the function even if the function is &gt; # in a namespace that isn't exported &gt; getAnywhere("col_sums") A single object matching ‘col_sums’ was found It was found in the following places namespace:slam with value function (x, na.rm = FALSE, dims = 1, ...) UseMethod("col_sums") &lt;environment: namespace:slam&gt; &gt; # So the function is in the slam package &gt; slam::col_sums function (x, na.rm = FALSE, dims = 1, ...) UseMethod("col_sums") &lt;environment: namespace:slam&gt; &gt; # We can tell help to look in the slam package now that we know &gt; # where the function is from &gt; help(col_sums, package = "slam") &gt; # alternatively &gt; library(slam) &gt; ?col_sums &gt; # If we want to view the actual code for col_sums we need to &gt; # do a little work too &gt; methods("col_sums") [1] col_sums.default* col_sums.simple_triplet_matrix* Non-visible functions are asterisked &gt; # We probably want the default version? Otherwise change to the other one &gt; getAnywhere("col_sums.default") A single object matching ‘col_sums.default’ was found It was found in the following places registered S3 method for col_sums from namespace slam namespace:slam with value function (x, na.rm = FALSE, dims = 1, ...) base:::colSums(x, na.rm, dims, ...) &lt;environment: namespace:slam&gt; </code></pre> <p>So the <code>col_sums</code> function is just a wrapper for the base function colSums.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload