(Solved) : Mysites Site1 Myquad Ul Upperlayer 5 Lowerlayer 10 Q44171196 . . .
mySites should be Site1myQuad should be ULupperLayer should be 5lowerLayer should be 10
Hoewone m a kord qures. O recover Sample Source on Save 9 . 1. recover SampleInfo <-function(sampleID) Obute to 2 Source -The line below opens the sampleID sample_ID_list <- readlines (sampleID) The line below sample_data_frame <data.frame(sample_ID_11st, row. names – NULL, check.rows – FALSE, check names – TRUE, fix. empty.nanes TRUE, stringsasFactors – default.strings ASFactors) The line below data. str <- ‘siteluL05-10 -The line below mysites <- gsub ”.’, data, str) 20 The line below myQuad <- gsub “, “data.str) The line below upper Layer – gsubc-‘, ‘. gsub _[0-9]+5′, ”, data.str)) The line below TowerLayer – gsub(“,”, gsub’.’, ”, data, str)) Delete the next three lines and replace it with your answer recover Sampleinfosample) 102. Problem 3: Making more problems 103 104 >>Your Tab mate was clever! (oh no.) They created unique ids for each sample location based on information about the site name quadrent, as well as two depth readings denoting upper and lower bounds. You need to recover each of these four pieces of information from their Sample 1d and generate four new columns 105 106 >For example: A sample ID as follows siteULO5-10′ should break down to (“sitel”, “L”, 5, 10). Note that the returned data frane should have the following structure: upper_layer and lower layer should be numerical and sample, site, and qudrate should be characters (or factors). Show transcribed image text Hoewone m a kord qures. O recover Sample Source on Save 9 . 1. recover SampleInfo
Expert Answer
Answer to mySites should be Site1myQuad should be ULupperLayer should be 5lowerLayer should be 10…
OR