Question: what is the difference between vector and factor?
Answer: Originally Answered: what is the difference between Vector, Factor and DataFrames in R ? Vector is an atomic data strcture. It can hold only one data type (for eg: character/ numeric / logical). ... Factors are used to store and use categorical data in R.