5. Subset

Extract the data that meet specific conditions from Data Frame.

  1. Click the Subset in the Data Analysis category.


  1. Data Frame: Select the data frame you want to use for your work.

  2. Make a copy: Check if you don't want the operation to affect the original data frame.

  3. Method: Select a method to specify which rows or columns the action will be applied to.

  4. Allocate to: Specify the name of the variable where the results of your work will be stored.

  5. Row Subset: Select the rows you want to work with.

    1. Slicing: Extract rows by specifying a range.

    2. Condition: Specify the range of rows based on a condition.

    3. Indexing: Manually select the desired rows.

  6. Column Subset: Select the columns you want to work with.

    1. Indexing: Manually extract the desired columns.

    2. Slicing: Specify the range of columns to extract.

  7. Code View: Preview the code that will be output.

  8. Data View: Preview the output that will be printed.

  9. Run: Print and run the code.

Last updated