Rstats 101
  • Home
  • LLM
  • dplyr
  • tidyr
  • ggplot2
  • Statistics
  • How-To
  • Base R

Rstats 101

Learn R Programming Tips & Tricks for Statistics and Data Science

Welcome to Rstats 101 - your guide to learning R programming and statistics with practical, hands-on tutorials.

How to Use Embeddings and Semantic Search in R

Learn to create text embeddings and build semantic search in R. Use OpenAI embeddings, cosine similarity, and find related documents by meaning.

How to Analyze Sentiment with LLMs in R

Learn to analyze sentiment in text using LLMs in R. Classify reviews, social media, and feedback as positive, negative, or neutral without training…

How to Classify Text with LLMs in R

Learn to classify text into categories using LLMs in R. Categorize documents, tag content, and label data without training ML models.

How to Extract Structured Data with LLMs in R

Learn to extract structured data from text using LLMs in R. Parse names, dates, products, and entities from unstructured text into clean data frames.

How to Run Local LLMs in R

Learn to run local language models in R using Ollama. Free, private, offline LLM access with no API costs. Use Llama 3, Mistral, and other open…

How to Use Claude API in R

Learn to use Anthropic’s Claude API in R with the ellmer package. Connect to Claude 4, create conversations, use tool calling, and build AI…

How to Use ellmer in R

Learn to use the ellmer package for LLM interactions in R. A tidyverse-friendly interface supporting OpenAI, Claude, Ollama, and more with…

How to Use Gemini API in R

Learn to use Google’s Gemini API in R with the ellmer package. Connect to Gemini Pro, create conversations, and build AI-powered R applications.

How to Use OpenAI API in R

Learn to use ChatGPT and OpenAI’s API in R. Connect to GPT-4, generate text, create chat completions, and build AI-powered R applications.

How to create all combinations with expand_grid() in R

Learn create all combinations with expand_grid() in r with clear examples and explanations.

Effect of centering and scaling data in R

Learn effect of centering and scaling data in r with clear examples and explanations.

How to calculate covariance in R

Learn calculate covariance in r with clear examples and explanations.

How to calculate Pearson correlation in R

Learn calculate pearson correlation in r with clear examples and explanations.

How to format currency in gt tables in R

Learn format currency in gt tables in r with clear examples and explanations.

How to count unique values with n_distinct() in R

Learn count unique values with n_distinct() in r with clear examples and explanations.

How to get the first row of each group in R

Learn get the first row of each group in r with clear examples and explanations.

How to get the last row of each group in R

Learn get the last row of each group in r with clear examples and explanations.

How to get top and bottom rows of each group in R

Learn get top and bottom rows of each group in r with clear examples and explanations.

How to update rows in a dataframe with rows_update() in R

Learn update rows in a dataframe with rows_update() in r with clear examples and explanations.

How to use anti_join() to find non-matching rows in R

Learn use anti_join() to find non-matching rows in r with clear examples and explanations.

No matching items

Featured Tutorial

Introduction to Mixed Effects Models

Learn when and why to use mixed models for longitudinal data with lme4

Browse by Topic

LLM

5 tutorials - NEW!

Use ChatGPT, Claude & local LLMs in R with ellmer

dplyr

59 tutorials

Data manipulation with filter, select, mutate, joins & more

tidyr

22 tutorials

Reshape data with pivot_wider, pivot_longer, separate & unite

ggplot2

22 tutorials

Create beautiful visualizations with the grammar of graphics

Statistics

31 tutorials

T-tests, ANOVA, regression, correlation & more

How-To

53 tutorials

Practical guides for common R tasks

Base R

21 tutorials

Core R programming fundamentals

Copyright 2025 Rstats101. All rights reserved.

 
  • About

  • Privacy Policy