duplicated() function in R: Find duplicated elements in a vector or dataframe

In this tutorial, we will learn about the base R function duplicated() and how can we use duplicated() function to find if an element in a vector is duplicated or a row in a dataframe is duplicated. duplicated() function can take a vector, matrix or a dataframe as input and give us boolean or logical… Continue reading duplicated() function in R: Find duplicated elements in a vector or dataframe

sample() function in R for random sampling

Often while working with some dataset, we would like to randomly select samples. sample() function in base R is one of the most useful functions to get “Random Samples and Permutations” in numerous settings. In this post we will learn how to use sample() function in multiple ways with examples. sample() function to randomize ordered… Continue reading sample() function in R for random sampling

3 Useful Matrix Functions in R: matrix(), is.matrix() and as.matrix()

Matrix is on of the fundamental data structures in R. In this tutorial, we will see three key matrix functions in R, matrix(), is.matrix(), and as.matrix(). These three matrix functions help us create a new matrix from scratch, verify if an object is a matrix or not and convert a dataframe into a matrix. We… Continue reading 3 Useful Matrix Functions in R: matrix(), is.matrix() and as.matrix()

List of Built in Datasets in R

R Built-in Datasets

R has numerous datasets that are built-in and these datasets are available in a R package called “R Datasets Package“. This is maintained by R Core team and available with base installation of R. We can find the list of built-in datasets readily available in R using R function data(). Find out Builtin datasets in… Continue reading List of Built in Datasets in R

What is R?

R is a programming language originally developed for doing statistical computing. It is similar to the S programming language that was developed at Bell Laboratories (formerly AT&T). As the R Project site says R is ‘GNU S’, a freely available language and environment for statistical computing and graphics which provides a wide variety of statistical… Continue reading What is R?

Published
Categorized as rstats Tagged
Exit mobile version