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

2018-04-26 Thread Polychronis Kostoulas
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 [[al

[R] Installing required packages with an R package

2018-05-07 Thread Polychronis Kostoulas
Dear All, I am preparing an R-package and I would like to ask how do I make it check whether dependencies (i.e. other packages) are already installed in a machine and if they are not installed to automatically install them during its installation. Thanks, Polychronis Polychronis Kostoulas

Re: [R] Installing required packages with an R package

2018-05-07 Thread Polychronis Kostoulas
hat people keep coming along >> >and >> >sticking things into it." >> >-- Opus (aka Berkeley Breathed in his "Bloom County" comic strip ) >> > >> >On Mon, May 7, 2018 at 11:06 AM, Polychronis Kostoulas < >> >polychronis.kostou...

[R] Double AND within an IF statement

2016-02-24 Thread Polychronis KOSTOULAS
Hi there, apologies if this is easy. I want to write this condition: If age is more than 4 years and less or equal to 8 years and infection is positive then replacement is 2. Can you help me the double END? Thanks, Polychronis __ R-help@r-projec

[R] Workshop on Bayesian methods and WinBUGS. One week to go!

2012-01-26 Thread Polychronis Kostoulas
Tutors: Ian A. Gardner, University of Prince Edward Island, Canada Polychronis Kostoulas, University of Thessaly, Greece Local coordinator: Navneet Dhand, University of Sydney, Australia For the program and further information go to: http://www.icp2012.com.au/downloads/ICPWorkshopFlyer.pdf Limite