R/l.represent.0-data.R

#' @title Logicopt truth table created from "represent.csv" dataset
#'
#' @description l.represent.0 is an logicopt compatible truth table generated 
#' from the QCA dataset "represent.csv" where output "WNP" is 0. 
#'
#' @docType data
#'
#' @usage data(l.represent.0)
#'
#' @format R data frame table 
#'
#' @keywords QCA datasets
#'
#' @source compass.org website and various QCA packages
#'
#' @examples
#' \dontrun{
#' # Read raw QCA dataset from csv file
#' inpath <- system.file("extdata/raw_qca/represent.csv", package="LogicOpt")
#' represent <- read.csv(inpath,row.names=1,na="")
#'
#' # Need to load a QCA package that contains truthTable function: (pick one)
#' # library(QCAGUI) 
#' # library(QCApro)
#'
#' # Create the QCA truth table 
#' q.represent.0 <- truthTable(represent, outcome = "WNP{0}")
#'
#' # Create the logicopt truth table
#' l.represent.0 <- QCAtt2LOtt(q.represent.0)
#' }
#'
#' # Load up truth table
#' data(l.represent.0)
#' 
#' # Optimize logicopt truth table  and print results
#' represent0 <- logicopt(l.represent.0,5,1,find_dc=TRUE,mode="multi-min")
#' print_multi_tt(represent0,eqn=TRUE,n_in=5,n_out=1,QCA=TRUE)
"l.represent.0"

Try the LogicOpt package in your browser

Any scripts or data that you put into this service are public.

LogicOpt documentation built on May 30, 2017, 5:08 a.m.