Question: ( 2 points ) Create a data frame df with one numeric vector indices and two character vectors firstNames and surnames with length 5 ,
points Create a data frame df with one numeric vector indices and two character vectors
firstNames and surnames with length respectively. The vector indices consists of randomly
chosen values from to the same values are NOT allowed to appear several times The
entries of firstNames are randomly chosen from the names AlexPeterTomthe same
values are allowed to appear several times and the entries of surnames are randomly chosen
from the names James and Millerthe same values are allowed to appear several times
# Your solution
b point Select all elements of the data frame df where the value of indices is greater than
Also, select all elements of the data frame df where firstNames is Alex
# Your solution
c point Select all elements of the data frame df where both the value of firstNames is
Tom and the surnames is Miller
# Your solution
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
