R statistical package cookbook