It works now :) thank you! -- View this message in context: http://r.789695.n4.nabble.com/weighted-averages-for-two-variables-tp4630589p4630610.html Sent from the R help mailing list archive at Nabble.com.