Skip to contents

Print a grouped tidymatrix

Usage

# S3 method for class 'grouped_tidymatrix'
print(x, ...)

Arguments

x

A grouped_tidymatrix object

...

Additional arguments (currently unused)

Value

x, invisibly.

Examples

library(dplyr, warn.conflicts = FALSE)
tm <- tidymatrix(big5_responses, big5_respondents, big5_items)

tm |>
  activate(rows) |>
  group_by(country) |>
  print()
#> # A grouped tidymatrix: 400 x 30 matrix
#> # Groups: country
#> # Number of groups: 6
#> # Active: rows
#> #
#> # Row data: 400 rows x 8 columns
#> # Column data: 30 rows x 5 columns
#> #
#> # Active data (rows):
#> # A tibble: 6 × 8
#> # Groups:   country [2]
#>   respondent_id   age gender education occupation     country life_satisfaction
#>   <chr>         <int> <chr>  <fct>     <chr>          <chr>               <int>
#> 1 R001             52 Female Secondary Service/Manual EE                      8
#> 2 R002             32 Female Master    Office         FI                      4
#> 3 R003             66 Male   Bachelor  Office         EE                      6
#> 4 R004             42 Male   Bachelor  Professional   EE                      9
#> 5 R005             48 Female Secondary Office         FI                      8
#> 6 R006             62 Female Basic     Service/Manual EE                      4
#> # ℹ 1 more variable: completion_min <dbl>