Skip to content

Commit 08b8386

Browse files
committed
.
1 parent 9b752ff commit 08b8386

File tree

1 file changed

+23
-20
lines changed

1 file changed

+23
-20
lines changed

R/mastertable_generation.R

+23-20
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55

66

77

8+
pre_temp_1112 <- fread("~/Documents/temp_011_012.csv", sep=",", header=F, data.table=F)
89

10+
li_11 <- fread("~/Documents/heart_011.csv", sep=",", header=F, data.table=F)
911

1012

1113

@@ -18,36 +20,37 @@
1820

1921

2022

21-
master_table_v1 <- data.table(read.csv("~/Documents/snail_back_pack/experiments/snail_temperature_experiment/results/master_table.csv", header=T, na.strings=" "))
22-
master_table_v2 <- na.omit(master_table_v1[1:16])
23-
24-
25-
26-
27-
28-
pre_temp_1112 <- fread("~/Documents/temp_011_012.csv", sep=",", header=F, data.table=F)
29-
30-
li_11 <- fread("~/Documents/heart_011.csv", sep=",", header=F, data.table=F)
31-
li_12 <- fread("~/Documents/heart_012.csv", sep=",", header=F, data.table=F)
3223

3324

3425

26+
master_table_v1 <- data.table(read.csv("~/Documents/snail_back_pack/experiments/snail_temperature_experiment/results/master_table.csv", header=T, na.strings=" ", skip=1))
27+
master_table_v2 <- na.omit(master_table_v1[1:16])
3528

36-
s5_list <- list(li_11, li_12)
37-
s5_bound <- rbindlist(s5_list, use.names=T, fill=T)
3829

39-
df$min <- floor(df$t /60) + 1
40-
mins_of_interest_df <- subset(df, df$min %in% ref_df$min)
41-
list_of_mins <- split(mins_of_interest_df, mins_of_interest_df$min)
30+
heart_table <- sapply(master_table_v2$heart_file, fread("~/Documents/", sep=",", header=F, data.table=F))
31+
heart_table <- sapply(master_table_v2$heart_file, function(s){
32+
fread("~/Documents/"s, sep=",", header=F, data.table=F)
33+
})
4234

35+
DF1 <- NULL
36+
for(file in filecol){
37+
38+
newfile <- gsub("\\s", "", file)
39+
files <- read.csv(newfile, sep=",", header=F)
40+
DF1 <- rbind(DF1, files)
41+
}
4342

43+
filecol <- data.table(gsub("\\s", "", master_table_v2$heart_file))
4444

45-
apply_freq_meth(chunk=heterogeneous_df, interp_fun, fs=5)
4645

46+
heart_table <- sapply(filecol, read.csv)
4747

48-
heart_table <- sapply(master_table_v2$heart_file, fread("~/Documents/", sep=",", header=F, data.table=F))
4948

49+
files <- list.files(pattern="heart")
5050

51+
DF2 <- NULL
52+
for (f in files) {
53+
heart_data <- read.csv(f, header=F, sep=",")
54+
DF2 <- rbind(DF2, data.frame(heart_data))
55+
}
5156

52-
#Error in fread("~/Documents/", sep = ",", header = F, data.table = F) :
53-
#Opened file ok, obtained its size on disk (0.0MB), but couldn't memory map it. This is a 64bit machine so this is surprising. Please report to datatable-help.

0 commit comments

Comments
 (0)