search for: sd62

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

Did you mean: sd2
2009 Jan 14
3
Casting lists to data.frames, analog to SAS
...e the output of the analysis in a dataset for further manipulation. I have a data set with vote totals, with one column being the office name being voted on, and the other being the party of the candidate. My votes are in the column "vc.n". I did the analysis I want with: work <- by(sd62[,"vc.n"], sd62[,c("office.nm","party.abbr")], sum) the str() output of work looks like: > str(work) 'by' int [1:9, 1:11] NA 30 NA NA 0 0 0 NA 33 25678 ... - attr(*, "dimnames")=List of 2 ..$ office.nm : chr [1:9] "ATTORNEY GENERAL"...