Take data frame input and calculate the sum of values in each column or row.

protein_prosum(data, margin = 2)

Arguments

data

Data frame of numeric values for which to calculate sum

margin

Numeric 1 for row 2 for column.