A single data value in R usually falls into one of a few basic classes:
logical:TRUEorFALSEinteger: whole numbers (e.g.,1,2,-999) - add L to specify the type explicitly (e.g.x <- 2L)numeric(also calleddouble): real numbers with decimals (e.g.,0.001,1.0,-273.16)character: text or enclosed in quotes (e.g.,"cat","I like bananas", or"Everest is 8848.9 m tall"); character strings are words, sentences, or paragraphs.factor: characteris with defined levels or orders (e.g.,low,medium,highmight be converted to a factor by setting their order)
Any class can include NA to represent missing values.





