Hi
My code looks like this
I have two parameters x and par1. X contains values and par1 contains the
function which i required to use
if par1 is max then output should be max(x).
FUN <- match.fun(par1)
result=FUN(x)
Is it possible to incorporate the unique count of x within this code
eg
x=("a","b","a","c") . The output should be 3
-----
Thanks in Advance
Arun
--
View this message in context:
http://r.789695.n4.nabble.com/Help-in-using-unique-count-by-match-function-tp4569859p4569859.html
Sent from the R help mailing list archive at Nabble.com.
______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.