Skip to content
geeksforgeeks
  • Tutorials
    • Python
    • Java
    • Data Structures & Algorithms
    • ML & Data Science
    • Interview Corner
    • Programming Languages
    • Web Development
    • CS Subjects
    • DevOps And Linux
    • School Learning
    • Practice Coding Problems
  • Courses
    • DSA to Development
    • Get IBM Certification
    • Newly Launched!
      • Master Django Framework
      • Become AWS Certified
    • For Working Professionals
      • Interview 101: DSA & System Design
      • Data Science Training Program
      • JAVA Backend Development (Live)
      • DevOps Engineering (LIVE)
      • Data Structures & Algorithms in Python
    • For Students
      • Placement Preparation Course
      • Data Science (Live)
      • Data Structure & Algorithm-Self Paced (C++/JAVA)
      • Master Competitive Programming (Live)
      • Full Stack Development with React & Node JS (Live)
    • Full Stack Development
    • Data Science Program
    • All Courses
  • Data Visualization
  • Statistics in R
  • Machine Learning in R
  • Data Science in R
  • Packages in R
  • Data Types
  • String
  • Array
  • Vector
  • Lists
  • Matrices
  • Oops in R
Open In App
Next Article:
Compute Randomly Drawn Cauchy Density in R Programming - rcauchy() Function
Next article icon

Compute Randomly Drawn Cauchy Density in R Programming - rcauchy() Function

Last Updated : 25 Jun, 2020
Comments
Improve
Suggest changes
Like Article
Like
Report
rcauchy() function in R Language is used to compute random cauchy density among a range of inputs.
Syntax: rcauchy(N, scale) Parameters: N: Sample Size scale: Scale to plot graph
Example 1: Python3 1==
# R program to generate  # random cauchy density points  # Setting seed for # random number generation set.seed(1000)  # Set sample size N <- 20  # Calling rcauchy() Function y <- rcauchy(N, scale = 10) y  
Output:
   [1]   16.654755   -9.459054    3.740548  -14.639724 -193.891140    2.160767   [7]  -10.735449  -37.226131    8.051377   10.392275   19.616577   -9.662595  [13]   15.442965   -4.484467   -9.147612    2.330620  431.105051  -22.117519  [19]    2.730892  -37.046773  
Example 2: Python3 1==
# R program to generate  # random cauchy density points  # Setting seed for # random number generation set.seed(1000)  # Set sample size N <- 500  # Calling rcauchy() Function y <- rcauchy(N, scale = 10)  # Plotting graph plot(y) 
Output:

Next Article
Compute Randomly Drawn Cauchy Density in R Programming - rcauchy() Function

N

nidhi_biet
Improve
Article Tags :
  • R Language
  • R-Statistics
  • R DataFrame-Function

Similar Reads

    Compute Randomly Drawn F Density in R Programming - rf() Function
    rf() function in R Language is used to compute random density for F Distribution. Syntax: rf(N, df1, df2) Parameters: N: Sample Size df: Degree of Freedom Example 1: Python3 1== # R Program to compute random values # of F Density # Setting seed for # random number generation set.seed(1000) # Set sam
    1 min read
    Compute Randomly Drawn Chi Square Density in R Programming - rchisq() Function
    rchisq() function in R Language is used to compute random chi square density for a set of values. Syntax: rchisq(N, df) Parameters: N: Sample Size df: Degree of Freedom Example 1: Python3 1== # R program to generate # random chi square density points # Setting seed for # random number generation set
    1 min read
    Compute Randomly Drawn Weibull Density in R Programming - rweibull() Function
    rweibull() function in R Language is used to compute random density for Weibull distribution. Syntax: rweibull(N, shape) Parameters: N: Sample Size shape: Shape Parameter Example 1: Python3 1== # R program to compute random # Weibull Density # Setting seed for # random number generation set.seed(100
    1 min read
    Compute Randomly Drawn Poisson Density in R Programming - rpois() Function
    rpois() function in R Language is used to compute random density for poisson distribution. Syntax: rpois(N, lambda) Parameters: N: Sample Size lambda: Average number of events per interval Example 1: Python3 # R program to compute random # Poisson Density # Setting seed for # random number generatio
    1 min read
    Compute Randomly Drawn Logistic Density in R Programming - rlogis() Function
    rlogis() function in R Language is used to compute random logistic density among a range of inputs. Syntax: rlogis(N) Parameters: N: Sample Size Example 1: Python3 1== # R program to generate # random logistic density points # Setting seed for # random number generation set.seed(1000) # Set sample s
    1 min read
geeksforgeeks-footer-logo
Corporate & Communications Address:
A-143, 7th Floor, Sovereign Corporate Tower, Sector- 136, Noida, Uttar Pradesh (201305)
Registered Address:
K 061, Tower K, Gulshan Vivante Apartment, Sector 137, Noida, Gautam Buddh Nagar, Uttar Pradesh, 201305
GFG App on Play Store GFG App on App Store
Advertise with us
  • Company
  • About Us
  • Legal
  • Privacy Policy
  • In Media
  • Contact Us
  • Advertise with us
  • GFG Corporate Solution
  • Placement Training Program
  • Languages
  • Python
  • Java
  • C++
  • PHP
  • GoLang
  • SQL
  • R Language
  • Android Tutorial
  • Tutorials Archive
  • DSA
  • Data Structures
  • Algorithms
  • DSA for Beginners
  • Basic DSA Problems
  • DSA Roadmap
  • Top 100 DSA Interview Problems
  • DSA Roadmap by Sandeep Jain
  • All Cheat Sheets
  • Data Science & ML
  • Data Science With Python
  • Data Science For Beginner
  • Machine Learning
  • ML Maths
  • Data Visualisation
  • Pandas
  • NumPy
  • NLP
  • Deep Learning
  • Web Technologies
  • HTML
  • CSS
  • JavaScript
  • TypeScript
  • ReactJS
  • NextJS
  • Bootstrap
  • Web Design
  • Python Tutorial
  • Python Programming Examples
  • Python Projects
  • Python Tkinter
  • Python Web Scraping
  • OpenCV Tutorial
  • Python Interview Question
  • Django
  • Computer Science
  • Operating Systems
  • Computer Network
  • Database Management System
  • Software Engineering
  • Digital Logic Design
  • Engineering Maths
  • Software Development
  • Software Testing
  • DevOps
  • Git
  • Linux
  • AWS
  • Docker
  • Kubernetes
  • Azure
  • GCP
  • DevOps Roadmap
  • System Design
  • High Level Design
  • Low Level Design
  • UML Diagrams
  • Interview Guide
  • Design Patterns
  • OOAD
  • System Design Bootcamp
  • Interview Questions
  • Inteview Preparation
  • Competitive Programming
  • Top DS or Algo for CP
  • Company-Wise Recruitment Process
  • Company-Wise Preparation
  • Aptitude Preparation
  • Puzzles
  • School Subjects
  • Mathematics
  • Physics
  • Chemistry
  • Biology
  • Social Science
  • English Grammar
  • Commerce
  • World GK
  • GeeksforGeeks Videos
  • DSA
  • Python
  • Java
  • C++
  • Web Development
  • Data Science
  • CS Subjects
@GeeksforGeeks, Sanchhaya Education Private Limited, All rights reserved
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our Cookie Policy & Privacy Policy
Lightbox
Improvement
Suggest Changes
Help us improve. Share your suggestions to enhance the article. Contribute your expertise and make a difference in the GeeksforGeeks portal.
geeksforgeeks-suggest-icon
Create Improvement
Enhance the article with your expertise. Contribute to the GeeksforGeeks community and help create better learning resources for all.
geeksforgeeks-improvement-icon
Suggest Changes
min 4 words, max Words Limit:1000

Thank You!

Your suggestions are valuable to us.

What kind of Experience do you want to share?

Interview Experiences
Admission Experiences
Career Journeys
Work Experiences
Campus Experiences
Competitive Exam Experiences