Suppose I have a function that gives two or more data out. For example, a function that gives Lower Confidence Limit and Upper Confidence limit for a statistic.
Let's say the function is like this:
CI(a,b,c,d) and then it provides two answers:
> 35.25976562 0.02499848
head might be useful for you, this function returns the first parts of a vector in this case.
head(CI, 1) 35.25976562 head(CI, 2) 35.25976562 0.02499848
head() is a generic function, It may also has been extended to other classes. Read more about head by typing
?head in your R console.