Vertitime
X
Technologies
AI
ML
GenAI
Data Science
R
Python
Pandas
Data Analytics
SQL
C
Html
Javascript
Data Structure
JAVA
CSS
Swift
Azure Cloud
AWS Cloud
DevOps
Microservices
Interview Questions
What is R
R Data Types
R If Else
R For Loop
R Switch Case
R Arrays
R Variables
R Strings
R Operators
R Lists
R Numbers
R While Loop
R Functions
R Vectors
R Data Frame
R Factors
R Data Set
R Max Min
R Percentile
R Plot
R Bars
R Line
R Pie Chart
R Factors.
Factors are used to categorize data. Examples of factors are: Demography: Male/Female Music: Rock, Pop, Classic, Jazz Training: Strength, Stamina To create a factor, use the factor() function and add a vector as argument.