The ennet package also includes analytic functions that summarises the text data available from the en-net online forum. Currently, there are four sets of analytic functions available from ennet:

  • count_topics_time functions - set of functions to count the number of topics or questions by day, wee, month or year;

  • count_topics_theme functions - set of functions to count the number of topics or questions by theme;

  • count_topics_author functions - set of functions to count the number of topics or questions by author; and,

  • arrange functions - set of functions to arrange topics by number of views or by number of replies.

Counting number of topics/questions

Summarising the number of topics or questions raised within the en-net online forum is basic and useful analytics that can proxy relative importance of a thematic area within the forum. This is facilitated by three sets of functions - 1) count_topics_time; 2) count_topics_theme; and, 3) count_topics_author.

Counting number of topics/questions by time

The count_topics_time set of functions consist of four functions that count topics by day, by week, by month, or by year. To count the number of topics/questions per day, the count_topics_day function is used as follows:

which results in:

#> # A tibble: 1,954 × 2
#>    day            n
#>    <date>     <int>
#>  1 2009-02-14     1
#>  2 2009-02-18     1
#>  3 2009-02-19     2
#>  4 2009-02-20     1
#>  5 2009-02-23     1
#>  6 2009-02-24     2
#>  7 2009-02-25     3
#>  8 2009-03-02     1
#>  9 2009-03-03     1
#> 10 2009-03-07     1
#> # … with 1,944 more rows

By default, the count_topics_day function will provide an output that is not sorted by number of topics/questions per day. To sort by number of topics/questions per day, specify .sort as TRUE:

count_topics_day(.sort = TRUE)

which gives the following output:

#> # A tibble: 1,954 × 2
#>    day            n
#>    <date>     <int>
#>  1 2015-06-02    12
#>  2 2019-05-13    11
#>  3 2015-08-13     8
#>  4 2016-09-30     8
#>  5 2014-08-19     7
#>  6 2018-04-09     7
#>  7 2020-04-02     7
#>  8 2012-05-16     6
#>  9 2015-05-07     6
#> 10 2016-11-11     6
#> # … with 1,944 more rows

Counting topics/questions by week, month, or year require just using the function named after the time required. For weekly counts, use count_topics_week, for monthly use count_topics_month, and for yearly use count_topics_year.

## Count topics/questions by week
count_topics_week()

## Count topics/questions by month
count_topics_month()

## Count topics/questions by year
count_topics_year()

Counting number of topics/questions by theme

The count_topics_theme set of functions consists of two functions that count topics/questions by theme, and count topics/questions by theme and by time.

Counting of topics by theme is specified as follows:

which results in:

#> # A tibble: 16 × 2
#>    Theme                                                                       n
#>    <chr>                                                                   <int>
#>  1 Announcements & Nutritionists needed                                     1342
#>  2 Assessment and Surveillance                                               570
#>  3 Management of wasting/acute malnutrition                                  566
#>  4 Infant and young child feeding interventions                              238
#>  5 Upcoming trainings                                                        103
#>  6 COVID-19 and nutrition programming                                         88
#>  7 Other thematic area                                                        57
#>  8 Micronutrients                                                             56
#>  9 Scaling Up Nutrition (SUN)                                                 56
#> 10 Cross-cutting issues                                                       48
#> 11 Management of small and nutritionally at risk infants under six months…    43
#> 12 Food assistance                                                            33
#> 13 Adolescent nutrition                                                       30
#> 14 Prevention and management of stunting                                      21
#> 15 Partnerships for research                                                  19
#> 16 Simplified Approaches for the Management of Acute Malnutrition             18

Results provided by count_topics_theme is not sorted by number of topics/questions. To sort, specify .sort as TRUE:

count_topics_theme(.sort = TRUE)

which results in:

#> # A tibble: 16 × 2
#>    Theme                                                                       n
#>    <chr>                                                                   <int>
#>  1 Announcements & Nutritionists needed                                     1400
#>  2 Assessment and Surveillance                                               589
#>  3 Management of wasting/acute malnutrition                                  581
#>  4 Infant and young child feeding interventions                              255
#>  5 Upcoming trainings                                                        107
#>  6 COVID-19 and nutrition programming                                         89
#>  7 Other thematic area                                                        61
#>  8 Scaling Up Nutrition (SUN)                                                 57
#>  9 Micronutrients                                                             56
#> 10 Management of small and nutritionally at risk infants under six months…    50
#> 11 Cross-cutting issues                                                       48
#> 12 Food assistance                                                            33
#> 13 Adolescent nutrition                                                       32
#> 14 Prevention and management of stunting                                      21
#> 15 Partnerships for research                                                  19
#> 16 Simplified Approaches for the Management of Acute Malnutrition             19

