Skip to content

Instantly share code, notes, and snippets.

@Hugoberry
Last active September 1, 2017 11:35
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save Hugoberry/2d4c1fd260dd785c7b79e73d9f393272 to your computer and use it in GitHub Desktop.
Save Hugoberry/2d4c1fd260dd785c7b79e73d9f393272 to your computer and use it in GitHub Desktop.
R flavoured Kmeans algorithm in Power Query
let
RScript = R.Execute("set.seed(20)#(lf)irisCluster<-kmeans(iris[,3:4],3,nstart=20)#(lf)iris$cluster<-irisCluster$cluster"),
out = RScript{[Name="iris"]}[Value]
in
out
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment