Description Usage Arguments Value
Creates indices from a set of columns in a dataframe using a given row number, or vector of values, as the baseline and adds them to the dataframe.
1 2 3 4 5 6 7 8 9 |
data |
A dataframe containing columns of numerical data to be expressed as indices. |
from |
The number or name of the column from which indices are calculated. The default is 2, assuming one column for row labels. Use 1 if there are no preceding data columns. |
to |
The number or name of the column to which indices are calculated. The default is ncol(data), which means indices are calculated across all remaining columms in the dataframe. |
base |
The baseline value of the created index. The default is 100. The base must be a positive number greater than zero. |
baserow |
The number of the row to be used as the baseline for
calculating the indices. The default is 1. The baseline row must contain
no zero values. This argument is ignored if the base values are set
explicitly with |
basevals |
Specifies explicitly the values to use as the baseline when
calculating the indices. Use this if the baseline values to be used are not
represented in any given row. The default is NULL, which means the
function will use the values in the |
prefix |
A string prefix to add to the column names to identify their index equivalents. The default is "ix_". |
The input data with additional columns containing indices for
columns specified by from
and to
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.