visit elements in data.frame