Question: 1) Complete the following R programming in a new notebook: A) Create a vector called Variants with the following sequences, Variant_alpha = MDRGEFT Variant_beta =

1) Complete the following R programming in a new notebook:

A) Create a vector called "Variants" with the following sequences, Variant_alpha = "MDRGEFT" Variant_beta = "MDRASYMMG" Variant_delta = "MERSEFMT" ... and then print out the class of the variable "Variants." Create a vector called "Variant_Names" with the variant names listed above.

B) Calculate (i) The length of each variant saved as a vector, (ii) The number of methioinines in each variant saved as a vector "Num_Met", (iii) The number of glutamic acids or aspartic acids in each variant, saved as a vector "Num_Neg" (iv) The net charge of each variant saved as a vector "Net_Charge" & a factor "Net_Charge_factor". Create another vector called "Matrix_columns" out of the vector and factor names.

C) Create a matrix with the row titles equal to the "Variant_Names" and the column titles equal to "Matrix_columns". Populate the matrix and give it an intuitive name. Then, Create a data frame "Variant_Dataframe" from the vectors to match the matrix structure above. Lastly, Create a list of the vector Variant Names, the matrix you created, and the dataframe "Variant_Dataframe." How many different ways can you print out "Variant_delta" from this list?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!