search for: family2

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

Did you mean: family
2003 Jul 08
3
Characters and Numeric Values in One Matrix
...10,41,8,1) Now he wants to have 2 columns in a matrix which should look like this: "Marge" 38 "Lisa" 10 "Homer" 41 "Bart" 8 "Maggie" 1 I thought about using either: family1 <- matrix(c(names, ages), ncol=2, byrow=FALSE) or family2 <- data.frame(names,ages) but this simply transformed either the numeric into character values (family1) or the character values into factor levels (family2) Anyone here who can give us some advice on this? We are using R 1.7.0 on Windows NT. Thanks, Roland