loadData: Loads dataset into a DataSet object

Description Usage Arguments Value Note Author(s) Examples

Description

Prompts user for file containing dataset and creates a DataSet object

Usage

1
loadData(data_table, file=FALSE)

Arguments

data_table

One-way R table

file

Boolean value, set to true to use dataset from file, false to use data_table

Value

ds

DataSet object

Note

Should be called after mgm_init() File containing dataset must be a .txt tab-delimited file. The first row must contain the names of the variables and the remaining rows must contain the values of the variables.

Author(s)

Neha Abraham, Panagiotis Benos

Examples

1
2
3
4
library(rJava)
mgm_init()
ds <- loadData(file=TRUE) # to load dataset from file
ds <- loadData(data_table) # to load dataset from table

causalMGM documentation built on May 2, 2019, 5:42 a.m.