You have a long vector of income of people in a state. Income ranges from 0 to 10,000. You are to pick 500 observations that have salary between 5000 and 7000. How would you do it?
You are asked to generate 100 random numbers for a simulation for a physical parameter such as temperature or pressure etc. Is this information sufficient for you to complete the task?
You are trying to read a dataset in R that contains the US 5 digit zip codes. By default R will convert the zip codes to numeric. However you want to read the zip codes as character. Which of the following options in R can you use to specify column type?