saving . . . saved Subset of a Dataset has been deleted. Subset of a Dataset has been hidden .
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 09-11-19, 1:44 p.m. archanamagare2

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.
09-11-19, 2:08 p.m. wangikarsmita2019@gmail.com


Log-in to answer to this question.