• Skip to secondary menu
  • Skip to main content
  • Skip to primary sidebar

Python and R Tips

Learn Data Science with Python and R

  • Home
  • Python
  • Pandas
    • Pandas 101
  • tidyverse
    • tidyverse 101
  • R
  • Linux
  • Conferences
  • Python Books
  • About
    • Privacy Policy
You are here: Home / Archives for R

R

Imputing missing values with SVD

October 17, 2022 by cmdlinetips

Visualizing data with NAs as heeatmap

Finally got my hands on to the physical copy of the amazing Introduction to Statistical Learning with Applications in R (ISLR), Second Edition by Gareth James, Daniela Witten, Trevor Hastie, Rob Tibshirani . And it felt good to donate the first version to a local library. In this post, we learn how to use SVD, […]

Filed Under: R Tips Tagged With: imputing missing values, Imputing with SVD

14 Tips to Work with Dates in tidyverse

August 22, 2022 by cmdlinetips

Tips for dealing with dates in R

In this quick post we will see 14 simple tips that will help get started dealing with date as variable instead of a string. We will see tips on how to create a date variable in few different ways and get components of date variable using the R package lubdridate. The R package lubdridate was […]

Filed Under: R, R Tips, tidyverse 101 Tagged With: Lubridate tips

6 Tips to change column positions with dplyr’s relocate()

August 9, 2022 by cmdlinetips

Sometimes you want to change the order of columns in a dataframe. dpyr’s relocate() function makes it easy to move one or more columns to new positions easily by using the same syntax as select() function. In this post we will see 7 tips to change column order or column position using dplyr’s relocate(). Let […]

Filed Under: R, R Tips, tidyverse 101, Uncategorized Tagged With: change column position R, dplyr relocate()

6 Dimensionality Reduction Techniques in R (with Examples)

July 16, 2022 by cmdlinetips

6 Dimensionality Reduction Techniques in R

Dimension Reduction techniques are one of the most useful methods in unsupervised learning of high dimensional datasets. In this post, we will learn how to use R to perform 6 most commonly used dimensionality reduction techniques, PCA: Principal Component Analysis SVD: Singular Value Decomposition ICA: Independent Component Analysis NMF: Non-negative Matrix Factorization tSNE UMAP We […]

Filed Under: R, R Tips Tagged With: Dimensionality Reduction, Dimensionality reduction techniques in R

13 Tips to Randomly Select Rows with tidyverse

July 5, 2022 by cmdlinetips

In this post, we will learn how to randomly sample rows from a data frame that is useful in most common scenarios. Tidyverse has a few options to randomly sample rows from a dataframe. slice_sample() in dplyr is the currently recommended function to use for randomly select rows. The older function in dplyr, sample_n(), for […]

Filed Under: R Tips, tidyverse 101 Tagged With: slice_sample(): randomly sample rows

  • « Go to Previous Page
  • Page 1
  • Page 2
  • Page 3
  • Page 4
  • Interim pages omitted …
  • Page 20
  • Go to Next Page »

Primary Sidebar

Subscribe to Python and R Tips and Learn Data Science

Learn Pandas in Python and Tidyverse in R

Tags

Altair Basic NumPy Book Review Data Science Data Science Books Data Science Resources Data Science Roundup Data Visualization Dimensionality Reduction Dropbox Dropbox Free Space Dropbox Tips Emacs Emacs Tips ggplot2 Linux Commands Linux Tips Mac Os X Tips Maximum Likelihood Estimation in R MLE in R NumPy Pandas Pandas 101 Pandas Dataframe Pandas Data Frame pandas groupby() Pandas select columns Pandas select_dtypes Python Python 3 Python Boxplot Python Tips R rstats R Tips Seaborn Seaborn Boxplot Seaborn Catplot Shell Scripting Sparse Matrix in Python tidy evaluation tidyverse tidyverse 101 Vim Vim Tips

RSS RSS

  • How to convert row names to a column in Pandas
  • How to resize an image with PyTorch
  • Fashion-MNIST data from PyTorch
  • Pandas case_when() with multiple examples
  • An Introduction to Statistical Learning: with Applications in Python Is Here
  • 10 Tips to customize ggplot2 title text
  • 8 Plot types with Matplotlib in Python
  • PCA on S&P 500 Stock Return Data
  • Linear Regression with Matrix Decomposition Methods
  • Numpy’s random choice() function

Copyright © 2025 · Lifestyle Pro on Genesis Framework · WordPress · Log in

Go to mobile version