Re: [R] dataframes of unequal size

2005-07-19 Thread Liaw, Andy
Seems like no one had responded to this one yet, so I'll take a stab: ## Generate some bogus data: set.seed(45) dat - cbind(expand.grid(LETTERS[1:2], 1:3), round(runif(6), 2)) names(dat) - c(state, psu, weight) dat2 - data.frame(state=sample(c(A, B), 100, replace=TRUE),

[R] dataframes of unequal size

2005-07-18 Thread Renuka Sane
I have two dataframes C and C1. Each has three columns viz. state, psu and weight. The dataframes are of unequal size i.e. C1 could be 2/25/50 rows and C has 42000 rows. C1 is the master table i.e. C1$state, C1$psu and C1$weight are never the same. ThisA. P., Urban, 0 is not so for C. For