Skip to content

Commit

Permalink
Merge pull request #65 from ISAAKiel/group_na
Browse files Browse the repository at this point in the history
Update input_functions.R
  • Loading branch information
chrinne committed Feb 22, 2024
2 parents 1bb5cea + 35f1227 commit 4dc067e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions R/input_functions.R
Expand Up @@ -133,6 +133,7 @@ prep.life.table=function(x, dec = NA, agebeg, ageend = NA, group = NA, method =
if(!is.na(group)){
# Change the names of group for further processes to "Group".
names(asd)[which(names(asd)==group)]="Group"
if (any(is.na(asd$Group))){stop("NA in grouping variable not allowed.")}

# Create a dataframe (restab) filled with zeros,
# with the column count of the grouping columns (+2)
Expand Down

0 comments on commit 4dc067e

Please sign in to comment.