[R] How to define mutualy exclusive parameters of a function

Polychronis Kostoulas polychroni@@ko@toul@@ @ending from gm@il@com
Thu Apr 26 15:46:11 CEST 2018


Dear All,
apologies if this is basic: I am writing a function:

fb<-function(mean, median, mode, a, b=0.95, lower=F)
{....}

The arguments mean, median and mode are mutually exclusive (i.e. the user
should define only one of these). How do I code this within the function?

Thanks,
Pol

	[[alternative HTML version deleted]]




More information about the R-help mailing list