Courses
Tutorials
Practice
Data Structure
Java
Python
HTML
Interview Preparation
DSA
Practice Problems
C
C++
Java
Python
JavaScript
Data Science
Machine Learning
Courses
Linux
DevOps
SQL
Web Development
System Design
Aptitude
GfG Premium
Similar Topics
Web Technologies
37.4K+ articles
DSA
22.8K+ articles
Python
21.3K+ articles
Experiences
16.6K+ articles
Interview Experiences
14.1K+ articles
R Language
3.0K+ articles
R-plots
172+ articles
R Vector-Function
88+ articles
R-Factors
28+ articles
R Array-Functions
10+ articles
R Factor-Function
12 posts
Recent Articles
Popular Articles
Apply a Function over a Ragged Array in R Programming - tapply() Function
Last Updated: 19 June 2020
tapply() function in R Language is used to apply a function over a subset of vectors given by a combination of factorsSyntax: tapply(vector, factor, fun) Parameters:vector...
read more
R Language
R Vector-Function
R Array-Functions
R Factor-Function
Adding Noise to a Numeric Vector in R Programming - jitter() Function
Last Updated: 19 June 2020
In R programming, jittering means adding small amount of random noise to a numeric vector object. In this article, we'll learn to use jitter() function and create a plot t...
read more
R Language
R-plots
R Vector-Function
R Factor-Function
Generate Factors with specified Levels in R Programming - gl() Function
Last Updated: 16 June 2020
gl() function in R Language is used to generate factors by specifying the pattern of their levels.Syntax:gl(x, k, length, labels, ordered)Parameters:x: Number of levelsk: ...
read more
R Language
R Factor-Function
Get or Set Levels of a Factor in R Programming - levels() Function
Last Updated: 16 June 2020
levels() function in R Language is used to get or set the levels of a factor.Syntax: levels(x)Parameters:x: Factor ObjectExample 1:[sourcecode language="Python3" 1="="]# R...
read more
R Language
R Factor-Function
Get the Number of Levels of a Factor in R Programming - nlevels() Function
Last Updated: 16 June 2020
nlevels() function in R Language is used to get the number of levels of a factor.Syntax: nlevels(x)Parameters:x: Factor ObjectExample 1:[sourcecode language="Python3" 1="=...
read more
R Language
R Factor-Function
Removing Levels from a Factor in R Programming - droplevels() Function
Last Updated: 05 June 2020
droplevels() function in R programming used to remove unused levels from a Factor.Syntax:# For vector objectdroplevels(x, exclude = if(anyNA(levels(x))) NULL else NA, ...)...
read more
R Language
R Factor-Function
Check if a Factor is an Ordered Factor in R Programming - is.ordered() Function
Last Updated: 08 November 2021
is.ordered() function in R Programming Language is used to check if the passed factor is an ordered factor.Syntax: is.ordered(factor)Parameters: factor: Factor to be check...
read more
R Language
R Factor-Function
Convert an Unordered Factor to an Ordered Factor in R Programming - as.ordered() Function
Last Updated: 04 June 2020
as.ordered() function in R Language takes an unordered factor as argument and converts it into an ordered factor.Syntax: as.ordered(factor)Parameters:factor: Unordered Fac...
read more
R Language
R Factor-Function
Convert a Vector into Factor in R Programming - as.factor() Function
Last Updated: 08 November 2021
as.factor() function in R Programming Language is used to convert the passed object(usually Vector) into a Factor.Syntax: as.factor(object)Parameters: Object: Vector to be...
read more
R Language
R Vector-Function
R Factor-Function
Checking if the Object is a Factor in R Programming - is.factor() Function
Last Updated: 04 June 2020
is.factor() function in R Language is used to check if the object passed to the function is a Factor or not. It returns a boolean value as output.Syntax: is.factor(Object)...
read more
R Language
R Factor-Function
Performing Analysis of a Factor in R Programming - factanal() Function
Last Updated: 01 June 2020
Factor Analysis also known as Exploratory Factor Analysis is a statistical technique used in R programming to identify the inactive relational structure and further, narro...
read more
R Language
R-Factors
R Factor-Function
Replace values of a Factor in R Programming - recode_factor() Function
Last Updated: 01 June 2020
Factors in R programming are kind of data structures that stores categorical data i.e., levels and can have any type of data (integer, string, etc). recode_factor() funct...
read more
R Language
R-Factors
R Factor-Function
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !