Skip to content
Snippets Groups Projects
Commit 13b04c37 authored by Angie Liu's avatar Angie Liu
Browse files

Delete lab_1.R

parent a0d9cb83
No related branches found
No related tags found
No related merge requests found
# Lab 1
# R basics
# set working directory
setwd('C:/Users/liu.6200/Box/TA/SP21 AEDE6120 Appl Quant Meth 2/Labs')
getwd()
# import data
authors <- read.csv("C:/Users/liu.6200/Box/TA/SP21 AEDE6120 Appl Quant Meth 2/Labs/authors.csv")
books <- read.csv("C:/Users/liu.6200/Box/TA/SP21 AEDE6120 Appl Quant Meth 2/Labs/books.csv")
# merge data
authors_books <- merge(authors, books, by.x = "surname", by.y = "name")
# create variables
books$name
authors_books$age <- c(51, 52, 52, 53, 54, 55)
# delete variables
authors_books$age <- NULL
# delete data (or other objects in the environment)
rm(authors)
x <- 3
rm(x)
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment