Subset of a Dataset
Title
Question
subdata1<-subset(capataincy,played>20&&lost<14,select = c("names","played","won","lost"))
In above query for large dataset can we have another option other than concatenating names of all columns manually?R Indexing-and-Slicing-Data-Frames 10-11 min 20-30 sec
Answers:
Subsetting depends upon the condition/filter which you want to apply. Instead of naming each column you may also write their respective numbers. Please go through all of the tutorials, subsetting is further explored using dplyr package in later tutorials.
Login to add comment