1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
HACTEHA [7]
3 years ago
15

Consider the vector x: x <- c(2, 43, 27, 96, 18) Match the following outputs to the function which produces that output. Opti

ons include sort(x), order(x), rank(x) and none of these
Mathematics
1 answer:
Nookie1986 [14]3 years ago
7 0

<u>Completed Question</u>

Outputs to be matched to the functions are:

  • 1,2,3,4,5
  • 1,5,3,2,4
  • 1, 4, 3, 5, 2
  • 2, 18, 27, 43, 96

Answer:

  • sort(x): 2, 18, 27, 43, 96
  • order(x): 1, 5, 3, 2, 4
  • rank(x) : 1, 4, 3, 5, 2
  • none of these :  1, 2, 3, 4, 5

Step-by-step explanation:

Given the vector x: x <- c(2, 43, 27, 96, 18)

<u>Sort</u>

In R, the sort(x)  function is used to arrange the entries in ascending or descending order. By default, R will sort the vector in ascending order.

Therefore, the output that matches the sort function is:

sort(x): 2, 18, 27, 43, 96

<u>Rank</u>

The rank function returns a vector with the "rank" of each value.

x <- c(2, 43, 27, 96, 18)

  • 2 has a rank of 1
  • 43 has a rank of 4
  • 27 has a rank of 3
  • 96 has a rank of 5
  • 18 has a rank of 2

Therefore, the output of rank(x)  is: 1, 4, 3, 5, 2

<u>Order</u>

When the function is sorted, the order function gives the previous location of each of the element of the vector.

Using the sort(x) function, we obtain: 2, 18, 27, 43, 96

In the vector: x <- c(2, 43, 27, 96, 18)

  • 2 was in the 1st position
  • 18 was in the 5th position
  • 27 was in the 3rd position
  • 43 was in the 2nd position
  • 96 was in the 4th position

Therefore, the output of order(x) is: 1, 5, 3, 2, 4

You might be interested in
Simplify the expression: z8 * z-3
MissTica

Answer:

z^5

Step-by-step explanation:

z^8  * z^-3

Since we are multiplying exponents and the bases are the same, we can add the exponents

z^(8-3)

z^5

3 0
3 years ago
Complemetary angles are two angles whose measures add up to 90 degrees. The ratio of the measures of two complementary angles is
pochemuha

Let A and B be the two complementary angles.

A = smaller angle = 2x

B = larger angle = 13x

x = some unknown number

Note how the ratio A:B turns into 2x:13x which simplifies to 2:13

A+B = 90 ... because the angles are complementary

2x+13x = 90 ... substitution

15x = 90

x = 90/15

x = 6

A = 2*x = 2*6 = 12 degrees

B = 13*x = 13*6 = 78 degrees

The two angles are 12 degrees and 78 degrees.

Check:

A/B = 12/78 = (2*6)/(13*6) = 2/13, so A:B = 2:13

A+B = 12+78 = 90

3 0
3 years ago
Jerry weighs 95 pounds. This is 15 pounds less than Mikey weighs. How much does Mikey weigh? *
monitta

Answer:

Mikey weighs 110 pounds.

Step-by-step explanation:

Because Mikey weighs 15 pounds more, just add 95 pounds and 15 pounds to get Mikey's weight:

95 + 15 = 110

I hope this helps you!

Please rate my answer and give me Brainliest!

Have a nice day! :)

6 0
3 years ago
Read 2 more answers
Find m (2x+14)<br> (X+7)
LekaFEV [45]

Answer:

=

Step-by-step explanation:

Ⓗⓘ ⓣⓗⓔⓡⓔ

Well, assuming m of angle ABD is 90 degrees, then you would add and then solve.

2x+14+x+7=90

3x+21=90

3x=69

=

(っ◔◡◔)っ ♥ Hope this helped! Have a great day! :) ♥

, !

4 0
4 years ago
Consider the linear equation y = 2x - 4. Write an equation in slope-
HACTEHA [7]
Answer: y=2x+14

Explanation:
Y=mx+b
Y= 2x-4
M=2

Y= 2x+b

2 = (2 x -6) + b
2=-12+b
12+2=12+b
-12
14=0+b
14=b

Y=2x+14

4 0
3 years ago
Other questions:
  • What is the average of 66 and 149.
    14·2 answers
  • Please explain the process!
    15·1 answer
  • A triangular prism and two nets are shown :
    7·1 answer
  • Simplify 9 to the 2nd over 9 to the 7th. 95 1 over 9 to the 9th 1 over 9 to the negative 5th 1 over 9 to the 5th
    8·1 answer
  • Gavin bakes 70 cookies in a hour. how many cookies can he bake in 4 hours?
    5·1 answer
  • Please help i put in more points! u dont need to show work and i just need it to be right please!
    13·2 answers
  • it costs $4 dollars to enter the fair. each ride costs $2.50. you have $21.50. how many rides can you go on?
    12·1 answer
  • Characteristics of uniform motion btw why I m so bor dd​
    15·2 answers
  • Plisss help write the linear equation that vives the rule for this table ​
    6·1 answer
  • On a piece of paper, graph the system of equations. Find the solution to the system. y=2x-1 y=x+5
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!