Quantcast
Channel: Teradata Forums - All forums
Viewing all articles
Browse latest Browse all 27759

TeradataR Question about kemans analysis - response (2) by toddb

$
0
0

Actually the td.kmeans function takes a td.data.frame as input and td.data.frames can be used almost identically to a regular R data.frame.  cbind won't work because it doesn't know about td.data.frames.  You can use the following:
td.kmeans(test[1:2])                      //Use first two columns
OR
td.kmeans(test[c('col1','col2')])    //Use columns named col1 and col2
 
 


Viewing all articles
Browse latest Browse all 27759

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>