# NOT RUN {
#load data:
#matrix with 12 rows, representing months (time)
#and 35 columns, representing cities (experiments)
mat=CanadianWeather$monthlyTemp
#find a set of points that help predict the shape of the curve:
# }
# NOT RUN {
a=findPathF1(c(1:12), 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