-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathio.R
44 lines (24 loc) · 839 Bytes
/
io.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
33
34
35
36
37
38
39
40
41
42
library(readxl)
loadNormativeDataSet <- function(fullXlsFile, sheet){
data = read_excel(fullXlsFile, sheet = sheet ,col_names = TRUE)
return ( data )
}
constructTableFromXls <- function(fullXlsFiles, sheet){
# construit une dataframe a partir d une feuille de plusieurs ficheirs excel
table = data.frame()
for (xlsfile in fullXlsFiles){
data = read_excel(xlsfile, sheet = sheet ,col_names = TRUE)
table = rbind(table,data)
}
table$Index = seq(1,nrow(table))
return ( table )
}
constructGPSTableFromXls <- function(fullXlsFiles){
gpsTable = data.frame()
for (xlsfile in fullXlsFiles){
data = read_excel(xlsfile, sheet = "descriptive GPS ",col_names = TRUE)
gpsTable = rbind(gpsTable,data)
}
gpsTable$Index = seq(1,nrow(gpsTable))
return (gpsTable)
}