← Other topics

AI-Assisted Data Exploration in R with Positron

Video Notes

In the above video, I walk through importing and processing a dataset using R while working in Positron. Along the way, I highlight several of Positron’s features, including its built-in AI capabilities, and share practical tips and best practices for using AI-assisted coding effectively.

If you’re new to Positron, I’ve also published two related videos: one that provides a general overview of Positron, and another that walks through configuring and using its AI assistant.

Neither of those videos are required to follow along with the above video, but they’re useful if you’d like a deeper dive into Positron itself.

Example data

The example data we’ll work with is from a Employee Satisfaction Survey Data found on Kaggle.com.

➡️ You can access the CSV data here...

Summary of AI tips

Code

library(dplyr)

survey <- read.csv("data/employee-survey.csv")

# Convert 'dept' and 'salary' to categorical (factor) variables using dplyr's mutate/across
survey <- survey |> mutate(across(c(dept, salary), as.factor))
← Other topics