Posts

Showing posts from November, 2025

First -R- Package

 Purpose and Scope https://github.com/shanzay28/Friedman/tree/master The Friedman package was developed for my LIS4370 R Programming course to explore how R packages are structured, documented, and shared. It is designed for students, data analysts, and beginners in R who want to understand how functions, metadata, and documentation fit together in a reusable library. This package provides simple utility functions that demonstrate clean coding, proper documentation, and reproducibility practices. Users can install it directly from GitHub and test small, practical functions for everyday data analysis tasks. Key Functions The current version (0.0.0.9000) includes four basic but well-documented functions: • hello() – Prints a friendly “Hello, world!” message confirming that the package loads correctly. • add_numbers(x, y) – Adds two numeric values and returns their sum with input validation. • calculate_mean(x, na.rm = TRUE) – Computes the mean of a numeric vector, safely handli...