R progarmming 1.docx

Full Transcript

Week 1: Introduction to R Programming 1\. R Fundamentals \- What is R? R is a programming language primarily used for statistical computing and data analysis. It provides several libraries and functions to handle large datasets efficiently. Example: \`\`\`R print(\"Hello, R!\") \`\`\` \- Ins...

Week 1: Introduction to R Programming 1\. R Fundamentals \- What is R? R is a programming language primarily used for statistical computing and data analysis. It provides several libraries and functions to handle large datasets efficiently. Example: \`\`\`R print(\"Hello, R!\") \`\`\` \- Installing and Using Libraries Libraries like \`dplyr\`, \`ggplot2\`, \`tidyverse\`, and \`caret\` are commonly used in R for data manipulation and visualization. Example: \`\`\`R install.packages(\"dplyr\") library(dplyr) \`\`\` 2\. Basic Mathematical and Logical Operations \- Mathematical Operations: R supports basic arithmetic like addition, subtraction, multiplication, and division. Example: \`\`\`R x \

Use Quizgecko on...
Browser
Browser