Closed jrosen48 closed 7 months ago
@qinyun-lin could you look at this one, too?
Also this errors:
> my_table <- tibble::tribble(
+ ~unsuccess, ~success,
+ 35, 17,
+ 17, 38,
+ )
>
> pkonfound(two_by_two_table = my_table)
Error in `rownames<-`(`*tmp*`, value = c("Control", "Treatment")) :
attempt to set 'rownames' on an object with no dimensions> my_table <- tibble::tribble(
+ ~unsuccess, ~success,
+ 35, 17,
+ 17, 38,
+ )
>
> pkonfound(two_by_two_table = my_table)
Error in `rownames<-`(`*tmp*`, value = c("Control", "Treatment")) :
attempt to set 'rownames' on an object with no dimensions
should fix now. That is because when defining list, "=" should be kept to keep the name (cannot change to "<-" in this case).