Skip to content
This repository

.variables should be accessible within the scope of function #68

Closed
leipzig opened this Issue November 09, 2011 · 1 comment

2 participants

Jeremy Leipzig Hadley Wickham
Jeremy Leipzig

Each piece or subframe of a split should be passed the particulars of the .variables which define that piece.

For example,
d_ply(baseball,.(team,year),function(x){print(.variables)})
[1] "BL1" "1872"
[1] "BL1" "1873"
[1] "BL1" "1874"
[1] "BR1" "1872"
[1] "BR2" "1872"
[1] "BR2" "1873"
[1] "BS1" "1873"
[1] "BS1" "1874"
[1] "BS1" "1875"
[1] "BSN" "1876"
[1] "BSN" "1877"
...

Hadley Wickham
Owner

Look at attr(df, "vars"), and also see the strip_splits function.

Hadley Wickham hadley closed this November 09, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.