Counting of topics/questions by theme can also be done by time using the count_topics_theme_time. For example, counting topics/questions by theme by day is done as follows:

count_topics_theme_time(by_time = "day")

which gives the following output:

#> # A tibble: 2,683 × 3
#>    Theme                                day            n
#>    <chr>                                <date>     <int>
#>  1 Announcements & Nutritionists needed 2015-06-02    12
#>  2 Announcements & Nutritionists needed 2019-05-13    11
#>  3 Announcements & Nutritionists needed 2015-08-13     7
#>  4 Announcements & Nutritionists needed 2015-05-07     6
#>  5 Scaling Up Nutrition (SUN)           2016-11-11     6
#>  6 Announcements & Nutritionists needed 2013-10-21     5
#>  7 Announcements & Nutritionists needed 2014-09-11     5
#>  8 Announcements & Nutritionists needed 2015-08-11     5
#>  9 Announcements & Nutritionists needed 2015-09-02     5
#> 10 Announcements & Nutritionists needed 2016-03-11     5
#> # … with 2,673 more rows

Unlike the previous count functions, the output of count_topics_theme_time is already sorted by default.

To count topics/questions by theme by week, month, or year just requires changing the by_time argument to the desired time interval as shown below:

## Count topics/questions by theme by week
count_topics_theme_time(by_time = "week")

## Count topics/questions by theme by month
count_topics_theme_time(by_time = "month")

## Count topics/questions by theme by year
count_topics_theme_time(by_time = "year")

Counting number of topics/questions by author

The count_topics_author set of functions consists of two functions that count topics/questions by author, and count topics/questions by author and by time.

Counting of topics by author is specified as follows:

which results in:

#> # A tibble: 1,192 × 2
#>    Author             n
#>    <chr>          <int>
#>  1 Tamsin Walters   183
#>  2 Marie Lecuyer     61
#>  3 Michael ALVES     58
#>  4 Anonymous 1494    49
#>  5 Marie McGrath     49
#>  6 Mark Myatt        43
#>  7 NA                41
#>  8 Anonymous 81      39
#>  9 Mark Hawkes       35
#> 10 Mija Ververs      33
#> # … with 1,182 more rows

Results provided by count_topics_author is not sorted by number of topics/questions. To sort, specify .sort as TRUE:

count_topics_author(.sort = TRUE)

which results in:

#> # A tibble: 1,192 × 2
#>    Author             n
#>    <chr>          <int>
#>  1 Tamsin Walters   183
#>  2 Marie Lecuyer     61
#>  3 Michael ALVES     58
#>  4 Anonymous 1494    49
#>  5 Marie McGrath     49
#>  6 Mark Myatt        43
#>  7 NA                41
#>  8 Anonymous 81      39
#>  9 Mark Hawkes       35
#> 10 Mija Ververs      33
#> # … with 1,182 more rows

Counting of topics/questions by author can also be done by time using the count_topics_author_time. For example, counting topics/questions by author by day is done as follows:

count_topics_author_time(by_time = "day")

which gives the following output:

#> # A tibble: 2,971 × 3
#>    Author            day            n
#>    <chr>             <date>     <int>
#>  1 Anonymous 1494    2015-06-02    11
#>  2 Mark Hawkes       2019-05-13    11
#>  3 Andi Kendle       2017-09-25     6
#>  4 GTAM Wasting TWG  2020-08-07     5
#>  5 Isabelle Modigell 2019-06-06     5
#>  6 Marie McGrath     2016-09-30     5
#>  7 Michael ALVES     2014-09-11     5
#>  8 Michael ALVES     2015-09-02     5
#>  9 Thuy Nguyen       2016-11-11     5
#> 10 Alan Mason        2016-09-15     4
#> # … with 2,961 more rows

Unlike the previous count functions, the output of count_topics_author_time is already sorted by default.

To count topics/questions by author by week, month, or year just requires changing the by_time argument to the desired time interval as shown below:

## Count topics/questions by author by week
count_topics_author_time(by_time = "week")

## Count topics/questions by author by month
count_topics_author_time(by_time = "month")

## Count topics/questions by author by year
count_topics_author_time(by_time = "year")

