Last active
September 1, 2017 11:35
-
-
Save Hugoberry/2d4c1fd260dd785c7b79e73d9f393272 to your computer and use it in GitHub Desktop.
R flavoured Kmeans algorithm in Power Query
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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