53128/extract-data-fron-r-dataset
You can use the dplyr package,
Convert the titanic table into dataframe.
> library(dplyr)
> data("Titanic") > titanic = as.data.frame.table(Titanic) > titanic %>% filter(Class == "1st" | Class == "2nd")
Hope it helps!
You can assign datatypes for the field ...READ MORE
Dear Deepika, Hope you are doing great. You can ...READ MORE
Dear Koushik, Hope you are doing great. You can ...READ MORE
colSums(is.na(data_frame_name)) will return you number of nulls ...READ MORE
Use code as below - lapply(air,function(x) { length(which(is ...READ MORE
One way is to convert to factor ...READ MORE
Hi, it is possible to store them ...READ MORE
Hi, Use sample or sample.split function to create ...READ MORE
You can use dplyr function arrange() like ...READ MORE
OR
At least 1 upper-case and 1 lower-case letter
Minimum 8 characters and Maximum 50 characters
Already have an account? Sign in.