I want to conditionally subset a dataframe without referencing the dataframe. For example if I have the following:
long_data_frame_name <- data.frame(x=1:10, y=1:10)
I want to say:
subset <- long_data_frame_name[x < 5,]
But instead, I have to say:
subset <- long_data_frame_name[long_data_frame_name$x < 5,]
plyr and ggplot handle this so beautifully. Is there any package that makes subsetting a data frame similarly beautiful?