Question

In: Statistics and Probability

Some questions to orientate yourself. (a) Use the function class to find the class to which...

Some questions to orientate yourself.
(a) Use the function class to find the class to which the follow- ing objects belong: golub, golub[1,1],golub.cl, golub.gnames, apply, exp, gol.fac, plot, ALL.
(b) What is the meaning of the following abbreviations: rm, sum, prod, seq, sd, nrow.
(c) For what purpose are the following functions useful: grep, apply, gl, library, source, setwd, history, str.

Solutions

Expert Solution

a. Note : This question is based on a particular object, please provide the data file.

b) What is the meaning of the following abbreviations:

rm - remove : Remove an object from the environment.
sum - summation : Addition of a number
prod - product
seq - sequence
sd - standard deviation
nrow - no of rows.

(c) For what purpose are the following functions useful:

grep - it is used to change if a string contains a particular string or character.

apply - it is used to apply a particular function over all the rows or columns as defined by the user.

gl helps to generate factors by indicating the pattern of their levels.

library - It is used to load a particular package in the current R session.

source - using this command you can call another R script into the current R session.

setwd - helps you set the current working directory.

history - It helps to recall the last 25 commands that were used.

str - it give you the structure of the dataframe or the Robject.


Related Solutions

Which style of communication do you find yourself using the most? What are some common barriers...
Which style of communication do you find yourself using the most? What are some common barriers to effectively communicating with those who have a different style? How can you adapt to other styles? With which style do you think you would have the most difficulty communicating? everything should be organized with introduction and conclusion too! thanku
The questions in this assessment use the following. class R { ... } class A extends...
The questions in this assessment use the following. class R { ... } class A extends R { ... } abstract class B extends R { ... } final class C extends R { ...} class D extends A { ... } class E extends B { ... } class F extends B { ... } // none of the classes implement a toString() method [0] Draw a class hierarchy for the classes defined above. [1] No or Yes: class...
C++ ONLY! Implement the find function for the List class. It takes a string as an...
C++ ONLY! Implement the find function for the List class. It takes a string as an argument and returns an iterator to a matching node. If no matching node, it returns a null iterator. #include <iostream> #include <cstddef> #include <string> using Item = std::string; class List { private: class ListNode { public: Item item; ListNode * next; ListNode(Item i, ListNode *n=nullptr) { item = i; next = n; } };    ListNode * head; ListNode * tail;    public: class...
Questions 1: How do you find the benefit-cost analysis and the Valuation Principle can help yourself...
Questions 1: How do you find the benefit-cost analysis and the Valuation Principle can help yourself in your life outside of corporate? Questions 2:  Many lottery winner didn't do well within a few years of winning the lottery. Do you have any advice for these now luckless individuals? Why do so many lottery winners end up deeply in debt?
Describe a situation in which you might find yourself where you would need to perform an...
Describe a situation in which you might find yourself where you would need to perform an immediate titration. Think hard. This should be a solid paragraph answer.
Prepare a skills audit for yourself. Ask yourself the following questions and write down your answers....
Prepare a skills audit for yourself. Ask yourself the following questions and write down your answers. What are the skills you wish to develop? How are you going to develop them? What action needs to be taken? What time frame is required? Select one of the development skills which you have identified and develop a professional development program that will provide the necessary training. Document your plan (220–250 words) and provide reasons for the professional development strategies you have chosen.
FYIPI (Find yourself in PI) In this assignment you will find a numeric string (if it...
FYIPI (Find yourself in PI) In this assignment you will find a numeric string (if it exists) within a file containing the first 1 million characters of the decimal expansion of PI. The numeric string in question is a 6 character string representing your birth date. E.g., if your birth date is January 1, 1984, then the string is 010184. The file containing the first 1 million characters of the decimal expansion of PI is named pidigits.txt and is available...
JAVA: (Find yourself in PI) In this assignment you will find a numeric string (if it...
JAVA: (Find yourself in PI) In this assignment you will find a numeric string (if it exists) within a file containing the first 1 million characters of the decimal expansion of PI. The numeric string in question is a 6 character string representing your birth date. E.g., if your birth date is January 1, 1984, then the string is 010184. The file containing the first 1 million characters of the decimal expansion of PI is named pidigits.txt and is available...
Below is some code for a rectangle class that needs to be completed. Add member function...
Below is some code for a rectangle class that needs to be completed. Add member function declarations to the class declaration and member function definitions below the declaration. For the accessor functions, you can add the definitions directly into the class declaration. The goal is to code the class so that it works wthout changing the main program #include <iostream> using namespace std; // rectangle has a vertical height and horizontal width // The class below is a rectangle. It...
Implement a function to find a node in a binary search tree. Using the following class...
Implement a function to find a node in a binary search tree. Using the following class and function definition. If a node with a matching value is found, return a pointer to it. If no match is found, return nullptr. #include <iostream> class BTNode { public: int item; BTNode *left; BTNode *right; BTNode(int i, BTNode *l=nullptr, BTNode *r=nullptr):item(i),left(l),right(r){} }; BTNode *root = nullptr; BTNode *find(int item) { //implement code here return nullptr; } int main() {    root = new...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT