Course Hero Logo

P7.Rmd - -title: P7 output: pdf document: default html...

This preview shows page 1 - 3 out of 5 pages.

---title: "P7"output:pdf_document: defaulthtml_document: defaultword_document: defaultName: Karina Mota---```{r}library(tidyverse)library(caret)library(randomForest)library(lubridate)library(corrplot)``````{r}# Read in the datacustomers = read_delim(paste0("marketing_campaign.csv"), delim = "\t", quote="")glimpse(customers)``````{r}colnames(customers)[1] <- "ID"``````{r}colnames(customers)``````{r}colnames(customers)[29] <- "Response"``````{r}colnames(customers)``````{r}customers = customers %>%select(-ID, -Z_Revenue, -Z_CostContact) %>%mutate(Dt_Customer = as.Date(Dt_Customer, format = "%d-%m-%Y")) %>%mutate_at(vars(Education, Marital_Status, AcceptedCmp1, AcceptedCmp2,AcceptedCmp3, AcceptedCmp4, AcceptedCmp5, Complain, Response),.funs = factor)```
```{r}# * Set the date that the data was collected and analyzed.

Upload your study docs or become a

Course Hero member to access this document

Upload your study docs or become a

Course Hero member to access this document

End of preview. Want to read all 5 pages?

Upload your study docs or become a

Course Hero member to access this document

Term
Spring
Professor
N/A
Tags
colnames

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