Description Usage Arguments Value Author(s) Examples
Create interSegmentKey's from students' first names, last names, genders, and birthdates
1 | calpass_create_isk(first_name, last_name, gender, birthdate)
|
first_name |
a character vector of students' first names. |
last_name |
a character vector of students' last names. |
gender |
a character vector of students' genders. The first character will be used (uppercase'd automatically), and should take on values |
birthdate |
a character or numeric vector of birthdates of the form |
a vector of interSegmentKey's
Vinh Nguyen
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | ## single
calpass_create_isk(first_name='Jane', last_name='Doe'
, gender='F', birthdate=20001231)
## data frame
## Not run:
firstname <- c('Tom', 'Jane', 'Jo')
lastname <- c('Ng', 'Doe', 'Smith')
gender <- c('Male', 'Female', 'X')
birthdate <- c(2001231, 19990101, 19981111)
df <- data.frame(firstname, lastname
, gender, birthdate, stringsAsFactors=FALSE)
library(dplyr)
df %>%
mutate(isk=calpass_create_isk(first_name=firstname
, last_name=lastname
, gender=gender
, birthdate
))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.