I am facing an issue while subsetting a data frame in R. Data frame is att2 which has a column filter_name based upon which I want to subset. The unique values for this column are below.
unique(att2[["filter_name"]])
# [1] title Type Operating_System Occasion Brand
148 Levels: Accessories Age Antennae Art_Style Aspect_ratio ... Zoom
This shows that Brand is a value for filter_name column. But when I subset the frame using below code, it gives 0 rows as below.
att3 <- subset(att2, filter_name == 'Brand')
> att3
[1] a b c filter_name
<0 rows> (or 0-length row.names)
I am not able to find out the reason. Has anyone faced this kind of issue?
att2to test it.