Tagged: Data Science

Replace a substring in a character vector in R

Replace a substring in a character vector in R, will demonstrate how to use the substr and substring functions in this R post. As the R syntax and output of the two functions are...

Bernoulli Distribution in R

Bernoulli Distribution in R, You will discover how to use the Bernoulli distribution functions in this R tutorial. Bernoulli Distribution in R Example 1: The dbern function, or Bernoulli probability density function W’ll demonstrate...

Concatenate inputs in R

Concatenate inputs in R, The paste and paste0 functions in R are described in detail in this article. Let’s first look at the definitions of the two functions and the fundamental R syntax: Concatenate...

Convert characters to expressions in R

Convert characters to expressions in R, we’ll demonstrate how to generate expressions, translate characters into expressions, then translate expressions back into characters in this tutorial. The expression, parse, and deparse R programming functions serve...

Multiple plots into single plot in R

Multiple plots into single plot in R, You will learn how to use the par function to set or query graphical parameters in this R lesson. Example 1: Multiple plots into single plot in...

Pairwise Scatterplot in R

Pairwise scatterplot in R, A plot matrix made up of scatterplots for each variable combination in a data frame is the output of the pairs R function. The pairs command’s fundamental R syntax is...

Loaded Package Version in R

Loaded Package Version in R, The package version that is presently loaded in R can be determined using the following R programming syntax. We are going to utilize the dplyr package for this post....

Apply Function into two input vectors in R

Apply Function into two input vectors in R, Two arrays are subjected to a function by the R-outer function. Above is a basic example of R code for an outer command. W’ll give you...