R Data Frame

R data frame is use to store data in tabular format. Data element has the same length. The columns data element doesn’t have to be same type. Each columns can be different data types than others.

> intval = c(1,2,3)
> strval = c('111', 'aaa', 'ccc')
> boolval = c(T,T,F)
> df = data.frame(intval,strval,boolval)