Skip to content
Prev 226934 / 398500 Next

Data format question for triangle.plot package ade4

On Jul 8, 2010, at 4:41 PM, Steve_Friedman at nps.gov wrote:

            
Did that "dat" object have what you wanted? The function call did not  
make any reference to SoilVegHydro. What does str(dat) return? Oh,  
never mind, I now see you use attach.
Generally row.names is used on a dataframe rather than on a column  
vector.

 > dat <- data.frame(1:3, LETTERS[1:3])
 > row.names(dat$X1)
 > row.names(dat)
[1] "1" "2" "3"
 > length(row.names(dat$X1))
[1] 0
David Winsemius, MD
West Hartford, CT