# NOT RUN {
#load data:
# a matrix with 12 rows, representing months (time)
# and 35 columns, representing cities (experiments)
mat=CanadianWeather$monthlyTemp
y=CanadianWeather$monthlyTemp[,"Resolute"]
#find a set of points that help predict the shape of the curve
# }
# NOT RUN {
a=findPathF2(c(1:12), y, mat, 5, numPerts=3) #make numPerts>=20 for real data
# }
# NOT RUN {
print(a) #indices of months to select for follow-up experiments
# }
# NOT RUN {
print(rownames(CanadianWeather$monthlyTemp)[a]) #month names selected
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab