unnest.tbl_kusto_abstract function

Unnest method for Kusto tables

Unnest method for Kusto tables

This method takes a list column and expands it so that each element of the list gets its own row. unnest() translates to Kusto's mv-expand operator.

## S3 method for class 'tbl_kusto_abstract' unnest( data, cols, ..., keep_empty = FALSE, ptype = NULL, names_sep = NULL, names_repair = NULL, .drop = NULL, .id = NULL, .sep = NULL, .preserve = NULL )

Arguments

  • data: A Kusto tbl.

  • cols: Specification of columns to unnest.

  • ...: : previously you could write df %>% unnest(x, y, z). Convert to df %>% unnest(c(x, y, z)). If you previously created a new variable in unnest() you'll now need to do it explicitly with mutate(). Convert df %>% unnest(y = fun(x, y, z))

    to df %>% mutate(y = fun(x, y, z)) %>% unnest(y).

  • keep_empty: Needed for agreement with generic. Not otherwise used. Kusto does not keep empty rows.

  • ptype: Needed for agreement with generic. Not otherwise used.

  • names_sep: Needed for agreement with generic. Not otherwise used.

  • names_repair: Needed for agreement with generic. Not otherwise used.

  • .drop: Needed for agreement with generic. Not otherwise used.

  • .id: Data frame identifier - if supplied, will create a new column with name .id, giving a unique identifier. This is most useful if the list column is named.

  • .sep: Needed for agreement with generic. Not otherwise used.

  • .preserve: Needed for agreement with generic. Not otherwise used.

  • Maintainer: Alex Kyllo
  • License: MIT + file LICENSE
  • Last published: 2023-10-12