Data Manipulation using dplyr Package - English
- subtitles off
- captions off
- English
- Questions posted on Forums
- R Tutorials - English
-
Showing 0 to 0 of 0 entries under movies comedy tab of source window.
Screenshot:- https://photos.app.goo.gl/i7iENquXvsnHz38r5Script:-library(dplyr)# Clear R workspace<img>rm(list = ls() ) # Declare a variable to read and store moviesData movies <- read.csv("moviesData.csv")# View movies data frameView(movies)moviesComedy <- filter(movies, genre == "comedy")View(moviesComedy)Console:-> # Clear R workspace> rm(list = ls() ) > # Declare a variable to read and store moviesData > movies <- read.csv("moviesData.csv")> # View movies data frame> View(movies)> library(dplyr)Attaching package: ‘dplyr’The following objects are masked from ‘package:stats’: filter, lagThe following objects are masked from ‘package:base’: intersect, setdiff, setequal, union> moviesComedy <- filter(movies,+ genre == "comedy")> View(moviesComedy)> moviesComedy <- filter(movies,+ genre == "comedy")> View(moviesComedy)
06-07M 20-30S Loki_Rajasthani
Answer last updated on: Jan. 29, 2021, 2:57 p.m.
-
Finding hp >100 and cyl=3
Following error is appearing on writing the command mtcarshpcyl <- filter(mtcarshpcyl,cyl=3 & hp>100)Error in filter(mtcarshpcyl, cyl = 3 & hp > 100) : unused argument (cyl = 3 & hp > 100)> View(mtcarshpcyl)Error in View : object 'mtcarshpcyl' not found
12-13M 0-10S Joohi
Answer last updated on: Dec. 14, 2020, 3:48 p.m.
-
Assignment
I am facing following error in assignment .Error in select(Ozone, Wind, Temp) : object 'Ozone' not found> View(qualityOWT)Error in View : object 'qualityOWT' not found> airqualityOWT <- select(ozone,Wind,Temp)Error in select(ozone, Wind, Temp) : object 'ozone' not found> View(qualityOWT)Error in View : object 'qualityOWT' not found> airqualityOWT <- select(Ozone,Wind,Temp)Error in select(Ozone, Wind, Temp) : object 'Ozone' not found> View(qualityOWT)Error in View : object 'qualityOWT' not found>
12-13M 10-20S Joohi
Answer last updated on: Dec. 14, 2020, 2:51 p.m.
-
installing dplyr
Warning in install.packages : package ‘dblyr’ is not available (for R version 4.0.2)
03-04M 10-20S RAHAWIYE
Answer last updated on: July 5, 2020, 12:10 a.m.
-
mtcars data maipulation
HiHow can I preserve the car names in the mtcars dataset as it is stored as row names and not a seperate column?ThanksKarthik
12-13M 40-50S hi_kar
Answer last updated on: June 22, 2020, 11:39 p.m.
-
Large Number Of Variables
In R software we declare large number of variables. How do we know that whether the variable which we are going to declare is already declare or not?As some variable declare in this tutorial moviesGeIm, moviesImD, moviesImA, moviesComDr etc.
10-11M 50-60S mzaid
Answer last updated on: May 24, 2020, 5:36 p.m.
-
Error in installing dplyr packages
Error: package or namespace load failed for ‘dplyr’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]): namespace ‘pkgconfig’ 2.0.1 is already loaded, but >= 2.0.2 is requiredIn addition: Warning message:package ‘dplyr’ was built under R version 3.4.4
03-04M 0-10S ekavithavrs@gmail.com
Answer last updated on: April 26, 2020, 9:56 p.m.
-
1Overview of R and RStudio
-
2Installing R and RStudio on Linux
-
3Installing R and RStudio on Windows
-
4Introduction to basics of R
-
5Introduction to Data Frames in R
-
6Introduction to RStudio
-
7Introduction to R script
-
8Working directories in RStudio
-
9Indexing and Slicing Data Frames
-
10Creating Matrices using Data Frames
-
11Operations on Matrices and Data Frames
-
12Merging and Importing Data
-
13Data types and Factors
-
14Lists and its Operations
-
15Plotting Histograms and Pie Chart
-
16Plotting Bar Charts and Scatter Plot
-
17Introduction to ggplot2
-
18Aesthetic Mapping in ggplot2
-
Data Manipulation using dplyr Package
-
20More Functions in dplyr Package
-
21Pipe Operator
-
22Conditional Statements
-
23Functions in R
Questions posted on ST Forums:
12886 visits
Outline:
What is data visualization Need for data manipulation What is dplyr package Functions in dplyr package Install dplyr package Use filter function Use filter function with a logical operator Use match operator Use arrange function for ascending order Use arrange function for descending order
Width: | 894 | Height: | 644 |
---|---|---|---|
Duration: | 00:13:51 | Size: | 6.8 MB |
Show video info