I want to select rows from a data frame based on partial match of a string in a column, e.g. column \'x\' contains the string "hsa". Using sqldf -
sqldf
LIKE should work in sqlite:
LIKE
require(sqldf) df <- data.frame(name = c('bob','robert','peter'),id=c(1,2,3)) sqldf("select * from df where name LIKE '%er%'") name id 1 robert 2 2 peter 3