I am trying to plot a graph that displays the cost of apps but only if they cost more than 0 (aren't free) I have tried the filter function but got nowhere.
if (df$Price > 0){
barplot(table(df$Price))
}
I have also tried an if statement but it gives me a warning message saying:
In if (df$Price == test) { :
the condition has length > 1 and only the first element will be used
I am new to R studio so any help would be appreciated