Skip to content

Commit 27c8c58

Browse files
committed
[FIX] no header on tmp csv(#89) [skip travis-ci]
1 parent 31809d8 commit 27c8c58

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

cdt/causality/graph/R_templates/CCDr.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
library(sparsebn)
2525
library(MASS)
2626

27-
dataset <- read.csv(file='{FOLDER}{FILE}', sep=",");
27+
dataset <- read.csv(file='{FOLDER}{FILE}', header=FALSE, sep=",");
2828
dat <- sparsebnData(as.matrix(dataset), type = "c");
2929
estDAG <- estimate.dag(data = dat);
3030

cdt/causality/graph/R_templates/cam.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323

2424
library(CAM)
2525

26-
dataset <- read.csv(file='{FOLDER}{FILE}', sep=",");
26+
dataset <- read.csv(file='{FOLDER}{FILE}', header=FALSE, sep=",");
2727
estDAG <- CAM(dataset, scoreName = "{SCORE}", numCores = {NJOBS}, output = {VERBOSE},
2828
variableSel = {VARSEL}, variableSelMethod = {SELMETHOD}, pruning = {PRUNING},
2929
pruneMethod = {PRUNMETHOD}, pruneMethodPars = list(cutOffPVal = {CUTOFF}))

cdt/causality/graph/R_templates/ges.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
library(methods)
2424
library(pcalg)
2525

26-
dataset <- read.csv(file='{FOLDER}{FILE}', sep=",");
26+
dataset <- read.csv(file='{FOLDER}{FILE}', header=FALSE, sep=",");
2727

2828
if({SKELETON}){
2929
fixedGaps <- read.csv(file='{FOLDER}{GAPS}', sep=",", header=FALSE) # NULL

cdt/causality/graph/R_templates/gies.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
library(methods)
2424
library(pcalg)
2525

26-
dataset <- read.csv(file='{FOLDER}{FILE}', sep=",");
26+
dataset <- read.csv(file='{FOLDER}{FILE}', header=FALSE, sep=",");
2727

2828
if({SKELETON}){
2929
fixedGaps <- read.csv(file='{FOLDER}{GAPS}', sep=",", header=FALSE) # NULL

cdt/causality/graph/R_templates/lingam.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,6 @@
2222

2323
library(pcalg)
2424

25-
dataset <- read.csv(file='{FOLDER}{FILE}', sep=",");
25+
dataset <- read.csv(file='{FOLDER}{FILE}', header=FALSE, sep=",");
2626
estDAG <- lingam(dataset, verbose = {VERBOSE})
2727
write.csv(as.matrix(estDAG$Bpruned),row.names = FALSE, file = '{FOLDER}{OUTPUT}');

cdt/causality/graph/R_templates/pc.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ runPC <- function(X, suffStat, parentsOf, alpha, variableSelMat, setOptions,
7474
list(resList = result, resMat = pcmat)
7575
}
7676

77-
dataset <- read.csv(file='{FOLDER}{FILE}', sep=",");
77+
dataset <- read.csv(file='{FOLDER}{FILE}', header=FALSE, sep=",");
7878

7979
variableSelMat = {SELMAT} # NULL
8080
directed = {DIRECTED} # TRUE

0 commit comments

Comments
 (0)