Skip to content

Commit

Permalink
version 0.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Pankaj Das authored and cran-robot committed Aug 26, 2023
1 parent ea83b6b commit 0d65594
Show file tree
Hide file tree
Showing 10 changed files with 588 additions and 10 deletions.
12 changes: 7 additions & 5 deletions DESCRIPTION
@@ -1,13 +1,15 @@
Package: HealthCal
Type: Package
Title: Health Calculator
Version: 0.1.0
Author: Pankaj Das [aut, cre]
Version: 0.1.1
Author: Pankaj Das [aut, cre](<https://orcid.org/0000-0003-1672-2502>)
Maintainer: Pankaj Das <pankaj.das2@icar.gov.in>
Description: Health Calculator helps to find different parameters like basal metabolic rate, body mass index etc. related to fitness and health of a person.
License: GPL-3
License: MIT + file LICENSE
Encoding: UTF-8
Suggests: knitr, rmarkdown
VignetteBuilder: knitr
NeedsCompilation: no
Packaged: 2023-08-10 12:15:40 UTC; Pankaj
Packaged: 2023-08-26 11:58:33 UTC; Pankaj
Repository: CRAN
Date/Publication: 2023-08-11 12:23:46 UTC
Date/Publication: 2023-08-26 12:10:02 UTC
2 changes: 2 additions & 0 deletions LICENSE
@@ -0,0 +1,2 @@
YEAR: 2023
COPYRIGHT HOLDER: Pankaj Das
12 changes: 9 additions & 3 deletions MD5
@@ -1,10 +1,16 @@
e3d9cd210c69617f21030c3c16d0c963 *DESCRIPTION
2020f0cc6b18bf01c45f142e4e1b09ec *DESCRIPTION
95f6c72862219ec03e6bfc55f637766e *LICENSE
df390c53434517b304ac5db487184641 *NAMESPACE
14ff590b823f406bc456744ac2f78012 *R/BFPF.R
fcd242bd9484a36820db966851b0bc78 *R/BFPM.R
403c55361b7938ca21cb84b815fdb7fb *R/BMI.R
fee2977f5633461624eb4649adc8852b *R/BMR.R
524837206e319a0ccba1da7b84db9e8b *man/BFPF.Rd
bf5545efcb171b931bfa05799c2cb4a3 *build/vignette.rds
28b48270e1e134419b465f46c4cf9079 *inst/doc/HealthCal.R
bf28e50212b33f21ea1a7f47ff403a29 *inst/doc/HealthCal.Rmd
0a7489f5c6881aad439289e6d3fa764e *inst/doc/HealthCal.html
3b04f3871083bd5d3a2b4f23fd78992f *man/BFPF.Rd
870c4a87fa1a00e1c8c95e1abba14a00 *man/BFPM.Rd
71a69af8cdd4336520981e0040abb549 *man/BMI.Rd
8d4fc6232aab5398802629bf86070029 *man/BMR.Rd
9e4bee7891dd78653455c4dd8cfaf074 *man/BMR.Rd
bf28e50212b33f21ea1a7f47ff403a29 *vignettes/HealthCal.Rmd
Binary file added build/vignette.rds
Binary file not shown.
44 changes: 44 additions & 0 deletions inst/doc/HealthCal.R
@@ -0,0 +1,44 @@
## ---- include = FALSE---------------------------------------------------------
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>"
)

## ----setup--------------------------------------------------------------------
#Example how the package works
library(HealthCal)

#BFP calculation

# The body fat percentage (BFP) of a human or other living being is the total mass of fat divided by total body mass, multiplied by 100; body fat includes essential body fat and storage body fat.

#Input data that includes height, weight and age of a female
dataset47=c(175,90,25)

#The body fat percentage (BFP) of female can be found using
BFPF(dataset47)

#Input data that includes height, weight and age of a male
dataset46=c(175,90,25)

##The body fat percentage (BFP) of male can be found using
BFPF(dataset47)

#BMR calculation
#Basal metabolic rate (BMR) is the rate of energy expenditure per unit time by endothermic animals at rest. The basal metabolic rate (BMR) of a person can be calculated using the Harris-Benedict equation, also known as the Harris-Benedict principle (1918). The function was created using this Harris-Benedict principle.The amount that should be consumed each day in kilocalories to maintain one's present weight can be calculated by multiplying the predicted BMR value by a factor that reflects the person's level of activity.
# Input data that includes height, weight and age of a person (male/female)
dataset45=c(175,90,25)

#BMR of the person can be found using
BMR(dataset45)

#The body mass index (BMI) is a measurement based on a person's mass (weight) and height. The BMI is calculated by dividing the body weight by the square of the height, and it is expressed in kilogrammes per square metre (kg/m2) since weight is measured in kilogrammes and height is measured in metres. The function was created using formula given by Keys et al. (1972).

#BMR calculation
#Input data that includes height and weight of a person
dataset44=c(175,90)

#BMI of the person can be found using
BMI(dataset44)


58 changes: 58 additions & 0 deletions inst/doc/HealthCal.Rmd
@@ -0,0 +1,58 @@
---
title: "HealthCal"
output: rmarkdown::html_vignette
vignette: >
%\VignetteIndexEntry{HealthCal}
%\VignetteEngine{knitr::rmarkdown}
%\VignetteEncoding{UTF-8}
---

```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>"
)
```
## Introduction

\*\*\*\*<br/> *The HealthCal R package is designed to find out different parameters like basal metabolic rate, body mass index etc. related to fitness and health of a person. This package shows the values of the parameters with the present health status (healthy or not) according the WHO prescribed norms.*

\*\*\*\*<br/>
```{r setup}
#Example how the package works
library(HealthCal)
#BFP calculation
# The body fat percentage (BFP) of a human or other living being is the total mass of fat divided by total body mass, multiplied by 100; body fat includes essential body fat and storage body fat.
#Input data that includes height, weight and age of a female
dataset47=c(175,90,25)
#The body fat percentage (BFP) of female can be found using
BFPF(dataset47)
#Input data that includes height, weight and age of a male
dataset46=c(175,90,25)
##The body fat percentage (BFP) of male can be found using
BFPF(dataset47)
#BMR calculation
#Basal metabolic rate (BMR) is the rate of energy expenditure per unit time by endothermic animals at rest. The basal metabolic rate (BMR) of a person can be calculated using the Harris-Benedict equation, also known as the Harris-Benedict principle (1918). The function was created using this Harris-Benedict principle.The amount that should be consumed each day in kilocalories to maintain one's present weight can be calculated by multiplying the predicted BMR value by a factor that reflects the person's level of activity.
# Input data that includes height, weight and age of a person (male/female)
dataset45=c(175,90,25)
#BMR of the person can be found using
BMR(dataset45)
#The body mass index (BMI) is a measurement based on a person's mass (weight) and height. The BMI is calculated by dividing the body weight by the square of the height, and it is expressed in kilogrammes per square metre (kg/m2) since weight is measured in kilogrammes and height is measured in metres. The function was created using formula given by Keys et al. (1972).
#BMR calculation
#Input data that includes height and weight of a person
dataset44=c(175,90)
#BMI of the person can be found using
BMI(dataset44)
```

0 comments on commit 0d65594

Please sign in to comment.