new_mem_counter: New Member Counter

Description Usage Arguments Value Examples

Description

Generates sum of new members between each meetup.

Usage

1

Arguments

data

A data.frame created by exporting the members list from meetup.com. Note: All date fields must by coverted to class Date.

Value

new_mem_counter returns a data.frame containing 2 variables. These are the 'Date' of each meetup, and how many 'New' members joined leading up to each meetup.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
 data(member_list)

 new_members <- new_mem_counter(member_list)
 
 tail(new_members)
 
 # Plot the new members data since 2017.
 
 # Create Date Range Index
 Range <- new_members[new_members$Date > "2017-01-01" & new_members$Date <= Sys.Date(),]
 Date_Index <- as.numeric(row.names(Range))
 
 # Create x-axis labels, using year-month date format
 x_labels <- format(new_members$Date[Date_Index], "%Y-%m")
 
 # Plot
 barplot(new_members$New[Date_Index], names.arg = x_labels, las=2,
         main = "CRUG members, joined between meetups",  
         ylab = "New Members", xlab = "")
         

Chicago-R-User-Group/RUGtools documentation built on May 14, 2019, 2:17 p.m.