We have a data frame from a CSV file. The data frame `DF` has columns that contain observed values and a column (`VaR2`) that contains the date at which a measurement has been taken. If the date was not recorded, the CSV file contains the value `NA`, for missing data.
We would like to use the subset command to define a new data frame `new_DF` such that it only contains rows that have an `NA'` value from the column (`VaR2`). In the example given, only Row 2 will be contained in the new `DF`.
以上就是Subset of rows containing NA (missing) values in a chosen column of a data frame的详细内容，更多请关注web前端其它相关文章！