Description Usage Arguments Examples
Replaces all NAs with a specified replacement in a column that has "string" in its name
| 1 | sumCertainCols(x, id.col = "Week", search.string, onlyTotal)
 | 
| x | data.table. | 
| id.col | Character. ID column to index the output. | 
| search.string | Character. A string that is in the target column name. | 
| onlyTotal | Logical. TRUE = vector of summed columns, FALSE = column appended and returned with original data.table | 
| 1 2 3 | sumCertainCols(data.table::data.table(iris), id.col = "Species", search.string = "Petal", onlyTotal = FALSE)
sumCertainCols(data.table::data.table(iris), id.col = "Species", search.string = "Petal", onlyTotal = TRUE)
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.