Error: Problem with summarise() column shippingcost.
i shippingcost = sum(shippingcost).
x invalid 'type' (character) of argument
After a quick look in my dataset, it seems like the column shippingcost is a character:
class(sales$shippingcost)
[1] "character"
However, when trying to change it to a numeric/double only the whole numbers get converted, all the doubles get introduced as NA's:
mutate(shippingcost = as.numeric(shippingcost))
Warning message:Problem with mutate() column shippingcost.
i shippingcost = as.numeric(shippingcost).
i NAs introduced by coercion
Same goes for as.double, any ideas on how to solve this?