• 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 Save Dataframe into XLSX file in R

rstats101 · December 10, 2021 ·

Assign sheet name to excel file while save dataframe

In R, there are many ways to save a dataframe as Excel file *.xlsx. In this tutorial, we will use the R package openxlsx and learn how to save a dataframe as xlsx file. First we will learn how to save a xlsx file using write.xlsx() function in openxlsx package. And then we will … [Read more...] about How to Save Dataframe into XLSX file in R

Filed Under: openxlsx, write.xlsx Tagged With: save dataframe as xlsx in R

How To Check If One or More Elements is in a Vector

rstats101 · December 5, 2021 ·

In this tutorial, we will learn about is.element() function available in base R and use it to check if one or more elements is present in a vector. Let us create a sample vector in R Our simple vector hs 6 elements. If we want to check if a value us present in the … [Read more...] about How To Check If One or More Elements is in a Vector

Filed Under: %in%, is.element() Tagged With: find if an element is in a vector

dplyr’s arrange(): Sort a Dataframe Columns

rstats101 · September 27, 2021 ·

Sort Dataframe by a Column

In this tutorial, we will learn how to sort a dataframe by a column in R. We will see three examples of using tidyverse's arrange() function to sort a dataframe by one of its columns. First, we will sort a dataframe by numerical column in ascending order, next we will sort it in … [Read more...] about dplyr’s arrange(): Sort a Dataframe Columns

Filed Under: arrange() Tagged With: dplyr arrange, sort dataframe by a column, sort dataframe in R, sort dataframe with arrange()

How to Create a dataframe from vectors in R

rstats101 · September 24, 2021 ·

Dataframe from Scratch

In this tutorial, we will learn how to create a dataframe from scratch in R. We will learn to create a dataframe from two vectors of same length. Let us get started creating two vectors in R. We use results from OReilly's 2021 Data/AI Salary Survey giving average salary … [Read more...] about How to Create a dataframe from vectors in R

Filed Under: data.frame Tagged With: Create dataframe R, vectors to dataframe in R

Remove rows with missing values using drop_na() in R

rstats101 · September 16, 2021 ·

tidyr drop_na(): remove rows with missing values

In this tutorial we will learn how to remove rows containing missing values using drop_na() function available in tidyr package in R. drop_na() available in tidyverse is a versatile function. First we will see an example of removing all rows with at least one missing values using … [Read more...] about Remove rows with missing values using drop_na() in R

Filed Under: drop_na R Tagged With: remove missing value drop_na()

  • « Go to Previous Page
  • Page 1
  • Interim pages omitted …
  • Page 20
  • 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