Learn R Programming

nutrition

The goal of nutrition is to provide useful functions for nutrition analysis.

Installation

The stable version of this function is available on CRAN and can be installed by running this from R:

install.packages("nutrition")

You can install the development version of nutrition like so:

devtools::install_github("wleoncio/nutrition")

Usage

For a list of exported objects (functions and datasets), run this:

ls("package:nutrition")

Examples for individual functions are available in their respective documentation.

Copy Link

Version

Install

install.packages('nutrition')

Monthly Downloads

208

Version

1.1.0

License

GPL (>= 3)

Maintainer

Waldir Leoncio

Last Published

September 28th, 2023

Functions in nutrition (1.1.0)

macroDistro

Macro distribution
pct_of_day

Table of hour of day and percentage of day
bmr

Basal Metabolic Rate
totalKcal

Total calories
budget

Calorie budget
fiberGrams

Calculate the amount of fiber in food
carbPct

Percentage of carbs in food