R/funPharm.R
, R/getATCLevelPlot.R
getATCLevelPlot.Rd
getAtcLevelPlot
is a function to get daily dosage drugs(DDDs) in Anatomical Therapeutic Chemical Classification System(ATC) code level histogram plot.
getATCLevelPlot(df, ATCColName = ATC, level = 1)
df | data.frame, include ATC code |
---|---|
ATCColName | a column name for ATC code of df |
If the amount of drug information obtained by the user is large and messy, the user can first visualize the data using basic statistical tools, explore the characteristics of the data, and obtain the information, structure and features contained in the data. Because before having a complicated or rigorous analysis, user must have more knowledge of the data to determine the direction of the data analysis.
# sample of getting ATC first-level code distribution bar chart getATCLevelPlot(df = sample_data_ATC1LevelPlot, ATCColName = ATC, level = 1)#> Error in if_else(ATC == "BPCK" | ATC == "GPCK", ATC, substr(ATC, 1, 1)): 沒有這個函數 "if_else"# sample of getting ATC second-level code distribution bar chart getATCLevelPlot(df = sample_data_ATC1LevelPlot, ATCColName = ATC, level = 2)#> Error in if_else(ATC == "BPCK" | ATC == "GPCK", ATC, substr(ATC, 1, 3)): 沒有這個函數 "if_else"