Skip to content
Prev 239820 / 398500 Next

Clustering

On Oct 29, 2010, at 11:37 AM, dpender wrote:

            
Still no code?
Those values are in an attribute:

? attribute
? attr

Your specific request may (perhaps) be addressed by something like:

attrnames <- attr(objname["cluster1"], "names")
attrnames[c(1, length(attrnames)]

I don't really think this is optimal. For one thing it won't  
generalize to the rest of the clusters. Generally when data are put  
into an attribute, the programmer also provides an extraction  
function. Since Nabble posters are prone to not retaining thread  
context, the name of your function and package are probably elsewhere  
further up the thread but not available as I read this on a mail- 
client. Perhaps if you read more of the documentation? (Just a guess.)
Those would be character values and, if you want to do calculations,  
would obviously need to be coerced to numeric.
David Winsemius, MD
West Hartford, CT