On Tue, Nov 29, 2016 at 12:39 PM, David Winsemius <dwinsem...@comcast.net> wrote: > > > The other option would be to load dplyr first (which would give the waring > that stats::lag was masked) and then later load plm (which should give a > further warning that dplyr::lag is masked). Then the plm::lag function will > be found first.
There isn't a plm::lag function; the desired function is stats::lag It matters whether dplyr is loaded because that masks stats::lag(). It only matters whether plm is loaded because that package provides the function that the original querent wanted to use lag() in the context of. Sarah -- Sarah Goslee http://www.functionaldiversity.org ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.