knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
Unlike most parts of the world, Korea has it's own age system. In many countries, age increases as your birthday passes. However, in Korea, age increases at new year. In addition, Korean's age starts from 1 not 0.
Because of this, there can be up to two years gaps in Korea age and global age.
kage functionkage function basically gives you the Korean age or a global age. There are three arguments in kage.
x is the older date such as birthday.
y is the newer date which can be any date after x.
z is either K or G. K gives you Korean age while G gives you global age.
e.g. kage("1996-05-28", "2019-10-17", "K")
24
library(kage)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.