Day 4, B
Purpose:
GitHub Copilot acts as an AI pair programmer, providing real-time, context-aware code completions (“ghost text”) as you type in R scripts.
Getting started:
How?
Generating code
Answering questions
# q: at the beginning and a question mark at the end. Copilot’s completion should be an “answer” comment # a:.For example, the below will be completed with an a: followed by an answer:
Think about the overall goal and break it down into smaller subtasks. Write down those subtasks using the language of programming.
# This function takes a data frame and returns a tidy summary of each numeric columnUse dplyr’s group_by() + summarise(); handle NA values; return a tibble.# Write an R function named summarise_numeric() that ... gives a specific action.targets packageshiny packageggplot2 custom Geoms and Stats