Embed presentation



![Strings> a <- "hello world" > a [1] "hello world" > b <- c("hello", “two") > b [1] "hello" “two" > b[1] [1] "hello" Strings can be stored in variables just like numbers!](https://image.slidesharecdn.com/3-3rdatatypes-100122124207-phpapp02/85/R-Datatypes-4-320.jpg)








R supports various data types including numbers, strings, factors, data frames, and tables. Numbers and strings can be assigned to variables using <- or =. Factors represent discrete groupings. Lists are ordered collections of objects that can contain different data types. Data frames are lists that behave like tables, with each component being a vector of the same length. The table() function generates frequency tables from factors.



![Strings> a <- "hello world" > a [1] "hello world" > b <- c("hello", “two") > b [1] "hello" “two" > b[1] [1] "hello" Strings can be stored in variables just like numbers!](https://image.slidesharecdn.com/3-3rdatatypes-100122124207-phpapp02/85/R-Datatypes-4-320.jpg)






