Welcome to the Simplilearn Community

Want to join the rest of our members? Sign up right away!

Sign Up

Search results

  1. M

    DATA SCIENCE WITH R | Nov 28 - Jan 10 | Sabyasanchi (2020)

    I am getting 'NULL' as the output. Code: first_name<-c('First1', 'FIrst2', 'First3') second_name<-c('Second1','Second2','Second3') roll_no<-c('1','2','3') class1<-data.frame(roll_no,first_name,second_name) class1 class(class1) str(class1) summary(class1) class1$roll_no levels(class1$roll_no)...
  2. M

    DATA SCIENCE WITH R | AUG 01 - AUG 30 | PRIYANKA (2020)

    Hi Priyanka! I am done with the project and would like to know as to how am i supposed to share the code. Would it be fine if i copy it in notepad and then convert it to pdf. Secondly, i created a couple of histograms as a part of the project. The issue is that when i export them to pdf, the...
  3. M

    DATA SCIENCE WITH R | AUG 01 - AUG 30 | PRIYANKA (2020)

    Assignment on 15th Aug 2020 #1: Legends, change values of X-axis & y-axis, how to add labels Code: # Bar Chart - Total revenue by month region Wise colors = c("Yellow","blue","red") years <- c("2011","2012","2013","2014","2015") countries <- c("United States","India","China","UK") # Create...
  4. M

    DATA SCIENCE WITH R | AUG 01 - AUG 30 | PRIYANKA (2020)

    Query: Using ggplot2 to create Box Plot Code: data("airquality") View(airquality) str(airquality) airquality$Month<- factor(airquality$Month , labels = c("May", "Jun", "Jul", "Aug","Sep")) airquality$Month ggplot (airquality, aes (x = Month, y= Ozone))+ geom_boxplot (fill = "blue", colour =...
  5. M

    DATA SCIENCE WITH R | AUG 01 - AUG 30 | PRIYANKA (2020)

    Assignments -09th August 2020 #1. Installing Package "xlsx Code: install.packages("xlsx") library(xlsx) Output: Error: package or namespace load failed for ‘xlsx’: .onLoad failed in loadNamespace() for 'rJava', details: call: fun(libname, pkgname) error: No CurrentVersion entry in...
  6. M

    DATA SCIENCE WITH R | AUG 01 - AUG 30 | PRIYANKA (2020)

    Thanks a lot for the clarification.
  7. M

    DATA SCIENCE WITH R | AUG 01 - AUG 30 | PRIYANKA (2020)

    Assignments - 08th August 2020 #1. Assignment = Appending with Strings Code: Name1="Mukund" Name2="Welcome" Name3=append(Name1,Name2) print(Name3) Output: [1] "Mukund" "Welcome" #2. Assignment: How to read 3 vectors Code: V1= c(92,93,34,95,43,33,80,99,10) V1[5] V1[c(2:4)] Output...
  8. M

    DATA SCIENCE WITH R | AUG 01 - AUG 30 | PRIYANKA (2020)

    Assignment (08th August 2020) # Assignment = Appending with Strings Code: Name1="Mukund" Name2="Welcome" Name3=append(Name1,Name2) print(Name3) Output: [1] "Mukund" "Welcome"
  9. M

    DATA SCIENCE WITH R | AUG 01 - AUG 30 | PRIYANKA (2020)

    I did not get the output for this 'SWITCH' statement. It just runs the code. Name="XX" switch(Name,KK={print('Student')}, Other={print('Trainer')}) Output: Name="XX" > switch(Name,KK={print('Student')}, Other={print('Trainer')}) Please clarify.
  10. M

    DATA SCIENCE WITH R | AUG 01 - AUG 30 | PRIYANKA (2020)

    Assignments - 2nd August 2020 : #It enables assigning a series of elements in continuity to the variable. c=2:8 c print(c) Output: c [1] 2 3 4 5 6 7 8 %in% # %in% is like an intersection operation used in sets. If we have two variables and we need to check the presence of the value of one...
  11. M

    DATA SCIENCE WITH R | June 20 | Priyanka

    Issue with Wordcloud: Code: install.packages("tm") install.packages("wordcloud") install.packages("RColorBrewer") library(tm) library(wordcloud) library(RColorBrewer) setwd("E:/Simplilearn/R Programming/Priyanka/Datasets/Data Sets - Session 3 and Session 4") getwd()...
  12. M

    DATA SCIENCE WITH R | June 20 | Priyanka

    Solutions to Assignments: # Session 3 - 27th June,2020: # Question 1 : Concatenating two strings in R Code: m1<-"Good" m2<-"Evening" m_append<-paste(m1,m2,sep=" ") print(m_append) class(m_append) Output: > m1<-"Good" > m2<-"Evening" > m_append<-paste(m1,m2,sep=" ") > print(m_append) [1]...
  13. M

    DATA SCIENCE WITH R | June 20 | Priyanka

    %in% is like an intersection operation used in sets. If we have three variables and we need to check the presence of the value of one of the declared variables in another variable, we can make use of the %in% operator. For instance, we have three variables namely d, e, and f, wherein...
  14. M

    DATA SCIENCE WITH R | June 20 | Priyanka

    Nested If Else: Code: x<-25 if(x>0){ print("Positive Number") }elseif(x<0){ print("Negative Number") }else{ print("Zero") } Error: Error: unexpected '}' in "}" Where have i missed the '}'?
  15. M

    DS with R | Nimisha Pandey | May 25

    Hi! Please Check the code below: num<-as.integer(readline("Please Enter a Number:")) result<-'Prime' if(num>2) { for(i in 2:(num-1)) { if(num%%i==0) { result<-'Non Prime' break } } } print(result) Upon execution, i get the result, as shown below: Error in 2:(num - 1) : NA/NaN argument >...
  16. M

    DS with R | Nimisha Pandey | May 25

    A BASIC QUERY: In the code (TRUE | FALSE ) & (FALSE != TRUE) == TRUE what does (TRUE|FALSE) indicate? I understood the second part of the command though. I believe this was discussed in class. I got a bit confused while taking up the knowledge check section in the LMS.
  17. M

    DS with R | Nimisha Pandey | May 25

    You can use the Open File command under the header File and select the required file from your local folder. Does this solve your concern?
  18. M

    Class Attendance Marking

    My class attendance has not been marked for the R Programming Certifcation course Batch which started yesterday (25th May 2020). The class was from 20:00hrs to 23:00hrs. PLease look into this.
  19. M

    Please comment if you haven't got Simplitalk access

    Hi Alisha, I do not presently have access to Simplitalk. Kindly provide me access for the same. Thanks.
Top