100% de satisfacción garantizada Inmediatamente disponible después del pago Tanto en línea como en PDF No estas atado a nada 4.2 TrustPilot
logo-home
Resumen

Summary Notes - Skills: Data Preparation and Workflow Management (dPrep)

Puntuación
-
Vendido
2
Páginas
22
Subido en
03-02-2025
Escrito en
2024/2025

Notes on the DPREP course from all lectures, tutorials, and assigned readings.

Institución
Grado










Ups! No podemos cargar tu documento ahora. Inténtalo de nuevo o contacta con soporte.

Escuela, estudio y materia

Institución
Estudio
Grado

Información del documento

Subido en
3 de febrero de 2025
Número de páginas
22
Escrito en
2024/2025
Tipo
Resumen

Temas

Vista previa del contenido

Contents
Lecture 1 .................................................................................................................................2
Tutorial 1 .................................................................................................................................2
Data Carpentry – R for Social Scientists Ch. 1 - 4 ......................................................................3
A Guide to Scrum for Researchers ............................................................................................6
Lecture 2 .................................................................................................................................6
Data Carpentry – R for Social Scientists Ch. 7 ...........................................................................8
Tutorial 3 .................................................................................................................................9
Principles of Project Setup and Workflow Management ........................................................... 10
Lecture 4 ............................................................................................................................... 15
Tutorial 4 ............................................................................................................................... 16
Data preparation process and challenges ............................................................................... 16
Lecture 5 ............................................................................................................................... 17
Tutorial 5 ............................................................................................................................... 18
Use Makefiles to Manage, Automate, and Reproduce Projects................................................. 20
This is why you should automate the pipeline of your research project..................................... 21
Four steps to automate & make reproducible your empirical research project.......................... 21

,Lecture 1

What’s e icient?

- Develop and prototype the “final pipeline” of your project, refine later.
- Reduce setup costs to return to a project (e.g., finding relevant files, getting your code to
work)
- Reduce coding mistakes (or catching them at all)
- Rotating and collaborating on tasks (e.g., team members taking over)
- Sharing/reusing code (e.g., in so-called “packages” or “libraries”)
- Receiving feedback from others

Tutorial 1

RStudio = graphical user interface to R

Why learn R?

- No point and clicking
- Great for reproducibility
- Interdisciplinary & extensible
o It has packages from many di erent disciplines
- Supports all data formats
- Can produce high-quality graphics
- Has a large community
- It’s free, open-source, and cross-platform
- Works even in the cloud!

Working directory = the directory that the computer is in at the moment

Absolute directory = a path that starts from the root directory, providing the complete location
of a file or folder.

Relative directory: one directory is our main directory and all directories are relative to that
directory.

- Use ‘../’ to go “up” one directory.

Create a directory by: mkdir data # continue w/ other directories

Using R:

- As a calculator
- Variable assignment
- = vs. ==
o == compares two things
o = assigns a value to a variable
- Functions
o Using functions (e.g., round))
o Getting help on functions
 “?function”
o What functions exist?
- Vectors and data types (c(1,2,3), c(“Berlin”, “Barcelona”), NA)

, - Subsetting vectors (explicitly, conditionally with logical operators)
o [1] will give you the first value of a vector

Starting with data

- Individual values vs “holding data” (rows, columns)
- Di erence between Excel & R? In R, each column holds the same data type.

$column_name shows data - $ allows us to access data that is stored in columns of a data file.

Data %>% select(column_name)does the same thing, but is more modern. It subsets/selects
columns

filter(): subsets rows on conditions

- Example: streams %>% filter(`Track Name` == "Pepas")

mutate (): create new columns by using information from other columns

- Example: streams <- streams %>% mutate(weekly_streams = `Streams` * 7) streams %>%
select(`Track Name`, `Streams`, weekly_streams)

arrange(): sorting data from smallest to largest

- Example: streams <- streams %>% arrange(streams)
- To sort from largest to smallest:
o streams <- streams %>% arrange(-streams)
o streams <- streams %>% arrange(desc(streams))

group_by()and summarize(): create summary statistics on grouped data

- Example: streams %>% group_by(Artist) %>% summarize(total_streams = sum(Streams))

count(): count discrete values

- Example: streams %>% count(Streams>1E6)

Data Carpentry – R for Social Scientists Ch. 1 - 4

Why learn R?

- No pointing and clicking
o Results of your analysis rely on a series of written commands. Working with
scripts makes the steps you used in your analysis clear, and the code you write
can be inspected by someone else. It also forces you to have a deeper
understanding of what you are doing, and facilitates your learning and
comprehension of the methods you use.
- Reproducibility
o Reproducibility = when someone else can obtain the same results from the same
dataset when using the same analysis.
o If you collect more data, or fix a mistake in your dataset, your figures and the
statistical tests in your manuscript are updated automatically.
- Interdisciplinary and extensible
$6.64
Accede al documento completo:

100% de satisfacción garantizada
Inmediatamente disponible después del pago
Tanto en línea como en PDF
No estas atado a nada

Conoce al vendedor

Seller avatar
Los indicadores de reputación están sujetos a la cantidad de artículos vendidos por una tarifa y las reseñas que ha recibido por esos documentos. Hay tres niveles: Bronce, Plata y Oro. Cuanto mayor reputación, más podrás confiar en la calidad del trabajo del vendedor.
BAstudent1 Tilburg University
Seguir Necesitas iniciar sesión para seguir a otros usuarios o asignaturas
Vendido
47
Miembro desde
2 año
Número de seguidores
21
Documentos
15
Última venta
3 semanas hace
BAstudent

3.8

4 reseñas

5
2
4
0
3
1
2
1
1
0

Recientemente visto por ti

Por qué los estudiantes eligen Stuvia

Creado por compañeros estudiantes, verificado por reseñas

Calidad en la que puedes confiar: escrito por estudiantes que aprobaron y evaluado por otros que han usado estos resúmenes.

¿No estás satisfecho? Elige otro documento

¡No te preocupes! Puedes elegir directamente otro documento que se ajuste mejor a lo que buscas.

Paga como quieras, empieza a estudiar al instante

Sin suscripción, sin compromisos. Paga como estés acostumbrado con tarjeta de crédito y descarga tu documento PDF inmediatamente.

Student with book image

“Comprado, descargado y aprobado. Así de fácil puede ser.”

Alisha Student

Preguntas frecuentes