Displaying 1 result from an estimated 1 matches for "tp3067765p3067829".
2010 Dec 01
3
How to pass selection criteria in a function
Hi,
Suppose I have the following data
name score
Abel 88
Baker 54
Charlie 77
stored a table called myData.
I want to write a function that will create a table which is a subset of myData containing those have a score > 75.
I know I can do this with the following command:
subset(myData, score > 75)
But I would like to do this via a function, something like: