Here is my simple R code. I want to only keep values which are smaller than 1. 

Does anyone have any good ideas? Thanks.

```
df <- read.csv('~/Downloads/foo.tsv', sep='\t', header=F, stringsAsFactors=FALSE)
names(df) <- c('foo')
df$foo <- as.numeric(df$foo)

goodValue <- df[df$foo <= 1]

```

The last line has the following error: 

> 
> `Error in`[.data.frame`(df, df$foo <= 1) : undefined columns
>  selected`
> 
> 
>