Skip to content

Commit

Permalink
Correct unti2age
Browse files Browse the repository at this point in the history
  • Loading branch information
AgurtzaneUrtizberea committed Jul 3, 2024
1 parent 38cbb7c commit 048f1b4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/Auxiliary_Functions_Data_Manipulation.R
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ age2unit <- function(A,Q){
na <- Dim[1]
nu <- Dim[3]
ns <- Dim[4]
nmns <- as.numeric(dimnames(Q)[4])

if(dim(A)[1] == Dim[1]){
Q[] <- A
Expand All @@ -135,7 +136,7 @@ age2unit <- function(A,Q){
k1 <- k + pos
k0 <- 1:na

if(uu>ss){
if(uu> nmns){
k1 <- k1[-na]
k0 <- 2:na
}
Expand Down

0 comments on commit 048f1b4

Please sign in to comment.