我是R的新手,申请plotting function去看counts of all factors of each factor column。
df
install.packages("gapminder")
library(gapminder)
gapminder %>% head()
########### output ###############
country continent year lifeExp pop gdpPercap
<fct> <fct> <int> <dbl>
目前,我已经创建了一个PLSQL函数,它可以显示如下。
SELECT Display(R_NAME) FROM REGION WHERE R_REGIONKEY IN (SELECT R_REGIONKEY FROM REGION);
终端输出:
0 AFRICA: ALGERIA, ETHIOPIA, KENYA, MOROCCO, MOZAMBIQUE,
1 AMERICA: ARGENTINA, BRAZIL, CANADA, PERU, UNITED STATES,
2 ASIA: INDIA, INDONESIA, JAPAN, CHINA, VIETNAM,
3 EUROPE: F