What result get when r attempts to compute log of zero


A) Why might it be a bad idea to create objects named T or F? (hint, try typing a T at the command prompt). Write your answer as a comment in your R script.

B) Suppose you have the vector 2 0 1 8 6 7 5 3 0 9 and then you take the log of the vector. What result do you get when R attempts to compute the log of zero? How would you interpret that result (in words).

C) Suppose the vector in B was assigned to tone2 a student wrote this command log(tone2 > 0) to eliminate the zeroes from the computation. Does it work? If not, tell me why it does not work and provide a solution in R. If it works, please print the resulting vector of positive numeric values.

 

Request for Solution File

Ask an Expert for Answer!!
Basic Statistics: What result get when r attempts to compute log of zero
Reference No:- TGS0107110

Expected delivery within 24 Hours