Skip to content

blockr.core

The framework itself ships a small set of essential blocks: datasets, file upload, simple transforms. Real analyses mostly use the packages below; these are the fallbacks that are always there.

data upload block

new_upload_block() · input

Upload data

dataset block

new_dataset_block() · input

Choose a dataset from a package

ArgumentDescription
datasetSelects the dataset to use.
packageR package to source the dataset from.

file browser block

new_filebrowser_block() · input

Browse local files

ArgumentDescription
file_pathPath of the selected file.

head/tail block

new_head_block() · transform

Data head/tail

ArgumentDescription
nNumber of rows to keep.
directionRow end to keep, either head (first) or tail (last).

merge block

new_merge_block() · transform

Joining or datasets

ArgumentDescription
byShared key column(s) to join on.
all_xKeep unmatched rows from the first input.
all_yKeep unmatched rows from the second input.

rbind block

new_rbind_block() · transform

Row-binding of datasets

subset block

new_subset_block() · transform

Row and column subsetting

ArgumentDescription
subsetLogical row-filter expression, as a string.
selectColumn-selection expression, as a string.

scatter plot block

new_scatter_block() · plot

Scatter plotting

ArgumentDescription
xColumn for the horizontal axis.
yColumn for the vertical axis.

csv parser block

new_csv_block() · utility

Read CSV file

ArgumentDescription
sepField separator character.
quoteQuoting character.

glue string block

new_glue_block() · utility

String interpolation using glue

ArgumentDescription
textTemplate string evaluated with glue::glue().