R with paws
The dcdcr (deprecated) page explains how to use the DataCamp Data Connector using a convenient R package created by DataCamp. However, if you cannot install the package, you can also use the opensource paws package instead.
The dcdcr package is actually just a wrapper of the paws package custom built to support our Data Model.
This page describes how you can easily use the paws package to use R to analyze the data from the Data Connector.
Before you get started, please make sure your credentials are set up properly. How to do this is explained in the Storing your Credentials article.
Examples
Get a list of all users
This script retrieves a list of all users from the Data Connector and stores it in a tibble.
Get time spent on courses for a single user
This code will print a dataframe with all course activity for a single user, it lists the course, the amount of time spent (in seconds) and date for all their learning sessions.
More examples?
Reach out to your customer success manager and we are happy to help you get the data you need using our R library or SQL.
Last updated