bind_and_index: Bind and index a ResultList

Description Usage Arguments Details

View source: R/bind_and_index.R

Description

Turn a list of data.frames (of different lengths and potentially empty) into a single indexed data.frame. Useful to process a ResultList from 'comprehendHTTP'.

Usage

1
bind_and_index(index, df_list)

Arguments

index

Vector of indices

df_list

List of data.frames to bind and index. Should NOT be a data.frame.

Details

'index' and 'df_list' should be the same length. An error is raised otherwise.

bind_and_index(1:2, list(data.frame(col = "a"), data.frame(col = "b")))

bind_and_index(1:3, list( data.frame(col = "a"), data.frame(), data.frame(c("b", "c"))))


cloudyr/aws.comprehend documentation built on March 25, 2020, 4:35 p.m.