count_unique_accessors: Count number of people accessing data

View source: R/count_unique_accessors.R

count_unique_accessorsR Documentation

Count number of people accessing data

Description

Count number of people accessing data

Usage

count_unique_accessors(
  path,
  from = as.POSIXct("1899-01-01"),
  to = as.POSIXct(Sys.Date())
)

Arguments

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)

Value

Number of unique people accessing data

Note

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;


NCEAS/arcticreport documentation built on July 26, 2024, 11:16 p.m.