我已将数据集导入Rstudio并遇到了问题。我需要按承运人制作一个包含NYC_flight信息的表。我通过表(NYC_flights $ carrier)进行了此操作,这返回了正确的信息。但是,我现在需要删除少于1000个航班的航空公司。我该怎么做?
library(readxl)
dataset <- read_excel(NULL)
View(NYC_Flights)
header = TRUE
stringsAsFactors = TRUE
#===================================================================
#======= Question 1 (1 Point) =======
# Q1-3. Make a table of the number of flights by carrier, and then remove the carriers with less than 1000 flights in 2014.
#====================== Write R code HERE ==========================
#Q1-3
table(NYC_Flights$carrier)