Skip to content

Commit

Permalink
testing setNames
Browse files Browse the repository at this point in the history
  • Loading branch information
jfree-man committed Mar 19, 2024
1 parent 368c7d9 commit 5bc7161
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions misc/experiments/defaults/simulator_defaults.R
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@ names(state_matrix)
# has names in dimnames[[2]]
dimnames(state_matrix)
# errors
setNames(state_matrix, names(sir_defaults))
names(state_matrix)
sim_data(state_matrix)

#3b. as.matrix, and manually setting names and dimnames - this errors
Expand Down

0 comments on commit 5bc7161

Please sign in to comment.