Course Hero Logo

module 6.txt - #Read in Files from Module Four Sample...

Course Hero uses AI to attempt to automatically extract content from documents to surface to you and others so you can study better, e.g., in search results, to enrich docs, and more. This preview shows page 1 - 2 out of 2 pages.

> #Read in Files (from Module Four Sample Data Validation and Discovery)> library(readr)> aapl <- read_csv("~/workspace/SNHU/DAT-500/Milestones/dat500_module_six_AAPL.csv")Parsed with column specification:cols(Company = col_character(),Ticker = col_character(),Date = col_character(),Week = col_integer(),Price = col_double(),Shares = col_integer(),PriorDate = col_character(),PriorWeek = col_integer(),PriorPrice = col_double(),PriorShares = col_integer())> View(aapl)>>> msft <- read_csv("~/workspace/SNHU/DAT-500/Milestones/dat500_module_six_MSFT.csv")Parsed with column specification:cols(Company = col_character(),Ticker = col_character(),Date = col_character(),Week = col_integer(),Price = col_double(),Shares = col_integer(),PriorDate = col_character(),PriorWeek = col_integer(),PriorPrice = col_double(),PriorShares = col_integer())> View(msft)>>>>> #For the Price and Shares, determine the percentage of change(from Module FourSasmple Data Validation and Discovery)> aaplPriceChangePct<-((aapl$PriorPrice/aapl$Price)-1)*100> msftPriceChangePct<-((msft$PriorPrice/msft$Price)-1)*100>>

Upload your study docs or become a

Course Hero member to access this document

End of preview. Want to read all 2 pages?

Upload your study docs or become a

Course Hero member to access this document

Term
Spring
Professor
Joe Normal
Tags

Newly uploaded documents

Show More

Newly uploaded documents

Show More

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture