Suppose we evaluate the performance of a player based on the player's HR and RBI score. Assume each HR counts as 3 points while each RBI counts as 2 points.
Find the playerIDs who have the highest score. -Select a random sample of size 1000 using simple random sample approach (without replacement), then find the playerIDs who have the higest HR values among the selected sample.
Create a dataset such that (a) it contains the following variable playerID, yearID, HR, RBI and (b) 1990=yearID=1999 and HR>5. It is just idea but I need R studio code. help me out about codes for these question.