function (arg1, arg2)
{
result <- arg1 + arg2
return(result)
}
Main Data Types
Data you can work with in R takes one of 61 forms, most commonly:
| Data type | Description | Example |
|---|---|---|
| Numeric | Decimal numbers, including whole numbers | 3.14, 42.0, -1.5 |
| Integer | Whole numbers (exclusively), represented with an L suffix |
42L, -1L, 1000L |
| Logical | Boolean values, either TRUE or FALSE |
TRUE, FALSE or T, F |
| Character | Text strings, enclosed in quotes | "hello", '123', "R is great!" |


Comments
#symbol