0

I want to recreate the table of observed frequencies below in R as a data frame first and a table after as I want to manipulate the values after. The total column and row are just for completeness. Can someone help me do this?

My expected output with Group Indicator and Result Indicator as column names:

                 Result Indicator
  Group indicator Stroke No Stroke Total
  Aspirin group      300       400   700
  Placebo group      360       450   810
  Total              660       850  1510
Red
  • 47
  • 5

0 Answers0