# NOT RUN {
## The function requires to set some external arguments.
# In the GSLIB file, used as example, the measurements of PM10 in 13 rural
# background monitoring stations, in the period 2005-2006 (730 days), are
# stored. The information required to load the dataset concern:
# - the file name and its extension: PM10data.txt
# - the number of variables in the file: 6
# - the code of missing values: -999
# - the column in which the x coordinates are stored: 1
# - the column in which the y coordinates are stored: 2
# - the number of different spatial points: 13
# - the availability of an identification id for all the spatial points: y
# - the column in which the time coordinates are stored: 5
# - the number of temporal observations for each spatial point: 730
# - the column in which the values of the variable are stored: 6
# The user could choose to save the data as STFDF (option 1) or dataframe
# (option 2). If the option 1 will be choosen, it is also necessary to specify:
# - the Start Date: 2005-01-01
# - the interval of time between two temporal observations: day
# To run the example, paste and copy the following lines
# (without the symbol '#') in the console
#
#datafile <- dataprep()
#PM10data.txt
# 5
#-999
#1
#2
#13
#y
#4
#730
#5
#1
#2005-01-01
#day
# }
Run the code above in your browser using DataLab