Explain the different ways of subsetting data.

Q. Explain the different ways of subsetting data.

Ans: 1. Row based subsetting – In this method of subsetting, we take some rows from the top or bottom of the table.

2. Column based subsetting – Sometimes the original data set may contain large number of columns and all of them may not be necessary to perform the analysis. We then select specific columns from the dataset.

3. Data based subsetting – To subset the data based on specific data we use data-based subsetting.

Leave a Comment