Skip to content

Tag Archives: R-Functions

In this article, we will learn how to measure the execution or running time of a function in the R programming language.  Method 1: Using… Read More
R Programming language is robust and user-friendly, as it displays annotations and contexts for the desired input streams. We can pause the execution of a… Read More
In this article, we will learn how we can count the repeated values in R programming language.  We will be using the table() function along… Read More
In this article, we will see how to find out the number of duplicates in R Programming language.  It can be done with two methods:… Read More
A dataset can have duplicate values and to keep it redundancy-free and accurate, duplicate rows need to be identified and removed. In this article, we… Read More
A function is a set of statements orchestrated together to perform a specific operation. A function is an object so the interpreter is able to… Read More
readLines() function in R Language reads text lines from an input file. The readLines() function is perfect for text files since it reads the text… Read More
scan() function in R Language is used to scan and read data. It is usually used to read data into vector or list or from… Read More
colorRampPalette() function in R Language is used to create a color range between two colors specified as arguments to the function. This function is used… Read More
col2rgb() function in R Language is used to convert R color to RGB (red/green/blue). Syntax: col2rgb(col) Parameters: col: vector of any of the three kinds… Read More
rainbow() function in R Language is a built in color palettes which can be used to quickly generate color vectors of desired length taken as… Read More
rgb() function in R Language is used to specify the shade of the color red, green, and blue between 0 and 1. Further the specified… Read More
print() function in R Language is used to print out the argument to the screen. Syntax: print(x, digits, na.print) Parameters: x: specified argument to be… Read More
polygon() function in R Language is used to plot a polygon between specified points in an existing plot. Syntax: polygon(x_coordinates, y_coordinates) Parameters : x_coordinates, y_coordinates:… Read More
lm() function in R Language is a linear model function, used for linear regression analysis. Syntax: lm(formula) Parameters: formula: model description, such as x ~… Read More