Deprecated count functions

In the current release of the ennet package, the following functions have now undergone deprecation:

  • count_topics

  • count_authors

These functions have now been superseded by the more performant count_topics functions above. We recommend that if you have been using these deprecated functions previously to update your work to use the new functions described above. These deprecated function will be made defunct on the next release of ennet package.

Arranging topics by number of views

Summarising the number of topics or questions raised within the en-net online forum by arranging them based on number of views can proxy level of interest to a specific topic by those participating in the forum. This is facilitated using the arrange_views function. Ranking of topics by number of views is done per thematic area and by a specific time period. Ranking of topics by number of views by thematic area and by month and year is performed by default:

which results in:

#> # A tibble: 3,288 × 9
#>    Theme                Topic  Views Author Posted     Link  Replies Month  Year
#>    <chr>                <chr>  <int> <chr>  <date>     <chr>   <int> <fct> <dbl>
#>  1 Adolescent nutrition Age g…  1601 Anony… 2020-02-15 http…       1 Feb    2020
#>  2 Adolescent nutrition The E…   850 Moham… 2021-02-01 http…       0 Feb    2021
#>  3 Adolescent nutrition Webin…  1923 Steph… 2021-03-11 http…       3 Mar    2021
#>  4 Adolescent nutrition Webin…  1434 NATAS… 2021-03-18 http…       5 Mar    2021
#>  5 Adolescent nutrition Webin…  1040 NATAS… 2021-03-04 http…       1 Mar    2021
#>  6 Adolescent nutrition Webin…   925 NATAS… 2021-03-09 http…       1 Mar    2021
#>  7 Adolescent nutrition Webin…   902 NATAS… 2021-03-02 http…       2 Mar    2021
#>  8 Adolescent nutrition Webin…   890 Steph… 2021-03-03 http…       2 Mar    2021
#>  9 Adolescent nutrition Webin…   850 NATAS… 2021-03-02 http…       1 Mar    2021
#> 10 Adolescent nutrition Webin…   825 NATAS… 2021-03-04 http…       1 Mar    2021
#> # … with 3,278 more rows

Arranging topics by number of views by thematic area and by year is performed as follows:

which results in:

#> # A tibble: 3,288 × 9
#>    Theme                Topic  Views Author Posted     Link  Replies Month  Year
#>    <chr>                <chr>  <int> <chr>  <date>     <chr>   <int> <fct> <dbl>
#>  1 Adolescent nutrition Reach…  3358 Emily… 2018-06-18 http…       3 Jun    2018
#>  2 Adolescent nutrition adole…  3157 Anony… 2018-06-21 http…       1 Jun    2018
#>  3 Adolescent nutrition adole…  2987 Anony… 2018-06-21 http…       1 Jun    2018
#>  4 Adolescent nutrition Launc…  2956 Jo Lo… 2018-05-23 http…       0 May    2018
#>  5 Adolescent nutrition Teen/…  2943 Anne … 2018-06-19 http…       1 Jun    2018
#>  6 Adolescent nutrition Asses…  2926 Ursul… 2018-07-25 http…       3 Jul    2018
#>  7 Adolescent nutrition anthr…  2905 Emily… 2018-06-29 http…       2 Jun    2018
#>  8 Adolescent nutrition MUAC …  2827 Ikech… 2018-09-27 http…       1 Sep    2018
#>  9 Adolescent nutrition Adole…  2757 Tamsi… 2018-08-01 http…       3 Aug    2018
#> 10 Adolescent nutrition adole…  2676 Anony… 2018-07-04 http…       1 Jul    2018
#> # … with 3,278 more rows

Arranging topics by number of views by thematic area overall across the years is performed as follows:

which results in:

