Re: [R] summing "transfers"

2012-03-16 Thread Farley, Robert
iginal Message- From: Jeff Newmiller [mailto:jdnew...@dcn.davis.ca.us] Sent: Thursday, 15 March, 2012 19:34 To: Farley, Robert; R-help@r-project.org Subject: Re: [R] summing "transfers" Then save to a variable, and maybe then to a file? Are

Re: [R] summing "transfers"

2012-03-15 Thread Jeff Newmiller
Then save to a variable, and maybe then to a file? Are you wanting it in long form? You can use reshape if so. Note that a reproducible example and sample result always helps prompt more specific answers. --- Jeff Newmiller

[R] summing "transfers"

2012-03-15 Thread Farley, Robert
I have a dataframe from an On-Board Survey with weights ("expwgt") and variables for up to 8 used lines: VEH1 through VEH8. The lines are labeled "MT-..1" through "MT-902". I want to know how many transfers there are between MT-802 and MT-901. That is, when one of them is VEHx and the other is