Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and the Yahoo Answers website is now in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.
jay
R function explain cat function?
Use the R script to finish the following operations ( Explain question 3)
(1) Use ’rexp’ to generate 50 exponential random variables with rate 2, and store them in a vector called ’rand.vec’
(2) Turn the vector ’rand.vec’ into a 5x10 matrix with option ’byrow = T’, and assign the name ’rand.mat’ to the matrix.
(3) Use ’cat’ function to output the value of the elements in the 4th row of the matrix whose value is greater than 0.5.
My code:
rand.vec <- rexp(50, rate = 2)
rand.mat <- matrix(rand.vec, nrow = 5, byrow = T)
cat(rand.mat[4,rand.mat[4,]>0.5])
Can you explain the cat function and how the code "cat(rand.mat[4,rand.mat[4,]>0.5])" extracts elements in the 4th row of the matrix whose value is greater than 0.5.
thank you
Mathematics2 years agoHow can I determine if an event that happened is more consistent the realism or liberalism?
I am looking at world news and need help determine if the even that occurred is more consistent with realism of liberalism
homework help
2 AnswersHomework Help4 years agoRealism and Liberalism in news?
How can I tell if a news story is more consistent with liberalism or realism. I know they can be either or through perspective but what can I look out for to determine factors of Liberalism and Realism.
2 AnswersPolitics4 years agoIn which of the following pairs of alkanes are the two members of the pair constitutional isomers?
In which of the following pairs of alkanes are the two members of the pair constitutional
isomers?
A. octane and 2-methyloctane
B. 2,3-dimethyloctane and 2,3-dimethylnonane
C. nonane and decane
D. 3-methyldecane and 3,4-dimethynonane
E. none of the above
Answers is D but can I have an explanation? Thanks!!!
1 AnswerChemistry4 years agoWhat is the the electron configuration for Ga+?
1 AnswerChemistry5 years agoHalf reaction chemistry?
The half-reaction for the reduction of molecular oxygen to water in acid solution is __________
A. 2H2O(l) ---> O2(g) + 4 H+(g) + 4e–.
B. O2(g) + 2H2(g) ---> 2H2O(l).
C. O2(g) + 2H2(g) + 4e– ---> 2H2O(l).
D. O2(g) + 4 H+(g) + 4e– ---> 2H2O(l).
E. O2(g) + 4 H+(g) ---> 2H2O(l) + 4e–.
I tried setting up the half reaction but i didnt get their choices...
and the acid solution would contain the H+?
The answer is D
Someone kindly explain how solve it
thank you
1 AnswerChemistry5 years agoWhat does it mean to let the desert eagle sing?
2 AnswersOther - Music5 years agosuppose y varies jointly with x and z. when z=14 and x=3.5 y =306.25?
What is the value of z when x=13 and y=731.25
1).9
2).13
3).14
4).19
Explain please
1 AnswerMathematics7 years agowhich expression is equal to( 8x^3-18x^2+15x-6)÷(2x-3)?
Multiple choice.
A).4x^3-3x-3
B).(4x^3-3x+3)+(3/2x-3)
C).(4x^3-10x+30)-(96/2x-3)
D).(4x^3-3x-3)-(3/2x-3)
Please explain I've spent to much time on this I dont understand it.
2 AnswersMathematics7 years agoin what quadrant does -1-3i lie?
In which quadrant does the sum of 3+2i and -4-5i lie?
Explain please
10 points!
1 AnswerHomework Help8 years ago1 over 2-i is equivalent to?
A)-2-i
B) 2+i
C) 2+i over 3
D) 2+i over 5
10 points please explain
3 AnswersMathematics8 years agoIs x+x the same as x+1?
10 points
Not really sure.. I might be thinking to hard
5 AnswersMathematics8 years agoWhat sort of person was johanne Vermeer?
3 AnswersPainting8 years agoAnyone try pb and nuttela sandwich?
1 AnswerVegetarian & Vegan8 years ago