This is an R Markdown Notebook. When you execute code within the notebook, the results appear beneath the code.
Try executing this chunk by clicking the Run button within the chunk or by placing your cursor inside it and pressing Ctrl+Shift+Enter.
if("tidyverse" %in% installed.packages("tidyverse") == FALSE)install.packages("tidyverse")
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.5/tidyverse_1.2.1.zip'
Content type 'application/zip' length 92594 bytes (90 KB)
downloaded 90 KB
package ‘tidyverse’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\Administrator\AppData\Local\Temp\Rtmp2lBJZD\downloaded_packages
library(tidyverse)
[37m-- [1mAttaching packages[22m --------------------------------------- tidyverse 1.2.1 --[39m
[37m[32m愼<U+3E31><U+653C><U+3E65>[37m [34mggplot2[37m 3.0.0 [32m愼<U+3E31><U+653C><U+3E65>[37m [34mreadr [37m 1.1.1
[32m愼<U+3E31><U+653C><U+3E65>[37m [34mtibble [37m 1.4.2 [32m愼<U+3E31><U+653C><U+3E65>[37m [34mpurrr [37m 0.2.5
[32m愼<U+3E31><U+653C><U+3E65>[37m [34mtidyr [37m 0.8.1 [32m愼<U+3E31><U+653C><U+3E65>[37m [34mforcats[37m 0.3.0[39m
[37m-- [1mConflicts[22m ------------------------------------------ tidyverse_conflicts() --
[31mx[37m [34mdplyr[37m::[32mfilter()[37m masks [34mstats[37m::filter()
[31mx[37m [34mdplyr[37m::[32mlag()[37m masks [34mstats[37m::lag()[39m
if("readxl" %in% installed.packages("readxl") == FALSE)install.packages("readxl")
Error in install.packages : Updating loaded packages
library(readxl)
if("dplyr" %in% installed.packages("dplyr") == FALSE)install.packages("dplyr")
Error in install.packages : Updating loaded packages
library(dplyr)
if("stringr" %in% installed.packages("stringr") == FALSE)install.packages("stringr")
Error in install.packages : Updating loaded packages
library(stringr)
for (i in 1:length(var.files)) {
t <- read_excel(path=paste("rawdata","/",var.files[i]),sheet=1,
col_names = T)
t <- mutate(t,data=paste(substr(var.files[i],1,4),"-",
month = substr(files[i],7,8),"-10"
))
var.apt <- rbind(var.apt,t)
}
Error: `path` does not exist: ‘rawdata / 2016년_아파트_강남실거래가.xlsx’
Add a new chunk by clicking the Insert Chunk button on the toolbar or by pressing Ctrl+Alt+I.
When you save the notebook, an HTML file containing the code and output will be saved alongside it (click the Preview button or press Ctrl+Shift+K to preview the HTML file).
The preview shows you a rendered HTML copy of the contents of the editor. Consequently, unlike Knit, Preview does not run any R code chunks. Instead, the output of the chunk when it was last run in the editor is displayed.