Skip to content

Commit

Permalink
Update input_functions.R
Browse files Browse the repository at this point in the history
According to issue.
  • Loading branch information
nmueller18 authored Feb 18, 2024
1 parent 1bb5cea commit 35f1227
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions R/input_functions.R
Original file line number Diff line number Diff line change
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 35f1227

Please sign in to comment.