Question: Define a function fsq that squares a number. Define the following dataframe a ) Extract only those elements of row 2 that are greater than
Define a function fsq that squares a number. Define the following dataframe
a Extract only those elements of row that are greater than
b Apply the function fsq on the third row of the function. Print the dataframe out to check if row three
is the only one that is squared.
c Print the dataframe with the fifth column excluded.
Define a x identity matrix and convert it into a dataframe.
in r
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
