Skip to contents

tp_data takes data and prepares it to be used by tp_treeppl().

Usage

tp_data(data_input)

Arguments

data_input

One of tree options:

  • The full path of the JSON file that contains the data, OR

  • A string with the name of a model supported by treepplr (see tp_model_names()), OR

  • A list (or structured list) containing TreePPL data.

Value

json data (S3), see tp_json() for further details.