I'm very new to R community and could really use some help. I have this column contains unique values of:

- corn
- good corn
- bad corn
- corn fine

Now, I want to find out how many rows contain %corn% including the ones with space.

I tried many options but to no avail:

```
nrow(subset(df, col_name == '\\bcorn\\b'))
```

and

```
nrow(subset(subset(df, col_name == '\\<corn\\>'))
```

They all return zero.

This code right here return only 1; which is the first row

```
nrow((subset(subset(df, col_name == 'corn'))
```

How can I make it return the number of all that contains 'corn' including space? Please let me know if I can provide more information. Thanks