Question: Q.4) [10 Marks] a) Write a code to read data from excel file using R-language? b) PTCL Charji Evo device has different number of users

 Q.4) [10 Marks] a) Write a code to read data from

Q.4) [10 Marks] a) Write a code to read data from excel file using R-language? b) PTCL Charji Evo device has different number of users in different zones of Karachi (i.e. Central, North, South, East, West with percentage 25, 25, 2015, 15 respectively). Write R-language code to visualize the data in the form of pie chart and histogram? c) What is the output of the following code in R-language? CODE # 01: >list1=list("Adeel", "Mannan",11,"BS-CS","MS-SE") >list1 >list2=list("Asst. Professor", "FEST-HIET-Deptt. of Computing") >list3=merge(list1,list2) >list3 >list4=c(list1, list2) >list4 CODE #02: > sum(2,7,5) > sum(x) #if any element is NA or NaN, result is NA or NaN > sum(x, na.rm-TRUE) # this way we can ignore NA and NaN values > mean(x, na.rm=TRUE) > prod(x, na.rm=TRUE)

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!