ยง2024-12-158
-
File name: In Summary:
- Use snake_case (lowercase with underscores) for file names.
- Make file names descriptive and specific to their purpose.
- Avoid spaces and special characters.
- Include dates for versioning when necessary.
- Use the .R extension for R scripts.
-
variablles: Summary of Best Practices:
- Use snake_case(under caore _)for variable and function names.
- Use ALL_CAPS with underscores for constants.
- Name variables descriptively (e.g., total_sales, customer_data).
- Avoid spaces and reserved words in variable and function names.
- Prefix/Suffix when needed for clarity (e.g., df_ for data frames).
- Be consistent throughout your code for readability and maintainability.