Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started