example:
Colour vehicle city type
red car London Petrol
blue truck Paris Diesel
red car NewYork Electric
green van Barcelona Petrol
black motorbike LosAngeles Petrol
i.e. How to count number of times that "car" appears and it's "red" and "Petrol"
this is what I tried
sum(full_data$vehicle == "car"& full_data$Colour == "red"&
full_data$type == "Petrol")