unnest.tbl_kusto_abstract: Unnest method for Kusto tables

View source: R/tbl.R

unnest.tbl_kusto_abstractR Documentation

Unnest method for Kusto tables

Description

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.

Usage

## 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.

...

[Deprecated]: 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.


AzureKusto documentation built on Oct. 12, 2023, 5:11 p.m.