My R data.frame df looks like:
df
Name Amount 1 \"A\" 150 2 \"B\" 120 3 \"C\" \"NA\" 4 \"D\" 160 . . .
Based on the syntax provided
Select * Where Amount = min(Amount)
You could do using:
library(sqldf)
Using @Kara Woo's example df
sqldf("select * from df where Amount in (select min(Amount) from df)") #Name Amount #1 B 120 #2 E 120