## Sum in R: How to Find Sum of Vectors

The sum() method helps find the sum of a group, the sum of a specific column of a data frame. The sum() method returns the sum of all the elements present in its arguments. If it is a vector, then it will return the sum of all vector elements. Sum in R The sum() is … Read more

Categories R

## seq() in R: How to Generate Sequence of Numbers in R

To generate a sequence of numbers in R, use the seq() method. These are various versions of the seq() function in R. The seq() is a standard general with a default method to generate the sequence of numbers. seq() in R The seq() is a built-in R method that generates the regular sequences. The seq.int() … Read more

Categories R

## How to Remove Duplicates in R

Data cleaning is one of the toughest tasks of a data scientist. To accurately analyze the data set, we often remove duplicates based on certain conditions like column values. In this tutorial, we will see how to remove duplicate data based on column values and the different ways to do it efficiently. Remove duplicates in … Read more

Categories R

## cat() in R: How to Concatenate Objects in R

R cat() method converts its arguments to character strings, concatenates them, separating them by the given sep= string, and then prints them. cat() in R The cat() is a built-in R function that concatenates and prints the objects. It takes up to six parameters and outputs the objects, concatenating the representations. Syntax cat(… , file = … Read more

Categories R

## sQuote in R: How to Use sQuote() Function in R

Text in R is represented by character vectors. The text often is referred to as a string in computer programming. A character vector is a vector consisting of characters. To assign a value to a character vector, use the <- (left arrow) operator. To find the length of the character vector, use the length() function. … Read more

Categories R

## dQuote() in R: How to Use dQuote() Function in R

To represent a string or character vector value in R, you can use one of the following. Single quotation mark( ‘ ‘ ) Double quotation mark( ” ” ) Let’s see how to print double quotes in R. dQuote in R The dQuote() is a built-in R function used to convert the given string or character … Read more

Categories R

## max() Function in R : How to Find Maximum Value of Vector

The max() function in R computes the maximum value of a vector. The min() function in R computes the minimum value of a vector. The maximum of the group is also calculated using the max() function. max() in R The max() is a built-in R function that finds the maximum value of the vector or data … Read more

Categories R

The fundamental to calculate log in R is by using the log() method in the format of log(value, base) that returns the logarithm of the value in the base.  Log in R The log() is a built-in R function that calculates logarithms. It calculates natural logarithms by default. The log10() function calculates common (i.e., base … Read more

Categories R

## NaN in R: What is Not a Number Value in R

In R, a numeric variable is either a number (like 1, 2.1, or -3.14) or one of the four special values: NA, NaN, Inf, or -Inf. The Inf and -Inf are positive and negative `infinity‘, whereas NA means “Not Available” and NaN, which we will learn in this tutorial. NaN in R NaN in R … Read more

Categories R

## getwd in R: How to Use getwd() Function in R

R is regularly pointed at a directory on your computer. You can find out which directory by running the getwd() function, and the function does not take any argument. getwd in R The getwd() is a built-in R function that returns an absolute filepath representing the current working directory of the R process. It does not … Read more

Categories R