[Candisc-commits] candiscList - how to attach row names to scores

Hanna Wegener johanna.e.wegener at gmail.com
Fri Mar 27 18:00:31 CET 2015


I am using candiscList to calculate canonical scores for a multivariate
model. I would like to merge the scores with other data frames and therefor
it would be useful if the scores had the same row names as the original
data. Rows of the scores are currently continuously numbered. I tried the
usual row.names <- rownames(data) without success. Does anyone know how to
do it? Thanks.

Here is how I access the scores:

c <- candiscList(model, scores=TRUE)
d <- as.data.frame(c[["term"]]["scores"])
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/candisc-commits/attachments/20150327/84ffeb9c/attachment.html>


More information about the Candisc-commits mailing list