How to Rename All Columns in a Data Frame in R – Demonstration

Опубликовано: 29 Сентябрь 2024
на канале: Monika Wahi
1,579
105

*Note: I may be compensated, but you will not be charged, if you click on the links below.

💡 If you are a public health practitioner looking for a targeted program for enhancing your data science skills, please sign up to participate in my 30-minute market research interview so I can get your feedback: https://buff.ly/3UnLqmq

In this video, Monika Wahi shows you how to make a vector of new column names for a data frame, then replace the old column names with sleek new ones!

Download files from Github here: https://buff.ly/3EIAtX1

💿 Here’s a video of Monika demonstrating how to read in an RDS:    • How to Read an RDS File Into R – Demo...  
📀 Here’s a video of Monika demonstrating the colnames command:    • How to Save Column Names in a Vector ...  
💿 Here’s a video of Monika demonstrating how to make a character vector:    • How to Make a Character Vector in R –...  

WANT TO SUPPORT MONIKA ON SOCIAL MEDIA?
❤️Subscribe to Monika's YouTube channel: https://buff.ly/2W6ijuc
🧡Follow/connect with Monika on LinkedIn:   / dethwench  
💛Follow Monika on Twitter:   / phexaminer  
💚Try Monika’s courses on LinkedIn Learning: https://linkedin-learning.pxf.io/NKN0JO
💙Try Monika's boutique research methods and data science courses here: https://buff.ly/3zM243P

TIMESTAMPS & LINKS
00:28 Reviewing dataset. Learn to read in an RDS file:    • How to Read an RDS File Into R – Demo...  
01:23 Modular vs. non-modular code examples
01:44 Vector of new names for columns. Learn to make vectors:    • How to Make a Character Vector in R –...  
02:03 Reviewing the names command
02:51 Differences in the modular vs. non-modular strategy
03:13 Non-modular code example
03:22 Running the code and checking the results

How to Rename All Columns in a Data Frame in R – Demonstration