Question: r or rstudio Write two functions, both_logs and either_logs. Both should take three arguments: - x : a numeric vector of length at least one.
r or rstudio
Write two functions, both_logs and either_logs. Both should take three arguments: - x : a numeric vector of length at least one. - a : a numeric vector of length one, where a>1. - b : a numeric vector of length one, where b>1. a and b may be vectors containing the same value. The both_logs function should return a numeric vector containing elements of x for which the following is true (both are integers): logaxZandlogbxZ The either_logs function should return a numeric vector containing elements of x for which the following is true (either is integer): logaxZorlogbxZ
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
