1 |
x |
data.frame or matrix with data. The last column is assumed to be the total column. |
... |
further arguments passed to |
col_fw |
corresponding column to add values with in case the computed sum is less than given by |
cols |
columns to be used to check the sum. It overrides |
1 2 3 4 5 | cpos <- getPosIndex(cnames = names(df1),
sc = "P15_1_1_1",
ec = "P15_1_5_2") # this (ec) is the column of "total"
x[, cpos] <- q15_1(x = df1, cPos = cpos,
nr = 5, nc = 2)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.