Publications by Zarif Ibtehaj Emon
MIS 410 1 to 5
# loading data Store8<- read.csv(file="C:/develop/OneDrive - MSFT/Documents/MIS410/Shore 8 walmart.csv") 1 1. Which dates have the maximum and minimum sales for your store? ANS # Load necessary library library(dplyr) # creating max salte max_sales_date <- Store8 %>% filter(Weekly_Sales == max(Weekly_Sales)) %>% select(Date, Weekly_Sale...
1188 sym R (2414 sym/16 pcs) 3 img
R for finance Project 02
1 Portfolio analysis R script seems to be designed for conducting a financial analysis of a portfolio consisting of several assets. Here’s a breakdown of the different sections of your script and what they contribute to the analysis: 2 Nessary steps: Setup and Libraries: We begin by loading necessary libraries such as dplyr, quantmod, and P...
2306 sym 6 img
R for finance Project 01
1 Technical analysis Download 10 years of trading data from getSymbols and calculate daily returns of Amazon (AMZN), and calculate monthly, quarterly, and yearly returns both discrete and continuous way. # Loading libraries library(quantmod) # Downloading data getSymbols("AMZN", from = "2012-01-01", to = "2022-01-01") # Calculate daily re...
3667 sym R (912 sym/1 pcs) 5 img
R for Finance Assignment 1
1 USing Chunk Options 1.1 NO Code 1.2 Only Code will be shown library(ggplot2) # Data from WHO Corona virus (COVID-19) Dashboard data <- data.frame( Year = factor(c(2020, 2021, 2022, 2023)), # Convert Year to a factor Deaths = c(7559, 20513, 1368, 37)) # Custom colors for the bars bar_colors <- c("#EEB4B4", "#7FCAE6", "#B6D7A8", "#...
1230 sym R (922 sym/6 pcs) 2 img
R Program Visualization Project
Scatterplot MTCARS Data We can see the differences between the Horsepower vs. MPG for mtcars in MPG and Horsepower. We found out that the MPG and Horsepower of most factor(cyl) is 8 which is more than other factor(cyl). library(tidyverse) library(ggplot2) data("mtcars") mtcars_plot <- ggplot(mtcars, aes(x = hp, y = mpg)) + geom_point(ae...
821 sym R (1714 sym/3 pcs) 3 img
R Program Visualization Project
Scatterplot Star Wars Data We can see the differences between the Star Wars Movie series male and female characters in height and weight. We found out that the height and weight of most male characters are more than of the female characters library(tidyverse) ## ── Attaching core tidyverse packages ──────────────...
848 sym R (2551 sym/8 pcs) 3 img
R Program Visualization Project
library(ggplot2) library(tidyverse) ## ── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ── ## ✔ dplyr 1.1.3 ✔ readr 2.1.4 ## ✔ forcats 1.0.0 ✔ stringr 1.5.0 ## ✔ lubridate 1.9.3 ✔ tibble 3.2.1 ## ✔ purrr 1.0.2 �...
14 sym R (2913 sym/8 pcs) 3 img
Assigenment1
##Question01 (5*4)^(4*5)-56 ## [1] 1.048576e+26 23-1*(8-12) ## [1] 27 56/8*(3+4) ## [1] 49 45-5*8+(8+9) ## [1] 22 ##Question02 # Create vector a a <- c(2, 5, 6, 7) # Create vector b b <- c(1, 0, 9, 8) # Create vector c c <- c(6, 5, 8, 3) # Print the vectors print(a) ## [1] 2 5 6 7 print(b) ## [1] 1 0 9 8 print(c) ## [1] 6 5 8 3...
67 sym