Altair® Panopticon

 

Example code in R

File: my_transform_code.R

# minimal example function add_one = function(df, colname) { df[colname] = df[colname]+1 return(df) }

Panopticon R transform window code:

source(file.path("{my_R_code_path}","my_transform_code.R")) # data set is loaded in dataframe named ‘my_data_frame’ add_one(df = my_data_frame, colname = "my_column_name") # the function returns a data frame # which is picked up by Panopticon