Skip to content
Prev 377675 / 398502 Next

Help with K-Means output

Thank you David I will try that as well.

WHP

From: David L Carlson <dcarlson at tamu.edu>
Sent: Saturday, December 8, 2018 11:12 AM
To: Bert Gunter <bgunter.4567 at gmail.com>; Bill Poling <Bill.Poling at zelis.com>
Cc: R-help <r-help at r-project.org>
Subject: RE: [R] Help with K-Means output

You should also read the manual page for ?split and learn how to work with lists:

# Split the data according to cluster membership
# to create a list of data frames
rr0.clus <- split(rr0, rr0a$cluster)

# The data frame for cluster 1:
rr0.clus[[1]]

--------------------------------------------------------
David L. Carlson
Department of Anthropology
Texas A&M University

-----Original Message-----
From: R-help [mailto:r-help-bounces at r-project.org] On Behalf Of Bert Gunter
Sent: Saturday, December 8, 2018 9:46 AM
To: mailto:Bill.Poling at zelis.com
Cc: R-help <mailto:r-help at r-project.org>
Subject: Re: [R] Help with K-Means output

Please see ?kmeans and note the "cluster" component of the returned value
that would appear to provide the info you seek.

-- Bert

Bert Gunter

"The trouble with having an open mind is that people keep coming along and
sticking things into it."
-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip )
On Sat, Dec 8, 2018 at 7:03 AM Bill Poling <mailto:Bill.Poling at zelis.com> wrote:

            
______________________________________________
mailto:R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Confidentiality Notice This message is sent from Zelis. ...{{dropped:13}}