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