100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
Sumario Intro RStudio (interfaz, funciones, graficos, data management) $15.49   Add to cart

Summary

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

 3 views  0 purchase
  • Course
  • Institution

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

Preview 3 out of 21  pages

  • November 11, 2024
  • 21
  • 2024/2025
  • Summary
avatar-seller
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

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller malenaacadmico. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $15.49. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

67474 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$15.49
  • (0)
  Add to cart