I have this tibble
> DS90_2
# A tibble: 50 x 3
Parametro Tabla Valor
<chr> <chr> <dbl>
1 Aluminio total (Al) Tabla 1 5
2 Aluminio total (Al) Tabla 2 10
3 Aluminio total (Al) Tabla 3 1
4 Aluminio total (Al) Tabla 4 1
5 Aluminio total (Al) Tabla 5 10
6 Arsénico total (As) Tabla 1 0.5
7 Arsénico total (As) Tabla 2 1
8 Arsénico total (As) Tabla 3 0.1
9 Arsénico total (As) Tabla 4 0.2
10 Arsénico total (As) Tabla 5 0.5
# ... with 40 more rows
When I use filter() to column "Parametro", does not work:
> filter(DS90_2,Parametro== "Aluminio total (Al)")
# A tibble: 0 x 3
# ... with 3 variables: Parametro <chr>, Tabla <chr>, Valor <dbl>
But, when I change the column, it works:
> filter(DS90_2,Tabla== "Tabla 1")
# A tibble: 10 x 3
Parametro Tabla Valor
<chr> <chr> <dbl>
1 Aluminio total (Al) Tabla 1 5
2 Arsénico total (As) Tabla 1 0.5
3 Cadmio total (Cd) Tabla 1 0.01
4 Cinc total (Zn) Tabla 1 3
5 Cobre total (Cu) Tabla 1 1
6 Cromo total (Cr) Tabla 1 NA
7 Manganeso total (Mn) Tabla 1 0.3
8 Níquel total (Ni) Tabla 1 0.2
9 Plomo total (Pb) Tabla 1 0.05
10 Selenio total (Se) Tabla 1 0.01
I have checked spaces, letters and copied and pasted the name of the column and the selection to avoid making character errors.