You are on page 1of 1
‘About the Course rovowwan Aska Q Unit 7 - Week 6 - Data management with display paste, split, find and replacement, manipulations with alphabets, evaluation of strings, data frames. Course outtine Insta operatons, sing (Gata and ogea! operators. executors anions, dela Imanagement th saunas, ‘Wook $= Data managoment whoa, rine. {actors Data management ‘wn sta, lyon Week = Data managamant ‘wt say pate en hd replacement Imanpulatins wo apenas, amen, " (Cones) (Corts) Date per ba ie rm Awsigeent 6 Sokon Wook 7 - Data frames, port ‘orm atti unetions, comaiaion of dots Wook §- Graphics and ts, ‘oust oramine ‘rampes, Live Session Assignment 6 Due on 2019-10-08, 23:58 IST, +) Which one ofthe folowing ae the respective correct commands to obtain the names of columns and rows ina deta pai frame cities? colnames(cites) and. rownamestites) calneltes) and rowa(ltes) cames(eies) and mames(cties) ‘Accept Answers: (olnames{ctes) and rownames(ites) 2) Which one ofthe folowing isthe correct command te obtin the dimension, name, and type ofeach variable in a data pain frame cts? strings) sermamedciti) series) stringnamecites) one neers incomet. ‘coi Anewors Sree) 5) Which one ofthe folowing isthe correct command to extrac the variable villages from a data frame cities ? 10m sume: mame(cesvilages) ‘name(vlagesites) cites$valages to, anor iicore. Accepies Anewer: Ghiessvlages 4) Which one ofthe folowing isthe correct command to extrac the information on the vllage whose name ‘poi | Vilage23 contained inthe variable villages from a data frame cities? villagesSetes$Vilage23 ides" Vige23",*villges"] Village23SciiesSvittoges ‘Viage23fcites,vilages] ‘Accent Anewes: hse *Villagez3, "vilages"] 5) Answer Question 8-7 on the basis of the following information: 1 point Consider the data tramo painters inthe library MASS. Use command 1ibrary (MASS) toload the library painters and Uso the command attach painters) to tlach the database painters Question: Which ona ofthe flowing is raepectivaly the cortact command to draw information on those painters who have used the "Colour coded a8 § and are from “Schoo!” B from the data frame painters and what is the corresponding outcome? subset (painters, Colour=5 & School==B) ‘and Composition Drawing Colour Expression School Fourbus 2) Which one ofthe folowing are respectively the correct commands to draw the information and output on those paint painters who have used the "Colour coded as 6 , "Schoo! as B when information on te variables "Drawing" and "Expression Is. removed from the data frame painters and its cortesponding outcome? aubect (painters, School=B & Colour=5, select=o(-2/-4)) end Composition Colour Schoo Da vines SB Gusiio Romano is 5 Michelangelo 8 5 8 subset (painters, School==" ‘and -2,-4)) Composition Drawing Colour Expression School Da vines is ass uo B Guilio Romano oss uo Michelangelo 8 os eB subset (painters, School=B & Colour=5, select=c(-2/-#)) and Composition Drawing Colour Expression School ba vines ae 8 ue Guslio Romano BS “woB Michelangelo soo 8 a8 aubeet (painters, School="B" ¢ Colour=="5", select=o(-2,-4)) ‘and composition Colour School Volterra 2 = ‘econo Anewor Subset (painters, School: and "B" & Colour—="5", select=<(-2,-4)) Composition Colour School Yoterra @ 3 o 8) A comme separated value data fie named as marks.sv having header can be correctly ead in by which ofthe point faliowing command? readesv("marks.sv",header= TRUE) ead esv("marks.csv", header-FALSE) csvreadimarks.esy header-FALSE) ead esy'marks sv" on never icamet ‘capi Arewors ‘read. markscs",header= TRUE) 8) Aspread sheet crested in MS-Excel software is named as marks.xsxnot having header. The sheet number 4of this fle pom can be correctly read in Ry wich of the flowing command? (Using the trary sx") read ale" marks lst”, shectndexed,hender= FALSE) read xnxoarks ex, shetindexed, header= FALSE) read.escel marks isa”, sbectndex header=“TRUE) readalsfmarks xls, sheetindex=4,header= TRUE) on reverse Aecertes Anewer: ‘reads marks", sheedndes—t,header= PALSB) 10) Aspread shoot created in MS-Excol software is named as marks.xlsx having header. One of th sheets in this fle 1 pomnt whose name is Chemis can be readin by which of he following command? ead doe marks ls", shostName=" Chemistry" eader=EALSE) red.excel marks” sheetName=" Chemisty, header=TRUE) readloe(marks.s, sheetName=" Chemistry", header=TRUE) readalse("marksalsx",name=" Chemistry", header=TRUE) en sneer. ‘AeceptnsAnawes: ‘read sex" marks-lsx", sheetName="Chemistr,header=TRUE)

You might also like