Closed respatte closed 6 years ago
Just updated my R packages (including eyetrackingR
) for an error with another package, and turns out mutate_
has now disappeared... And instead eyetrackingR
works fine with dplyr::mutate
!
That's quite amazing, thanks a lot for this update!
Hi,
I'm trying to use the
eyetrackingR
friendlymutate_
to create new variables based on existing ones. The issue is that either (a) I use the variable name as I would usually withdplyr::mutate
, but I get an error:or (b) I use the
.
to access directly.$TrialId
, and instead of the desired behaviour (give a value forPart
to each row based on the value ofTrialId
for that row), R considers only the first value ofTrialId
:I looked at the help for
mutate_
, and therefore tried to use the.dots
argument, checking the syntax from source code here, trying to use bothTrialId
directly or.$TrialId
(just using.dots = list(Part = ...)
).I didn't manage to find out where in the source code
mutate_
was implemented, the only thing I found was a one line definition indplyr_fix.R
that I couldn't really understand, and therefore I can't really work out how to usemutate_
properly. Could it be possible to write some documentation for it, or possibly make it work a bit more like the originaldplyr::mutate
function?I forgot to say, the
mutate_
help also says to checkvignette("nse")
for further indications on non-standard evaluation, but R doesn't find this vignette:Thanks a lot