Skip to content

Commit

Permalink
contTables fix to translation
Browse files Browse the repository at this point in the history
Fixes #336
  • Loading branch information
jonathon-love authored Jan 27, 2022
1 parent a76aa03 commit 7a4e31d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions R/conttables.b.R
Original file line number Diff line number Diff line change
Expand Up @@ -528,8 +528,11 @@ contTablesClass <- R6::R6Class(
`v[rr]`=rr$rr,
`cil[rr]`=rr$lower,
`ciu[rr]`=rr$upper))
odds$addFootnote(rowNo=othRowNo, 'v[dp]', paste(self$options$compare, .('compared')))
odds$addFootnote(rowNo=othRowNo, 'v[rr]', paste(self$options$compare, .('compared')))

footnote <- `if`(self$options$compare == 'rows', .('Rows compared'), .('Columns compared'))
odds$addFootnote(rowNo=othRowNo, 'v[dp]', footnote)
odds$addFootnote(rowNo=othRowNo, 'v[rr]', footnote)

if (any(mat == 0)){
odds$addFootnote(rowNo=othRowNo, 'v[lo]', .('Haldane-Anscombe correction applied'))
odds$addFootnote(rowNo=othRowNo, 'v[o]', .('Haldane-Anscombe correction applied'))
Expand Down

0 comments on commit 7a4e31d

Please sign in to comment.