Passing Data from File Reader to R Snippet

How does one pass the data from the File Reader node to an R snippet node so that R code in the snippet can access the data for processing in R?

Thanks from a newbie,


To clarify - I want to pass the filename to the R snippet as the R command requires the file name to process various commands. (maybe my code in R needs to be fixed).

"R<-subset(filename, subset=( Age=="6 Weeks to 18 Months" | Age=="18 Months to 30 Months" | Age=="1 Year to 30 Months" ))" please ignore...