Hi,
I am the beginner in R-Studio a1n not able to solve these queries. Plz help me out.
- Use the AdultUCI data set from the arules() package. How many 38 year olds are divorced?
What is wrong with this code??
install.packages("arules")
library(arules)
data("AdultUCI")
str(AdultUCI)
install.packages("dplyr")
library("dplyr")
fd3<-filter(AdultUCI, age=38 & marital-status="Divorced")
2)Use the lackers data set in the package lubridate. In this data how many rows correspond to instances where the day was Monday and time 12?
I have tried this code but not getting output.
install.packages("lubridate")
install.packages("dplyr")
library(lubridate)
data("lakers")
str(lakers)
library("dplyr")
data("lakers")
str(lakers)
dim(fd)
fd<-filter(lakers, day==1 & time=="12:00")
ds2<-filter(lakers, wday(date)=="Monday" & time=="12:00")
Thanks