Sign Up

Have an account? Sign In Now

Sign In

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

Sorry, you do not have permission to ask a question, You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here
Sign InSign Up

SIKSHAPATH

SIKSHAPATH Logo SIKSHAPATH Logo

SIKSHAPATH Navigation

  • Home
  • Questions
  • Blog
    • Computer Science(CSE)
    • NPTEL
    • Startup
  • Shop
    • Internshala Answers
Search
Ask A Question

Mobile menu

Close
Ask A Question
  • Home
  • Questions
  • Blog
    • Computer Science(CSE)
    • NPTEL
    • Startup
  • Shop
    • Internshala Answers
  • About
    1. Asked: January 20, 2022In: Data Science

      Write RScript to create a recursive function to implement Fibonacci series. 

      I'M ADMIN
      I'M ADMIN
      Added an answer on January 22, 2022 at 11:18 pm

      recurse_fib <- function(n) { if(n <= 1) { return(n) } else { return(recurse_fib(n-1) + recurse_fib(n-2)) } } #type number of terms: nterms =10 # check if the number of terms is valid if(nterms <= 0) { print("Plese enter a positive integer") } else { print("Fibonacci sequence:") for(i in 0:(Read more

      recurse_fib <- function(n) {
      if(n <= 1) {
      return(n)
      } else {
      return(recurse_fib(n-1) + recurse_fib(n-2))
      }
      }
      #type number of terms:
      nterms =10
      
      
      # check if the number of terms is valid
      if(nterms <= 0) {
      print("Plese enter a positive integer")
      } else {
      print("Fibonacci sequence:")
      for(i in 0:(nterms-1)) {
      print(recurse_fib(i))
      }
      }
      See less
        • 1
      • Share
        Share
        • Share on WhatsApp
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
    2. Asked: January 20, 2022In: Data Science

      Create a dataframe Student, perform below mentioned operation on a data frame. Explain with proper example.  a) Write R Code …

      I'M ADMIN
      I'M ADMIN
      Added an answer on January 22, 2022 at 11:08 pm

      stu_data<-data.frame(name=c("James","harry","Robert","Larry","Rozer"), rollno=c(1:5), stream=c("Science","commerce","Biology","commerce","Science")) stu_data #a) Write R Code to convert all the values in a student dataframe into Matrix. stu_mat<-data.matrix(stu_data) stu_mat #b) Select the subRead more

      stu_data<-data.frame(name=c("James","harry","Robert","Larry","Rozer"),
      rollno=c(1:5),
      stream=c("Science","commerce","Biology","commerce","Science"))
      stu_data
      
      #a) Write R Code to convert all the values in a student dataframe into Matrix.
      stu_mat<-data.matrix(stu_data)
      stu_mat
      
      #b) Select the subset of Dataframe
      sub_set<-stu_data[c(1,4:5),c(1:3)]
      sub_set
      
      #c) Sort the data within frame
      print(stu_data[order(stu_data$rollno, decreasing = TRUE), ] )
      
      #d) Visualize the Dataframe usingplot ()
      plot.ts(stu_mat)
      See less
        • 0
      • Share
        Share
        • Share on WhatsApp
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
    3. Asked: January 20, 2022In: Data Science

      ______ is used to identify whether the provided dataset is a Dataframe. 

      I'M ADMIN
      I'M ADMIN
      Added an answer on January 22, 2022 at 10:26 pm

      You can check whether the provided dataset is dataframe or not using is.data.frame(Yourdatasetname) or, class(Yourdatasetname)

      You can check whether the provided dataset is dataframe or not using

      is.data.frame(Yourdatasetname) or,

      class(Yourdatasetname)

      See less
        • 0
      • Share
        Share
        • Share on WhatsApp
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
    4. Asked: January 20, 2022In: Data Science

      Write code to create vectors, then convert vectors into list and further list to dataframe.

      I'M ADMIN
      I'M ADMIN
      Added an answer on January 22, 2022 at 10:14 pm

      #create a vector v <- c(2,3,6) print(v) #convert vector to list v_list<-as.list(v) v_list #list to dataframe v_df<-as.data.frame(v_list) v_df

      #create a vector
      v <- c(2,3,6)
      print(v)
      
      #convert vector to list
      
      v_list<-as.list(v)
      v_list
      
      #list to dataframe
      v_df<-as.data.frame(v_list)
      v_df
      See less
        • 0
      • Share
        Share
        • Share on WhatsApp
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
    5. Asked: January 19, 2022In: Data Structure

      Which of the following is not an application of binary search?

      I'M ADMIN
      Best Answer
      I'M ADMIN
      Added an answer on January 19, 2022 at 11:22 am

      ANSWER: d) To search in unordered list

      ANSWER: d) To search in unordered list

      See less
        • -1
      • Share
        Share
        • Share on WhatsApp
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
    6. Asked: January 19, 2022In: Data Science

      Which of the following is not an inherent application of stack? a) Reversing a string b) Evaluation of postfix expression …

      I'M ADMIN
      I'M ADMIN
      Added an answer on January 19, 2022 at 11:20 am

      ANSWER: d) Job scheduling

      ANSWER: d) Job scheduling

      See less
        • 0
      • Share
        Share
        • Share on WhatsApp
        • Share on Facebook
        • Share on Twitter
        • Share on LinkedIn
    1 … 86 87 88 89 90 … 122

    Sidebar

    store ads

    Stats

    • Questions 1k
    • Answers 1k
    • Posts 141
    • Best Answers 89
    • Cloud Computing Notes 101: Learn Fundamentals, Service Models, and Virtualization!
    • This Free AI Tool Translates Entire Books in Minute !
    • 25 Essential Software Testing Questions: Flashcard Edition!
    • 27 C++ Questions & Answers – Quiz 1 Flashcards
    • Interactive Alphabet Flashcards for Kids: A to Z Learning Fun!

    Explore

    • Recent Questions
    • Questions For You
    • Answers With Time
    • Most Visited
    • New Questions
    • Recent Questions With Time

    Footer

    SIKSHAPATH

    Helpful Links

    • Contact
    • Disclaimer
    • Privacy Policy Notice
    • TERMS OF USE
    • FAQs
    • Refund/Cancellation Policy
    • Delivery Policy for Sikshapath

    Follow Us

    © 2021-24 Sikshapath. All Rights Reserved