search for: fourint

Displaying 1 result from an estimated 1 matches for "fourint".

Did you mean: fourints
2006 Nov 03
1
man page for as.matrix for data frames outdated?
...ata frames will be coerced to a logical matrix": > fourLogicals <- 2:5>3 > df1 <- data.frame(a=fourLogicals) > storage.mode(as.matrix(df1)) [1] "logical" Otherwise it's not true that 'as.matrix' will return a character matrix: > fourInts <- 2:-1 > df2 <- data.frame(a=fourLogicals, b=fourInts) > storage.mode(as.matrix(df2)) [1] "integer" > fourDoubles <- rep(pi,4) > df3 <- data.frame(c=fourDoubles, a=fourLogicals, b=fourInts) > storage.mode(as.matrix(df3)) [1] &quot...