Extract Particular Values from Data


Codes for Extracting Particular Values from Data

Published by Haerim Hwang

data extraction data science r

0 min READ

  • These codes extract rows with partiular values in data frame.


  • You can download the sample dataset for practice.


  • Codes
    • Open the sample CSV file you downloaded from the above link

      raw_data <- read.csv(file.choose(), header = TRUE, stringsAsFactors = T) 
      


    • Extract the “critical_wanna” conditions only

      raw_data <- raw_data[which(raw_data$type == "critical_wanna"),]
      raw_data <- droplevels(raw_data)