Description Usage Arguments Value Examples
View source: R/DataScienceLab2.R
The function drgsummary calculates mean, median, or standard deviation for the average Medicare payments.
1 | drgsummary(df, a)
|
df |
a dataframe, use the dataset in the package drgdata2 |
a |
a string name for the statistics, choose from mean, median, or sd for standard deviation |
drgsummary returns statistics of average Medicare payments
1 | drgsummary(drgdata2, "Median")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.