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
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