-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsearch_with_r.r
More file actions
26 lines (26 loc) · 812 Bytes
/
search_with_r.r
File metadata and controls
26 lines (26 loc) · 812 Bytes
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
# Add the experiments numbers that you wish to load.
number <- c(35)
# What experiments are run
shortName <- c("TH","HC","CC")
# Select some loading.
anotherTypeFolder <- c("000W","025W","050W","075W","100W","125W")
titles <- character()
for (i in 1:length(number)) {
filePath=file.path(path="data",number[i])
if (file.exists(filePath)) {
for(j in 1:length(number)){
for(k in 1:length(shortName)) {
filePathCurves=file.path(path="data",number[i],shortName[j],
anotherTypeFolder[k])
if(file.exists(filePathCurves)){
name <- paste("Number:",number[i]," shortName:",shortName[j],"
methode:",anotherTypeFolder[k], sep="")
titles <- c(titles, name)
}
}
}
print(titles)
} else {
print("Can't find the experiment folder")
}
}