So I'm working in this table:
Raumeinheit | Langzeitarbeitslose |
---|---|
Hamburg | 33,23 |
Berlin | 44,56 |
I'm trying to calculate the mean of Langzeitarbeitslose but I can't because
is.numeric
comes out as false because the column Langzeitarbeitslose is defined as character.
I think this might be because here in Germany we use "," to show decimals and not "."
I already tried
as.numeric(gsub(",", ".", West_data$Langzeitarbeitslose))
that gave me a working table in the console preview but when I looked at the table with
view(West_Data)
It still showed the Decimals of Langzeitarbeitslose seperated with ',' and
is.numeric(West_Data$Langzeitarbeitslose)
came back as false.