Create function to determine the number of digits

Assignment Help Basic Statistics
Reference no: EM132856239

Write R codemust be in R code)Prompt the user to input an integer and store the integer in the variable num. a script to: (

  1. Create function to determine the number of digits in a number.
  2. Use the function to determine how many digits are in the number and store the result in len.
  3. Print "The [num] has [len] digits."

Hint: Try function: nDigits <- function(x) nchar(trunc( abs(x) ) ) 

Reference no: EM132856239

Questions Cloud

Developing the research framework : Why theory or concepts are important for developing the research framework?
What records you will pull and specifically review : You suspect a customer is laundering money for a friend, by using cash, monetary instruments, What records you will pull and specifically review
Concepts in designing for product excellence : Discuss the basic concepts in designing for product excellence. How can product design effect manufacturability and environmental responsibility
Create a proposal of enhancements to create a better user : Choose a publicly available data visualization. Analyze the visualization within the context of the data visualization workflow. Create proposal of enhancement.
Create function to determine the number of digits : Write R codemust be in R code)Prompt the user to input an integer and store the integer in the variable num. a script to: (
Conduct a correlational analysis in spss : Software Question: Using the same data of the answer for the first part, conduct a correlational analysis in SPSS (in other words, use SPSS
Internal environment and strong brands : Analyze the internal environment of the company you researched to determine that company's strengths and weaknesses.
Calculate the budgeted cash receipts for each month : Cash-related production costs are budgeted at $7 per unit produced. Calculate the budgeted cash receipts for each month for Watson Company
What is the pooled standard deviation : What is the pooled standard deviation? What degrees of freedom are used in doing inferences for these means and differences in means?

Reviews

Write a Review

Basic Statistics Questions & Answers

  Statistics-probability assignment

MATH1550H: Assignment:  Question:  A word is selected at random from the following poem of Persian poet and mathematician Omar Khayyam (1048-1131), translated by English poet Edward Fitzgerald (1808-1883). Find the expected value of the length of th..

  What is the least number

MATH1550H: Assignment:  Question:     what is the least number of applicants that should be interviewed so as to have at least 50% chance of finding one such secretary?

  Determine the value of k

MATH1550H: Assignment:  Question:     Experience shows that X, the number of customers entering a post office during any period of time t, is a random variable the probability mass function of which is of the form

  What is the probability

MATH1550H: Assignment:Questions: (Genetics) What is the probability that at most two of the offspring are aa?

  Binomial distributions

MATH1550H: Assignment:  Questions:  Let’s assume the department of Mathematics of Trent University has 11 faculty members. For i = 0; 1; 2; 3; find pi, the probability that i of them were born on Canada Day using the binomial distributions.

  Caselet on mcdonald’s vs. burger king - waiting time

Caselet on McDonald’s vs. Burger King - Waiting time

  Generate descriptive statistics

Generate descriptive statistics. Create a stem-and-leaf plot of the data and box plot of the data.

  Sampling variability and standard error

Problems on Sampling Variability and Standard Error and Confidence Intervals

  Estimate the population mean

Estimate the population mean

  Conduct a marketing experiment

Conduct a marketing experiment in which students are to taste one of two different brands of soft drink

  Find out the probability

Find out the probability

  Linear programming models

LINEAR PROGRAMMING MODELS

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd