data-raw/formatData.R

# twoPopulations
X=read.table('twoPopulations.txt',header=T)
twoPopulations=X[c(1:3,6:7)]
twoPopulations[twoPopulations==-9999] <- NA
save(twoPopulations,file='../data/twoPopulations.RData')

# Gaugings from the station 'Ardèche River at Sauze'
SauzeGaugings=read.table('SauzeGaugings.txt',header=T)
save(SauzeGaugings,file='../data/SauzeGaugings.RData')

# Gaugings from the station 'Ardèche River at Meyras'
MeyrasGaugings=read.table('MeyrasGaugings.txt',header=T)
save(MeyrasGaugings,file='../data/MeyrasGaugings.RData')
BaM-tools/RBaM documentation built on April 11, 2025, 10:01 p.m.