Basic Data Analysis in RStudio

This clip explains how to produce some basic descrptive statistics in R(Studio). Details on You may also be interested in how to use tidycerse functionality for basic data analysis:


Sevinç Apti says:

Hi Ralf, thanks for sharing! I want to make predictive analysis in R, but I couldn’t understand exactly which variables should I include my model. I need to predict the availability of some charge units. How can I use longitude, latitude and street? Thanks in advance

anonimowy anonim says:

no i chuj kurwa cor function doesn’t work ;]

George E. says:

hallo. thanks so much for this video. But I am having challenges with importing data from spss and dealing with the analysis as 99% of the data are categorical. Could you please provide additional support?

Ahmed Al-Nasih says:

Please , Regarding the Stochastic Frontier Production, Is R software also estimated Technical efficiency and allocative efficiency in the econometrics? And which one is more accurate (the differences) Frontier 4.1 or R for SFP? Best regards

Ana Lucia Pina says:


1006caraqueno says:

I have primarily been working with SPSS (and have a basic knowledge of statistics) but I have a question – when you run the “correlation” bw continuous variables is it a Pearson’s or Spearman? Your videos are outstanding by the way!

Elaaf Shaikh says:

how can i connect rstudio with php i actually want to display my rstudio graphs and data onto my website,, i am using local server xampp

Gopinath Subbegowda says:

Wow…amazingly easy way to teach R ….Thank you so much, Ralf !

Qmars Safikhani says:

Hello Ralf, thanks a lot for your time to produce these excellent videos. I am trying to use “Tally” function but R is saying:
Warning in install.packages :
package ‘tally’ is not available (for R version 3.4.2) . is there an alternative function for Tally for R version 3.4.2? Many thanks

Bakhodir Rahimov says:

Hi, Thanks for this wonderful practical session! It was very useful!

I have a question related to selection of the specific variable. In your case it was hours>0. My R studio does not want to execute this command but when I did like “hours”>0, it worked. Can you help me? Thanks in advance.

Elsie Elsie says:

Hello Ralf Becker, thanks for your video! However, I have some questions. I have a model, which has 10 factors, and I collected data with survey (seven-likert scale), every variable has three questions to measure. For example, Factor 1(Q1.1, Q1.2,Q1.3), Factor2(Q2.1,Q2.2,Q2.3), etc. So I can obtain data of every question, but not data of every factor. I don’t know how can I calculate number of every factor…Thank you very much!

Dotshiv says:

hi, i want to calculate total SUM of Sales value of “Muffin” of selected product. Exmaple:- sales data given below.

Date of Sales Store Location Product Name Product Price Sold Qunatity Total Sales Value
10/12/2016 New Jerssey Muffin 40 4 160
10/12/2016 New Jerssey Dog Food 100 4 400
10/12/2016 New York Muffin 40 5 200
10/12/2016 New York Dog Food 100 5 500
10/12/2016 Ohklahoma Muffin 40 10 400
10/12/2016 Ohklahoma Dog Food 100 100 1000

I just want sum of Muffin only i.e total sales of MUFFIN in all locations was $760.

Julian Sölderer says:

Hey Ralf, great work thank you very much. For some reason some of the variables in this data frame are included as factors instead of numerical. For example the wage variables are indicated as factors – for that reason I cannot run the cor command for education and wage, as of course R tells me it needs numerical values. Have you any idea what might be the problem there? Thanks!

TrueGrit says:

Thank you very much for your great works! But I tried to install mosaic but failed with this following comments. Could you let me know what I do now for mosaic?
Installing package into ‘C:/Users/hw/Documents/R/win-library/3.2’
(as ‘lib’ is unspecified)
also installing the dependencies ‘rlang’, ‘ggformula’, ‘mosaicCore’

There is a binary version available but the source
version is later:
binary source needs_compilation
mosaic 0.14.4 1.1.0 FALSE

Package which is only available in source form, and
may need compilation of C/C++/Fortran: ‘rlang’
These will not be installed
installing the source packages ‘ggformula’, ‘mosaicCore’, ‘mosaic’

Dr. Md. Atiqur Rahman says:

Ralf, you have done a great job for the R learners, especially for the beginners. Can you please tell me the shortcut way to replace/edit multiple similar parts in R script? Thanks!!

Venkat Kumaresan says:

This is excellent, Ralf ! Learned a lot in just 25 mins. Appreciate your service !

Estapraq Kahlil says:

Thank you very much!

Manuel Landa says:

you are amazing!!!!!!!!!!!!!!!!!!!

Auriel Niemack says:

Thank you, this has helped!

Zerxyo Sánchez says:

I downloaded the Mosaic package using Tools>Install Packages… and selecting/installing “mosaic” but when I run it, it tells me there is a problem with “dplyr”; did I do something wrong or this package has outdated? :s


How do I create a new set of data based on an already existing one? I have one with 130 observations but i need to create a new one with the observations 18 to 115 only. Help please.

adfad gadfa says:

holy shit this is like learning magic! wow!

 Write a comment


Do you like our videos?
Do you want to see more like that?

Please click below to support us on Facebook!