group_by() takes an existing table and converts it into a grouped table where operations are performed "by group". ungroup() removes grouping. summarize() reduces multiple values down to a single value.

# S3 method for xpose_data
group_by(.data, ..., .problem, .source, .where)

# S3 method for xpose_data
ungroup(x, ..., .problem, .source, .where)

# S3 method for xpose_data
summarise(.data, ..., .problem, .source, .where)

# S3 method for xpose_data
summarize(.data, ..., .problem, .source, .where)

## Arguments

.data An xpose database object. Name-value pairs of expressions. Use NULL to drop a variable. These arguments are automatically quoted and evaluated in the context of the data frame. They support unquoting and splicing. See the dplyr vignette("programming") for an introduction to these concepts. The problem from which the data will be modified The source of the data in the xpdb. Can either be 'data' or an output file extension e.g. 'phi'. A vector of element names to be edited in special (e.g. .where = c('vpc_dat', 'aggr_obs') with vpc). Same as .data (used for consistency with dplyr functions).

## Examples

# Create a distribution plot of Cmax
xpdb_ex_pk %>%
group_by(ID, SEX, .problem = 1) %>%
summarize(CMAX = max(DV), .problem = 1) %>%
ungroup(.problem = 1) %>%
xplot_distrib(aes(x = CMAX, density_fill = SEX), type = 'dr')#> Using data from \$prob no.1
{"ft_lang_label":"__label__en","ft_lang_prob":0.6107316,"math_prob":0.95122564,"size":1334,"snap":"2019-43-2019-47","text_gpt3_token_len":365,"char_repetition_ratio":0.13157895,"word_repetition_ratio":0.075,"special_character_ratio":0.28485757,"punctuation_ratio":0.2804428,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9921988,"pos_list":[0,1,2],"im_url_duplicate_count":[null,2,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2019-11-21T06:51:38Z\",\"WARC-Record-ID\":\"<urn:uuid:3094f317-6f0d-40bd-b54a-c19dcf93f507>\",\"Content-Length\":\"13003\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:3444fe5c-ddb2-4a59-8176-b2c57f695155>\",\"WARC-Concurrent-To\":\"<urn:uuid:c190f4f7-40bb-4b65-808c-aae0e72d087f>\",\"WARC-IP-Address\":\"185.199.109.153\",\"WARC-Target-URI\":\"https://uupharmacometrics.github.io/xpose/reference/summarise_xpdb.html\",\"WARC-Payload-Digest\":\"sha1:BO6RSCWI6WPXZ2VSBWTHQKIBRDHYZT5C\",\"WARC-Block-Digest\":\"sha1:KOZ5BTHINLIOFLW37MAWR2H3NR7C5RFS\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2019/CC-MAIN-2019-47/CC-MAIN-2019-47_segments_1573496670731.88_warc_CC-MAIN-20191121050543-20191121074543-00176.warc.gz\"}"}