Importing Data, Checking the Imported Data and Working with Data in R; learn how to import a dataset into R, How to make sure data was imported correctly into R and How to begin to work with the imported data in R; Find the free Dataset here: (
👍🏼Best Statistics & R Programming Language Tutorials: ( )
►► Like to support us? You can Donate ( Share our Videos, Leave us a Comment and Give us a Like or Write us a Review! Either way We Thank You!
►In this R video tutorial, we will learn to use read.table function (which reads a file in table format and creates a data frame from it, with cases corresponding to lines and variables to fields in the file), and some of the arguments such as header argument and sep argument.
►We will learn to use file.choose function to choose a file interactively
►We will discuss how to use Menu options in RStudio to import data into R
►and we will also learn how to check the imported data to make sure it was imported correctly into R using the dim function to retrieve dimension of an object and specify the number of rows and columns of the imported data, the head function in R (head() function), which returns the first or last parts of a vector, matrix, table, data frame and will let us see the first several rows of the data, the tail function in R (tail() function) to see the last several rows of the data in R, the double square brackets in R to subset data (brackets lets you select or subset data from a vector, matrix, array, list or data frame) , and the names function in R to get the names of an object in R.
►►Practice with Dataset:
►► Watch More:
►Export Data from R (CSV , TXT and other formats):
►Getting Started with R (Series 1):
►Graphs and Descriptive Statistics in R (Series 2):
►Probability distributions in R (Series 3):
►Bivariate analysis in R (Series 4):
►Linear Regression in R (Series 5):
►ANOVA Concept and with R
►Linear Regression Concept and with R
► Intro to Statistics Course:
◼︎ Table of Content
0:00:07 How to read a dataset into R? we will use read.table function to read a dataset into R and save it as an object
0:00:27 How to access the help menu in R
0:01:02 How to let R know that the first row of our data is header? we can use header argument to let R know that the first row of our data is header
0:01:14 How to let R know how the observations are separated? we will use sep argument to let R know how the observations are separated
0:02:03 How to specify the path to a file in R? we can use file.choose function to specify the path to the file in R
0:03:15 How to use Menu options in R Studio to import data into R
0:05:23 How to prepare the Excel data for importing into R
0:06:15 How to know the dimensions (the number of rows and columns) of the data in R? we will use the dim function to know the dimensions of the data in R
0:06:35 How to see the first several rows of the data? the head function in R let us see the first several rows of the data
0:06:45 How to see the last several rows of the data in R? the tail function in R let us see the last several rows of the data
0:07:18 How to check if the data was read correctly into R? we can use the square brackets and subsetting data to verify that our data was read correctly into R
0:08:21 How to check the variable names in R? in this video, we will use the names function to check the variable names in R
This video is a tutorial for programming in R Statistical Software for beginners, using RStudio.
Follow MarinStatsLectures
Subscribe:
website:
Facebook:
Twitter:
Instagram:
Our Team:
Content Creator: Mike Marin (B.Sc., MSc.) Senior Instructor at UBC.
Producer and Creative Manager: Ladan Hamadani (B.Sc., BA., MPH)
These videos are created by #marinstatslectures to support some courses at The University of British Columbia (UBC) (#IntroductoryStatistics and #RVideoTutorials for Health Science Research), although we make all videos available to the everyone everywhere for free.
Thanks for watching! Have fun and remember that statistics is almost as beautiful as a unicorn!
source

In this video tutorial, we will learn to use various functions and arguments in R and menu options in Rstudio to read the data into R. You will also get familiar with functions that would help to verify if the data was imported correctly into R (e.g number of rows and columns, names of the objects, etc). Practice with this free dataset: (https://statslectures.com/r-scripts-datasets); After learning how to import data into R, watch our next video to learn how to export data out of R (csv, txt, and other formats) (https://bit.ly/2PWS84w); Like to support us? You can Donate (https://bit.ly/2CWxnP2) or Share our videos with others
The best tutorials I have found lately!!!! Thank you, Sir. I truly appreciate the effort you put into making these tutorial videos. I have a small inquiry about finding the dataset you used in your videos, as the provided link in the description is not working! Is there any other way I can get that dataset for practice?
now is 2024 and this 11 years old video are the best tutorial video
Please share the dataset, the link in the description doesn't work
Kindly share the datasets
Great tutorials!! I can't access the data
10 years later these are still the best R tutorials ever so far. Thank you very much!
Thanks!
This dude is saving my life with his clear and simple explanations
8 years later these are still the best R tutorials ever. Thank you very much!
OMG, five mins of this video is 100 times better than my prof 2 hrs lecture
Thank you.
We UoPeople students love your videos. It is super helpful ^^ .
Thanks
Great videos and great tutorial. I was struggling to understand these concepts but now I am feeling relaxxxxxxxed
great video! wish I'd had this a week ago when my columns weren't separating.
Hi Mike, This is a great resource. After importing and attaching, I am getting error message in many commands e.g.
> head(LungCapData)
returns error as follows
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) :
namespace ‘rlang’ 0.4.5 is already loaded, but >= 0.4.7 is required
I am getting similar error in > LungCapData[5:10, ] command.
Could you please let me know what could be the problem. This error persists even after changing character variables using 'as.factor' function
How did you find the path to your file?
hi i am getting junk text in front of my dataname when i print data for example if the first header is qualification it is showing i… qualification can u help. thanks
Great tutorial
super interesante pero estoy con problemas para bajar un archivo outside the worl and zipedd
You didn’t taught us to create data frame?
Fantastic tutorial. Do you also have videos on a beginner project in R? To better hone one’s skill.
What if I need to separate by more than 3 separators? How can that be done? Levels and sublevels.
Cool and amazing way to teach R ……👍👌🙏🙏🙏
not too shabby
6:21
i wish i saw this tutorial earlier..
Thanks man. You make the world a better place by lifting us all up. this is bigger than youtube tutorials, you are actually benifitting lives in so many ways
How to find the path to the file?
I tried copying the location from properties but it is showing only till desktop.
Hey, I have a question about transforming values (for example equity, debt etc.).How can i transform those values that were saved as characters into numeric values?
hi sir martin! i am taking a masteral degree in information management. Your tutorial is a big help. thank you!
Keep spreading the knowledge. I really appreciate your efforts.
Very helpful! Appreciate your effort!
thank u !!!!
best tutorial ever seen in youtube, coursera or even in the college!
Hi, I was wondering if you have a video on working with Panel Data in R and how to correctly import it from Excel?
how i fixed this permission denied message
Hi! i am getting the error message permission denied while running this command read.table
Thank you for the sharing your knowledge in a very simple and easy way to learn.
Sir can I get ur lungcapdata.txt file?So I can practice perfectly.. thanks sir
3:30 is where it shows data import from a text file.
thank you sir, easy to understand and please add more complicated programming videos based on R
i am unable to get the output of levels- result is null and summary also provides me class:character, mode :character for gender,cesearean, smoke
they are so useful :3 Thank you share it with us :3
Does anyone know the keyboard shortcut on how he pasted the previous line of command into his console?
hi Marin, In my R console, its not showing the Workspace and the history like its showing for others. could you please help?