#> # A tibble: 3,288 × 9
#>    Theme                Topic  Views Author Posted     Link  Replies Month  Year
#>    <chr>                <chr>  <int> <chr>  <date>     <chr>   <int> <fct> <dbl>
#>  1 Adolescent nutrition Reach…  3358 Emily… 2018-06-18 http…       3 Jun    2018
#>  2 Adolescent nutrition adole…  3157 Anony… 2018-06-21 http…       1 Jun    2018
#>  3 Adolescent nutrition adole…  2987 Anony… 2018-06-21 http…       1 Jun    2018
#>  4 Adolescent nutrition Launc…  2956 Jo Lo… 2018-05-23 http…       0 May    2018
#>  5 Adolescent nutrition Teen/…  2943 Anne … 2018-06-19 http…       1 Jun    2018
#>  6 Adolescent nutrition Asses…  2926 Ursul… 2018-07-25 http…       3 Jul    2018
#>  7 Adolescent nutrition anthr…  2905 Emily… 2018-06-29 http…       2 Jun    2018
#>  8 Adolescent nutrition MUAC …  2827 Ikech… 2018-09-27 http…       1 Sep    2018
#>  9 Adolescent nutrition Adole…  2757 Tamsi… 2018-08-01 http…       3 Aug    2018
#> 10 Adolescent nutrition adole…  2676 Anony… 2018-07-04 http…       1 Jul    2018
#> # … with 3,278 more rows

By default, the output of arrange_views is grouped by thematic area. This default behaviour can be changed by setting the by_theme argument to FALSE. For example, to arrange the topics by number of views by month and year across all themes:

which results in:

#> # A tibble: 3,288 × 9
#>    Theme                 Topic Views Author Posted     Link  Replies Month  Year
#>    <chr>                 <chr> <int> <chr>  <date>     <chr>   <int> <fct> <dbl>
#>  1 Infant and young chi… Brea… 10372 Anony… 2010-01-07 http…       3 Jan    2010
#>  2 Announcements & Nutr… Nutr…  9462 Marie… 2010-01-05 http…      NA Jan    2010
#>  3 Assessment and Surve… How …  6563 Anony… 2010-01-15 http…       2 Jan    2010
#>  4 Assessment and Surve… Inte… 10090 Tamsi… 2011-01-05 http…      10 Jan    2011
#>  5 Assessment and Surve… Calc…  8788 Ali M… 2011-01-19 http…       3 Jan    2011
#>  6 Assessment and Surve… Pros…  7089 Jeff … 2011-01-27 http…       7 Jan    2011
#>  7 Announcements & Nutr… Tech…  6279 Tamsi… 2011-01-18 http…      NA Jan    2011
#>  8 Announcements & Nutr… IYCF…  6199 Aliso… 2011-01-04 http…      NA Jan    2011
#>  9 Assessment and Surve… Resu…  6115 Anony… 2011-01-25 http…       2 Jan    2011
#> 10 Cross-cutting issues  Tran…  6012 Anony… 2011-01-25 http…       1 Jan    2011
#> # … with 3,278 more rows

Arranging topics by number of replies

Summarising the number of topics or questions raised within the en-net online forum by arranging them based on number of replies can proxy level of interest to a specific topic by those participating in the forum specifically those who provide responses and feedback to responses within the discussion. This is facilitated using the arrange_replies function. Ranking of topics by number of replies is done per thematic area and by a specific time period. Ranking of topics by number of replies by thematic area and by month and year is performed by default:

which results in:

#> # A tibble: 1,946 × 9
#>    Theme                Topic  Views Author Posted     Link  Replies Month  Year
#>    <chr>                <chr>  <int> <chr>  <date>     <chr>   <int> <fct> <dbl>
#>  1 Adolescent nutrition Age g…  1601 Anony… 2020-02-15 http…       1 Feb    2020
#>  2 Adolescent nutrition The E…   850 Moham… 2021-02-01 http…       0 Feb    2021
#>  3 Adolescent nutrition Webin…  1434 NATAS… 2021-03-18 http…       5 Mar    2021
#>  4 Adolescent nutrition Webin…  1923 Steph… 2021-03-11 http…       3 Mar    2021
#>  5 Adolescent nutrition Webin…   890 Steph… 2021-03-03 http…       2 Mar    2021
#>  6 Adolescent nutrition Webin…   902 NATAS… 2021-03-02 http…       2 Mar    2021
#>  7 Adolescent nutrition Webin…   774 NATAS… 2021-03-18 http…       1 Mar    2021
#>  8 Adolescent nutrition Webin…   925 NATAS… 2021-03-09 http…       1 Mar    2021
#>  9 Adolescent nutrition Webin…  1040 NATAS… 2021-03-04 http…       1 Mar    2021
#> 10 Adolescent nutrition Webin…   825 NATAS… 2021-03-04 http…       1 Mar    2021
#> # … with 1,936 more rows

Arranging topics by number of replies by thematic area and by year is performed as follows:

which results in:

