Displaying 1 result from an estimated 1 matches for "hclustmethods".
Did you mean:
clustmethod
2000 Sep 14
1
dynamically naming columns in a data frame
...for the last couple of weeks and I am very
impressed with the capabilities. I am creating hundreds of tables and
need to dynamically name the columns.
Here is a small snippet of my code:
# Turn my clustering data into a data.frame object.
names( clusters ) <- Abbreviate( distMethods[ i ], hclustMethods[ j
] )
df <- data.frame( clusters, row.names = NULL, check.rows = FALSE,
check.names = TRUE )
If the formatting turned out properly, you should only see three lines
above, beginning with #, names, and df.
Abbreviate() returns a variable that contains a string (my
abbreviation). Using name...