correct_id: Correct numerical Ids In our analysis the Id column refers to...

Description Usage Arguments Examples

Description

Correct numerical Ids In our analysis the Id column refers to the sequenced id. In many cases this was a number; but later it matched the SPECID + and extention. Therefore the column should be read as string. However, Pandas for some reason converted the numbers to decimal format. This function corrects that and returns a string number with out the ".0"

Usage

1

Arguments

df

data frame or tibble to correct

col

column that needs to be corrected.

Examples

1
2
cov_sample<-dplyr::tibble(Id=c("129.0","MH00000"))
correct_id(cov_sample,Id)

jtmccr1/HIVEr documentation built on May 29, 2019, 1:50 a.m.