#> # A tibble: 1,946 × 9
#>    Theme                Topic  Views Author Posted     Link  Replies Month  Year
#>    <chr>                <chr>  <int> <chr>  <date>     <chr>   <int> <fct> <dbl>
#>  1 Adolescent nutrition Adole…  2757 Tamsi… 2018-08-01 http…       3 Aug    2018
#>  2 Adolescent nutrition Asses…  2926 Ursul… 2018-07-25 http…       3 Jul    2018
#>  3 Adolescent nutrition Reach…  3358 Emily… 2018-06-18 http…       3 Jun    2018
#>  4 Adolescent nutrition anthr…  2905 Emily… 2018-06-29 http…       2 Jun    2018
#>  5 Adolescent nutrition MUAC …  2827 Ikech… 2018-09-27 http…       1 Sep    2018
#>  6 Adolescent nutrition adole…  2676 Anony… 2018-07-04 http…       1 Jul    2018
#>  7 Adolescent nutrition adole…  3157 Anony… 2018-06-21 http…       1 Jun    2018
#>  8 Adolescent nutrition adole…  2987 Anony… 2018-06-21 http…       1 Jun    2018
#>  9 Adolescent nutrition Teen/…  2943 Anne … 2018-06-19 http…       1 Jun    2018
#> 10 Adolescent nutrition healt…  2561 Anony… 2018-06-19 http…       1 Jun    2018
#> # … with 1,936 more rows

Arranging topics by number of replies by thematic area overall across the years is performed as follows:

which results in:

#> # A tibble: 1,946 × 9
#>    Theme                Topic  Views Author Posted     Link  Replies Month  Year
#>    <chr>                <chr>  <int> <chr>  <date>     <chr>   <int> <fct> <dbl>
#>  1 Adolescent nutrition Webin…  1434 NATAS… 2021-03-18 http…       5 Mar    2021
#>  2 Adolescent nutrition Webin…  1923 Steph… 2021-03-11 http…       3 Mar    2021
#>  3 Adolescent nutrition Adole…  2757 Tamsi… 2018-08-01 http…       3 Aug    2018
#>  4 Adolescent nutrition Asses…  2926 Ursul… 2018-07-25 http…       3 Jul    2018
#>  5 Adolescent nutrition Reach…  3358 Emily… 2018-06-18 http…       3 Jun    2018
#>  6 Adolescent nutrition Webin…   890 Steph… 2021-03-03 http…       2 Mar    2021
#>  7 Adolescent nutrition Webin…   902 NATAS… 2021-03-02 http…       2 Mar    2021
#>  8 Adolescent nutrition anthr…  2905 Emily… 2018-06-29 http…       2 Jun    2018
#>  9 Adolescent nutrition Cut o…   378 Anony… 2021-08-22 http…       1 Aug    2021
#> 10 Adolescent nutrition Webin…   774 NATAS… 2021-03-18 http…       1 Mar    2021
#> # … with 1,936 more rows

By default, the output of arrange_replies is grouped by thematic area. This default behaviour can be changed by setting the by_theme argument to FALSE. For example, to arrange the topics by number of replies by month and year across all themes:

which results in:

#> # A tibble: 1,946 × 9
#>    Theme                 Topic Views Author Posted     Link  Replies Month  Year
#>    <chr>                 <chr> <int> <chr>  <date>     <chr>   <int> <fct> <dbl>
#>  1 Infant and young chi… Brea… 10372 Anony… 2010-01-07 http…       3 Jan    2010
#>  2 Assessment and Surve… How …  6563 Anony… 2010-01-15 http…       2 Jan    2010
#>  3 Assessment and Surve… Inte… 10090 Tamsi… 2011-01-05 http…      10 Jan    2011
#>  4 Assessment and Surve… Pros…  7089 Jeff … 2011-01-27 http…       7 Jan    2011
#>  5 Assessment and Surve… Calc…  8788 Ali M… 2011-01-19 http…       3 Jan    2011
#>  6 Assessment and Surve… Resu…  6115 Anony… 2011-01-25 http…       2 Jan    2011
#>  7 Cross-cutting issues  Tran…  6012 Anony… 2011-01-25 http…       1 Jan    2011
#>  8 Assessment and Surve… Nutr…  8966 Mary … 2012-01-01 http…      10 Jan    2012
#>  9 Upcoming trainings    Regi…  6828 Yara … 2012-01-10 http…       8 Jan    2012
#> 10 Micronutrients        mult…  7088 REBEC… 2012-01-18 http…       6 Jan    2012
#> # … with 1,936 more rows