AN INTRODUCTION TO R
R> plot(log(marketvalue) ~ log(sales), data = Forbes2000,
col = rgb(0,0,0,0.1), pch = 16)
Scatterplot with transparent shading of points of the logarithms of market value and sales.
Ex. 1.1 Calculate the median profit for the companies in the United States and the median profit for the companies in the UK, France and Germany.
Ex. 1.2 Find all German companies with negative profit.
Ex. 1.3 Which business category are most of the companies situated at the Bermuda island working in?
Ex. 1.4 For the 50 companies in the Forbes data set with the highest profits, plot sales against assets (or some suitable transformation of each variable), labelling each point with the appropriate country name which may need