1: Programming Basics, Visualization Basics, Work with Data

0.0(0)
Studied by 0 people
call kaiCall Kai
Locked
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/48

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 4:35 AM on 9/20/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

49 Terms

1
New cards

Functions

blocks of code that perform specific tasks, typically taking inputs, processing them, and returning outputs

2
New cards

Arguments

values passed to functions for processing

3
New cards

sqrt()

a mathematical function that returns the square root of a given number

4
New cards

lm()

a statistical function in R that fits a linear model to data, allowing for the analysis of relationships between variables

5
New cards

rnorm()

a function in R that generates random numbers following a normal distribution, specified by mean and standard deviation

6
New cards

Objects

data structures in R that can store various types of information, including numbers, characters, or lists. cannot begin with numbers or characters

7
New cards

Vectors

one-dimensional arrays in R that hold elements of the same type, such as numeric, character, or logical

8
New cards

Atomic types

the simplest types of data in R, including logical, integer, numeric, complex, character, and raw, which cannot be broken down into simpler components

9
New cards

Lists

data structures in R that can hold elements of different types, including vectors, matrices, or even other lists

10
New cards

Data frames

two-dimensional tabular structures in R that hold elements of different types and are organized into rows and columns, similar to a spreadsheet or a SQL table

11
New cards

data.frame()

a function in R used to create data frames. It allows the user to combine vectors of differing types into a structured, tabular format

12
New cards

Extracting with $

a method in R to access elements of lists, data frames, or other objects by using the dollar sign followed by the name of the element

13
New cards

Packages

collections of R functions, data, and documentation bundled together to extend the functionality of R

14
New cards

ggplot()

a function in R used for data visualization, which creates complex plots by combining layers and aesthetics derived from the data

15
New cards

geom_point()

a function in ggplot2 used to create scatter plots by adding points to the plot, representing data points in a Cartesian coordinate system

16
New cards

mapping = aes()

specifies how data are mapped to visual properties in ggplot2, defining aesthetics such as x and y axes, color, and size

17
New cards

geom_ function

is a generic term in ggplot2 for functions that define geometric objects to be displayed, like points, lines, or bars, allowing the user to visualize data in various formats

18
New cards

aesthetics

refer to the visual elements in a ggplot2 plot that represent data attributes, such as color, size, and shape, allowing for effective data visualization

19
New cards

alpha =

a parameter in ggplot2 that controls the transparency of geometric objects in a plot, allowing for better visualization of overlapping data points

20
New cards

size =

a parameter in ggplot2 that adjusts the size of geometric objects in a plot, helping to emphasize or minimize the display of certain data attributes

21
New cards

shape =

a parameter in ggplot2 that defines the shape of geometric objects in a plot, which can be used to distinguish between different categories of data

22
New cards

color =

a parameter in ggplot2 that sets the color of geometric objects in a plot, which can be utilized to represent different values or categories of data

23
New cards

Setting

if you want to manually set the aesthetic to a value in the visual space, set it outside of aes(). no legend

24
New cards

Mapping

if you want to map the aesthetic to a variable in the data space, map it inside aes(). has legend

25
New cards

Geometric Objects

the visual representations of data points in a ggplot2 plot, such as points, lines, or bars, that help convey the underlying information

26
New cards

geom_smooth

a function in ggplot2 that adds a smoothed line, typically a regression line, to a plot, helping to visualize trends in the data

27
New cards

geom_line

a geometric object in ggplot2 used to connect data points with lines, useful for visualizing trends over time or continuous data

28
New cards

se argument

a parameter in ggplot2 functions that specifies whether to display the standard error around a smoothed line, helping to show the uncertainty of the estimates

29
New cards

Tibbles

a modern version of data frames in R, providing a user-friendly printing method and improved handling of various data types

30
New cards

as_tibble()

a function in R that converts regular data frames or lists to tibbles, ensuring a more consistent and user-friendly experience when working with data

31
New cards

is_titbble()

a function in R that checks if an object is a tibble, returning TRUE if it is and FALSE otherwise

32
New cards

view()

a function in R that opens the data viewer for a data frame or tibble, allowing users to visually inspect and explore the contents of the dataset

33
New cards

tidyverse

a collection of R packages designed for data science, emphasizing clean data and efficient workflows

34
New cards

Isolating

data transformations in R to prevent unwanted side effects and ensure the integrity of data during manipulation

35
New cards

select()

extracts columns of a data frame and returns the columns as a new data frame

36
New cards

filter()

extracts rows from a data frame and returns them as a new data frame. will return every row which the tests return TRUE

37
New cards

Logical tests

conditions evaluated to determine which rows to return, typically used within functions like filter()

38
New cards

arrange()

reorders rows of a data frame based on the values of one or more columns, allowing for ascending or descending order

39
New cards

desc()

function used to specify descending order in the arrange() function, affecting how data is sorted

40
New cards

%>%

a pipe operator used in R to pass the output of one function directly as an input to another, facilitating a clear and readable workflow

41
New cards

summarise()

takes a data frame and uses it to calculate a new data frame of summary statistics. will turn each named argument into a new column in the new data frame

42
New cards

sum()

function used to calculate the total of numeric values in a vector or data frame column

43
New cards

max()

function that returns the maximum value in a vector or data frame column

44
New cards

mean()

function that calculates the average of numeric values in a vector or data frame column

45
New cards

group_by()

function used to group data frames by one or more variables, allowing for summary operations on grouped data

46
New cards

ungroup()

function that removes grouping from a data frame, returning it to its original ungrouped state

47
New cards

mutate()

function that creates new variables or modifies existing ones in a data frame, often based on transformations of other variables

48
New cards

Vectorized functions

functions that operate on entire vectors or arrays at once, enhancing performance and efficiency in data manipulation

49
New cards

min_rank()

function that assigns ranks to elements in a vector, with ties receiving the same rank and the next rank skipped