VOOZH about

URL: https://www.geeksforgeeks.org/r-language/compute-density-of-the-distribution-function-in-r-programming-dunif-function/

⇱ Compute Density of the Distribution Function in R Programming - dunif() Function - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Compute Density of the Distribution Function in R Programming - dunif() Function

Last Updated : 12 Jul, 2025
dunif() function in R Language is used to provide the density of the distribution function.
Syntax: dunif(x, min = 0, max = 1, log = FALSE) Parameters: x: represents vector min, max: represents lower and upper limits of the distribution log: represents logical value for probabilities
Example 1: Output:
 
[1] FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE
[13] FALSE FALSE FALSE FALSE FALSE FALSE FALSE FALSE
[1] 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1
Example 2: Output: 👁 Image
Comment
Article Tags:

Explore