-
Notifications
You must be signed in to change notification settings - Fork 0
/
createtable.R
32 lines (30 loc) · 916 Bytes
/
createtable.R
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
library(RSQLite)
db <- dbConnect(SQLite(), dbname="tmp8.sqlite")
dbSendQuery(db, "DROP TABLE if exists session")
dbSendQuery(db, "CREATE TABLE session(
sessionid INTEGER PRIMARY KEY, -- Autoincrement
configuration text,
iterations integer,
k integer,
type text,
distanceNeighbors integer,
probRewire real,
n integer,
step integer,
result text,
finalPercentages text,
seed text,
tb text,
decay real,
timeShock int,
lengthShock int,
sizeShock real,
percentShocked real,
winner integer,
winnerPercent real,
winnerLead real,
meanDistance real,
clusterCoeff real,
meanDegree real,
degreeDistribution text
)")