Showing posts with label Impact of two merger stocks. Show all posts
Showing posts with label Impact of two merger stocks. Show all posts

Saturday, August 31, 2019

Impact of two merger stocks

How does a merger affect R

stocks,impact of mergers and acquisitions on stock price,stock market,mergers and acquisitions,basics of mergers and acquisitions,do mergers increase stock value,stock news,stock,post merger eps,mergers and acquisitions of companies,stock (literature subject),viacom merger,safe dividend stocks,idea vodafone merger,viacom stock,viacom cbs merger,merger models,pre merger eps


> stock_tcs<-Quandl("NSE/TCS",state_date='2012-02-02')

Remove unwanted column

> stock_tcs<-Quandl("NSE/TCS",state_date='2012-02-02')[,c("Date","Close")]

> View(stock_tcs)

stock_infosys<-Quandl("NSE/INFY",start_date='2012-02-02')

> mergeData<-merge(stock_tcs,stock_infosys,by.x="Date",by.y = "Date")

> View(mergeData)

How to merge two data R?

> mergeData<-merge(stock_tcs,stock_infosys,by.x="Date",by.y = "Date")[,c("Date","Close.x","Close.y")]

How to change name two data R

names(mergeData)<-c("Date","tcs_Close","infosys_Close")

How to plot two merge data.

> ggplot(mergeData,aes(x=mergeData$Date))+geom_line(aes(y=mergeData$tcs_Close),col='red')+geom_line(aes(y=mergeData$infosys_Close),col="black")+xlab("Closed Date")+ylab("Closed Rates")

Black-Scholes formula-R

 Black-Scholes formula-R > BlackScholes <- function(TypeFlag = c("c", "p"), S, X, Time, r, b, sigma) { TypeFla...