• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

Rstats 101

Learn R Programming Tips & Tricks for Statistics and Data Science

  • Home
  • About
    • Privacy Policy
  • Show Search
Hide Search

How to Convert a List to a dataframe in R

rstats101 · September 12, 2021 ·

Convert a list to a dataframe

List data structure in R is a useful structure store different data types. In this tutorial, we will learn how to convert a list into a dataframe. Here we will assume that the list has multiple vectors of same size. Creating a list with vectors of equal sizes Let us get … [Read more...] about How to Convert a List to a dataframe in R

Filed Under: as_tibble, as.data.frame, R Function Tagged With: convert list to dataframe

Remove rows with missing values using na.omit() in R

rstats101 · September 9, 2021 ·

Remove Rows with missing values using na.omit()

Dealing with missing values is a common activity while doing data cleaning and analysis. In R missing values typically represented as NA. Often you might want to remove rows containing missing values in a dataframe or a matrix. In this tutorial we will learn how to remove rows … [Read more...] about Remove rows with missing values using na.omit() in R

Filed Under: na.omit R Tagged With: remove rows with missing values

ls() in R: list objects/variables in your environment

rstats101 · July 9, 2021 ·

Often while working in R, you might want to check your environments for all the objects you have created and available in your environment. ls() function in R lists the objects in your environment as a vector. In this tutorial, we will learn the use of ls() functions with … [Read more...] about ls() in R: list objects/variables in your environment

Filed Under: R Function, rstats Tagged With: ls.str() in R, ls() in R

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

rstats101 · June 30, 2021 ·

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 … [Read more...] about duplicated() function in R: Find duplicated elements in a vector or dataframe

Filed Under: duplicated(), rstats Tagged With: find duplicate elements, find duplicate rows

sample() function in R for random sampling

rstats101 · June 30, 2021 ·

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 … [Read more...] about sample() function in R for random sampling

Filed Under: rstats Tagged With: biased coin in R, sample() in R

  • « Go to Previous Page
  • Page 1
  • Interim pages omitted …
  • Page 21
  • Page 22
  • Page 23
  • Page 24
  • Go to Next Page »

Primary Sidebar

Recent Posts

  • How to create a nested dataframe with lists
  • How to compute proportion with tidyverse
  • How to Compute Z-Score of Multiple Columns
  • How to drop unused level of factor variable in R
  • How to compute Z-score

Categories

%in% arrange() as.data.frame as_tibble built-in data R colSums() R cor() in R data.frame dplyr dplyr across() dplyr group_by() dplyr rename() dplyr rowwise() dplyr row_number() dplyr select() dplyr slice_max() dplyr slice_sample() drop_na R duplicated() gsub head() impute with mean values is.element() linear regression matrix() function na.omit R NAs in R near() R openxlsx pivot_longer() prod() R.version replace NA replace NAs tidyverse R Function rstats rstats101 R version scale() sessionInfo() t.test() tidyr tidyselect tidyverse write.xlsx

Copyright © 2025 · Daily Dish Pro on Genesis Framework · WordPress · Log in

Go to mobile version