View source: R/count_unique_accessors.R
count_unique_accessors | R Documentation |
Count number of people accessing data
count_unique_accessors(
path,
from = as.POSIXct("1899-01-01"),
to = as.POSIXct(Sys.Date())
)
path |
Path to file with downloads information from Metacat |
from |
Start date to count over (chatacter or POSIXct) |
to |
End date to count over (character of POSIXct) |
Number of unique people accessing data
In the postgres database, use query: COPY ( SELECT * FROM access_log WHERE date_logged > '2021-02-01 00:00' AND date_logged < '2021-04-30 23:59' AND lower(event) = 'read' ORDER BY date_logged ASC ) TO '/tmp/access_log.csv' WITH CSV HEADER;
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.