|
5 | 5 |
|
6 | 6 |
|
7 | 7 |
|
| 8 | +pre_temp_1112 <- fread("~/Documents/temp_011_012.csv", sep=",", header=F, data.table=F) |
8 | 9 |
|
| 10 | +li_11 <- fread("~/Documents/heart_011.csv", sep=",", header=F, data.table=F) |
9 | 11 |
|
10 | 12 |
|
11 | 13 |
|
|
18 | 20 |
|
19 | 21 |
|
20 | 22 |
|
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) |
32 | 23 |
|
33 | 24 |
|
34 | 25 |
|
| 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]) |
35 | 28 |
|
36 |
| -s5_list <- list(li_11, li_12) |
37 |
| -s5_bound <- rbindlist(s5_list, use.names=T, fill=T) |
38 | 29 |
|
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 | +}) |
42 | 34 |
|
| 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 | +} |
43 | 42 |
|
| 43 | +filecol <- data.table(gsub("\\s", "", master_table_v2$heart_file)) |
44 | 44 |
|
45 |
| -apply_freq_meth(chunk=heterogeneous_df, interp_fun, fs=5) |
46 | 45 |
|
| 46 | +heart_table <- sapply(filecol, read.csv) |
47 | 47 |
|
48 |
| -heart_table <- sapply(master_table_v2$heart_file, fread("~/Documents/", sep=",", header=F, data.table=F)) |
49 | 48 |
|
| 49 | +files <- list.files(pattern="heart") |
50 | 50 |
|
| 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 | +} |
51 | 56 |
|
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