## continue the example from join
example(join)
## fit a MAT model
swap.mat <- mat(swapdiat, swappH, method = "SQchord")
## How many analogues gives lowest RMSE?
getK(swap.mat)
## note that this value was chosen automatically
## Now set k to be 10
getK(swap.mat) <- 10
## check
getK(swap.mat)
Run the code above in your browser using DataLab