Skip to content

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

Closed
leipzig opened this Issue Nov 9, 2011 · 1 comment

2 participants

@leipzig
leipzig commented Nov 9, 2011

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
Owner
hadley commented Nov 9, 2011

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

@hadley hadley closed this Nov 9, 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.