error trying to build a histogram using r with the rStudio application
The following code :

data.frame(table(country$continent))


will create a dataframe where one column is the continent and the other is the number of countries in the continent.