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
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?
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.
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.
JAVA -The next three questions use the following class: class Identification { private int idNum;   ...
JAVA -The next three questions use the following class: class Identification { private int idNum;    public Identification() { this(0); }    public Identification(int startingIdNum) { idNum = startingIdNum; }    public int getIdNum() { return idNum; }    public void setIdNum(int idNum) { this.idNum = idNum; } } Here is one program using the above class: public class Main {    public static void main(String[] args) {        Identification i1 = new Identification();        Identification i2 =...
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...
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...
In Angel, you will find a class called Employee. This class should include a constructor which...
In Angel, you will find a class called Employee. This class should include a constructor which sets name to blanks and salary to $0.00 and a constructor which sets name to a starting name and salary to a set amount. Additionally, the class should include methods to set the name and salary and return the name and salary. Create another method to return the name and salary nicely formatted as a string (hint – research the toString method). You will...
In Angel, you will find a class called Employee. This class should include a constructor which...
In Angel, you will find a class called Employee. This class should include a constructor which sets name to blanks and salary to $0.00 and a constructor which sets name to a starting name and salary to a set amount. Additionally, the class should include methods to set the name and salary and return the name and salary. Create another method to return the name and salary nicely formatted as a string (hint – research the toString method). You will...
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT