you can use rowSums
rowSums(data)
should give you what you want.
More Related Contents:
- Reshape three column data frame to matrix (“long” to “wide” format) [duplicate]
- Split a large dataframe into a list of data frames based on common value in column
- Create dataframe from a matrix
- Change row order in a matrix/dataframe
- Last Observation Carried Forward In a data frame? [duplicate]
- Should I use a data.frame or a matrix?
- Select the row with the maximum value in each group
- How to subset matrix to one column, maintain matrix data type, maintain row/column names?
- Changing column names of a data frame
- How do I extract a single column from a data.frame as a data.frame?
- How to assign a unique ID number to each group of identical values in a column [duplicate]
- Rename multiple columns by names
- Named List To/From Data.Frame
- How to add a row to a data frame in R?
- Replace all particular values in a data frame
- Subtract a column in a dataframe from many columns in R
- Converting a data frame to xts
- Interpolate NA values in a data frame with na.approx
- How to delete columns that contain ONLY NAs?
- Merge rows in a dataframe where the rows are disjoint and contain NAs
- Randomly insert NAs into dataframe proportionaly
- How to delete rows where all the columns are zero
- R: Split unbalanced list in data.frame column
- Transposing a dataframe maintaining the first column as heading
- Select rows of a matrix that meet a condition
- Replace values in data frame based on other data frame in R
- Add an image to a table-like output in R
- How to remove rows of a matrix by row name, rather than numerical index?
- Convert all data frame character columns to factors
- What you can do with a data.frame that you can’t with a data.table?