subsettting

  1. Nicole Seaman

    YouTube R Programming: Introduction: How to subset (R intro-06)

    R has three subset operators: [, [[, and $. Given data frame df, both of these return a data frame: df["z"], df[3]. Given a data frame df, all three of these commands are identical and return a vector: df$z, df[["z"]], df[[3]]. David's script is here...
Top