How can I calculate a weighted correlation between two variables in R? The command "cor" does not have a subcommand or option for weighting observations. Thanks! josu