Learn R Programming

rKolada (version 0.2.3)

kpi_bind_keywords: Add keyword columns to a Kolada KPI table

Description

Identify n keywords describing the KPI and add them as new columns. Keywords are inferred from the title field of the table.

Usage

kpi_bind_keywords(kpi_df, n = 2, form = c("wide", "long"))

Value

A Kolada KPI metadata table

Arguments

kpi_df

A Kolada KPI metadata table, e.g. as created by get_kpi.

n

How many keyword columns should be added?

form

Can be either "wide" (default) or "long". Whether to return keywords as separate columns ("wide") or as separate rows, duplicating all other data ("long").

Examples

Run this code
if (kolada_available()) {
kpi_df <- get_kpi(id = c("N45933", "U28563")) %>%
  kpi_bind_keywords(n = 3)
}

Run the code above in your browser using DataLab