Learn R Programming

causalMGM (version 0.1.1)

loadData: Loads dataset into a DataSet object

Description

Prompts user for file containing dataset and creates a DataSet object

Usage

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

Examples

Run this code
# NOT RUN {
library(rJava)
mgm_init()
# }
# NOT RUN {
ds <- loadData(file=TRUE) # to load dataset from file
# }
# NOT RUN {
ds <- loadData(data_table) # to load dataset from table
# }

Run the code above in your browser using DataLab