12345678910111213141516171819202122232425262728293031 |
- % Generated by roxygen2: do not edit by hand
- % Please edit documentation in R/modifyData.R
- \name{sumWithNA}
- \alias{sumWithNA}
- \title{Sum columns in data frame df where some of the entries might be NA}
- \usage{
- sumWithNA(
- df,
- var1 = "lesionmtv41",
- var2 = "metastasesmtv41",
- outVar = "totalmtv41",
- valIfNA = 0
- )
- }
- \arguments{
- \item{df}{data frame}
- \item{var1}{first column}
- \item{var2}{second column}
- \item{outVar}{which variable to store sum into}
- \item{valIfNA}{which value to use for NA}
- }
- \value{
- updated data frame
- }
- \description{
- Sum columns in data frame df where some of the entries might be NA
- }
|