3. R prompt R version 2.6.1 (2007-11-26) Copyright (C) 2007 The R Foundation for Statistical Computing ISBN 3-900051-07-0 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. Natural language support but running in an English locale R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos , 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. >
24. Operatori di comparazione e operatori logici Diverso da … Maggiore o uguale a … Minore o uguale a … Uguale a … Maggiore di … Minore di … Significato x != 2 != x >= 2 >= x <= 2 <= x == 2 == x > 2 > x < 2 < Esempio Operatore NOT OR AND Significato x > 2 ! x == 4 ! x > 2 | x == 0 | x < 2 & x != 0 & Esempio Operatore
29. Altre operazioni algebriche Coseno cos() Seno sin() Logaritmo in base 10 log10 Logaritmo in base 2 log2() Logaritmo log() Exponential function (e) exp() Valore assoluto abs() Radice quadrata sqrt()