I have the following dataframe which contains several values for a single variable (Problemas.habituales) (see below)
> read.csv("http://pastebin.com/raw.php?i=gnWRqJnY")
Nombre.barrio Problemas.habituales
1 Actur Robos con violencia, Agresiones, Otros problemas
2 Actur Ningún problema
3 Centro Robos con violencia, Agresiones
4 San Pablo Ningún problema
5 San Pablo Ningún problema
6 Delicias Hurtos o robos sin violencia
The reason for this structure is that I created an online questionnaire which accepts multiple answers to the same question, but the way data is stored is a problem because there's no way to create a barplot displaying all common problems within every neighborhood without previously manipulating the dataframe.
Unfortunately I do not know how to manipulate the dataframe (I need it to be on a data frame since I need to use ggplot2 later on, which does not accept data tables) in a way that every row contains a single value for the variable "Problemas.habituales".