Displaying 1 result from an estimated 1 matches for "user_brands".
2012 Nov 13
1
help formatting data for clustering
..., 43, 45
I'm looking for the right procedure to be able to cluster users. I am
especially interested to know which functions to use at each step.
I am currently able to load the data in a data frame, each row's name being
the user id.
#extract user brands, ie all collumn except the first
user_brands <- userclustering[,-1]
# extract user ids, ie the first column
user_ids <- userclustering[,1]
# set user ids as row name
row.names(user_brands) <- user_ids
But now I'm stuck replacing the brand ids by a count for each brand the
user ordered, all other brand counters being implicite...