View source: R/my_median.R View source: R/barra_simple.R
my_median | R Documentation |
My median
My median
my_median(x, na.rm = TRUE) my_median(x, na.rm = TRUE)
x |
Vector of Numeric values |
na.rm |
a logical value indicating whether |
Median of vector x
Median of vector x
my_median(1:12) # Example with your dataset in "inst/" datafile <- system.file("nyc_squirrels_sample.csv", package = "pulso2") nyc_squirrels <- read.csv(datafile) # Apply my function my_median(nyc_squirrels[,"hectare_squirrel_number"]) my_median(1:12) # Example with your dataset in "inst/" datafile <- system.file("nyc_squirrels_sample.csv", package = "pulso2") nyc_squirrels <- read.csv(datafile) # Apply my function my_median(nyc_squirrels[,"hectare_squirrel_number"])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.