Gistlib Logo

gistlib

other r categories

nearest neighbors code snippets in r

split a time series data to windows of length 10. then for each window, find the closest 5 neighbors from past in r

gistlibby LogSnag