powered by
Extract levels as numeric from id column of the dataset
extract_id(df, col_id)
A dataframe
A character value corresponding to id column name
dist_id The numeric levels of id column from df
# NOT RUN { extract_id(adcampaign,"id") # }
Run the code above in your browser using DataLab