Extracts and returns statistics from a `tbl_cross`

object for
inline reporting in an R markdown document. Detailed examples in the
inline_text vignette

# S3 method for tbl_cross
inline_text(x, col_level = NULL, row_level = NULL, pvalue_fun = NULL, ...)

## Arguments

x |
a `tbl_cross` object |

col_level |
Level of the column variable to display. Default is `NULL`
Can also specify "`p.value` " for the p-value and "`stat_0` " for Total column. |

row_level |
Level of the row variable to display.
Can also specify the 'Unknown' row. Default is `NULL` |

pvalue_fun |
Function to round and format p-values.
Default is style_pvalue.
The function must have a numeric vector input (the numeric, exact p-value),
and return a string that is the rounded/formatted p-value (e.g.
`pvalue_fun = function(x) style_pvalue(x, digits = 2)` or equivalently,
`purrr::partial(style_pvalue, digits = 2)` ). |

... |
Not used |

## Value

A string reporting results from a gtsummary table

## See also

## Examples

#> [1] "28"

#> [1] "61"

#> [1] "p=0.7"