Question: using R studio Using the mtcars dataset, take a sample of size 5 mpg values without replacement. Randomly sample and print 6 rows from mtcars
using R studio
Using the mtcars dataset, take a sample of size 5 mpg values without replacement. Randomly sample and print 6 rows from mtcars dataset (without replacement). HINT: Use the following syntax: sample(1:nrow(dataset_name), n)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
