0

like in this example, I would like to remove the data which are smaller than 170,000 how can I show it by r-language?

enter image description here

Elletlar
  • 3,136
  • 7
  • 32
  • 38

1 Answers1

0
library(dplyr)

YOUR_DATA_FRAME %>% 
  dplyr::filter(price > 170000)

or without addional packages

YOUR_DATA_FRAME[YOUR_DATA_FRAME$price > 170000, ]
DPH
  • 4,244
  • 1
  • 8
  • 18
  • thanks, but I have another question after I input it, I get a series number just under the console and I need to use these data for the following part, how can I do for that? – Christine Nov 04 '20 at 01:43