*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 drop a column from a dataframe in R by using the column number Windows GUI.
Download files from Github here: https://buff.ly/3EIAtX1
💿 Here is a good Quora answer that shows how to delete the column once you have the column number: https://www.quora.com/How-can-I-delet...
📀 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 ...
📀 In this video, Monika demonstrates how to use both the column name and the column number to view one column from the dataframe: • How to View One Column in a Dataframe...
💿 This video is of Monika demonstrating how to use the which command to find the column number in the dataframe: • How to Find the Column Number with a ...
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:20 Compared to SQL, dropping columns in R requires more syntax, and can be done many different ways.
00:42 Presenting example dataset
01:30 One way to drop a column in R by column number
01:56 The problem with not knowing the column number
02:20 Storing column number in a variable then dropping it
03:10 Running the code
How to Drop a Column in a Dataframe by Column Number in R – Demonstration