Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Summary

Sumario Intro RStudio (interfaz, funciones, graficos, data management)

Rating
-
Sold
-
Pages
21
Uploaded on
11-11-2024
Written in
2024/2025

Manual introductorio al programa para manejo de datos R / RStudio. Incluye explicacion de la interfaz, funciones, gráficos, data management, data wrangling, etcetera.

Institution
Course

Content preview

Intro a RStudio - Farias Malena
Manual de uso para RStudio realizado por Malena Farias
para el curso “Análisis de Datos para Ciencias Sociales” en
la Universidad Torcuato Di Tella, dictada por Camila Navajas
Ahumada.

Introducción
Interfaz




Intro a RStudio - Farias Malena 1

, Set Working Directory
Setear working directory
setwd("/")


Ver working directory
getwd()


O puedo hacer Session > Set Working Directory > Choose Directory


Console Window
Código en azul → comando correctamente ejecutado.

Signo >| con la barra parpadeando, indica que R está listo para procesar
nuevas instrucciones.


Objetos
Una base de datos

Un subset de esa base de datos

Un número

Un texto string

Una función

Cargar base de datos
CSV

nombre <- read.csv("archivo.csv")


RData

nombre <- load("archivo.RData")


DTA




Intro a RStudio - Farias Malena 2

, nombre <- load("archivo.dta")


XLSX (Excel)

library(readxl)
nombre <- read_excel("archivo.xlsx")

Guardar base de datos
CSV

write.csv(nombre, file = "archivo.csv")


RData

save(nombre, file = "archivo.RData")


Data Frames
Es una colección de vectores

Funciones útiles para usar con data frames

names(): muestra un vector con el nombre de las varia
nrow(): muestra el número de filas
ncol(): muestra el número de columnas
dim(): combina ncol() y nrow() en un solo vector
summary(): produce un summary de la data
head(): muestra las primeras 6 observaciones
tail(): muestra las últimas 6 observaciones


Uso [] para extraer fragmentos de bases de datos

Primeras 3 obs de una variable
objeto[1:3, "variable2"]
objeto[1:3, 2]

Primeras 3 obs de todas las variables



Intro a RStudio - Farias Malena 3

Written for

Institution
Course

Document information

Uploaded on
November 11, 2024
Number of pages
21
Written in
2024/2025
Type
SUMMARY

Subjects

$15.99
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
malenaacadmico

Also available in package deal

Get to know the seller

Seller avatar
malenaacadmico Universidad Torcuato Di Tella
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
1 year
Number of followers
0
Documents
8
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions