Skip to content

Instantly share code, notes, and snippets.

@aloth
Created December 22, 2016 09:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aloth/5cfab42660267e45424161d92c8fc551 to your computer and use it in GitHub Desktop.
Save aloth/5cfab42660267e45424161d92c8fc551 to your computer and use it in GitHub Desktop.
SCRIPT_INT('
kmeans(data.frame(.arg1,.arg2,.arg3),' + STR([Cluster Amount]) + ')$cluster;
',
SUM([Sales]), SUM([Profit]), SUM([Quantity]))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment