- 博客(7)
- 收藏
- 关注
原创 【R for MAC】【11.09更新】请停下你砸电脑的双手系列
Windows 调用剪切板内容的代码:X<-read.table("clipboard",header=T);X将以上代码直接放进R跑,始终提示Error in file(file, “rt”) : X11 module cannot be loaded查了半天才知道天杀的OS系统居然要用pipe(“pbpaste”)哦不我亲爱的老伙计我真是活见鬼了我的上帝老天爷X=read.ta...
2018-11-09 22:33:37
1415
2
原创 【Rscript】1.基本操作
setwd("/Users/alexandrashaw/Documents/R")getwd()x1 <- c(171,175,159,155,152,158,154,164,168,166,159,164)x2 <- c(57,64,41,38,35,44,41,51,57,49,47,46)rbind(x1,x2)#row combine按行合并cbind(x1,x2)#...
2018-11-07 17:19:15
4915
原创 深圳二手房回归分析
#setwd("/Users/alexandrashaw/Documents/商务数据分析/homework") #工作路径library(ggplot2)## Warning: package 'ggplot2' was built under R version 3.4.4library(gridExtra)par(family='STKai...
2018-11-07 11:17:29
551
翻译 令人智熄的GGplot2画图显示不出中文的毛病
#因变量直方图par(mfrow=c(1,1)) #画1*2的图#hist(dat0$danjia, xlab=&quot;单位面积房价(万元/平方米)&quot;,ylab=&quot;频数&quot;,main=&quot;&quot;,col=&quot;lightblue&quot;)ggplot(dat0, aes(danjia)) + geom_hist
2018-11-04 18:40:10
10231
10
原创 安装包
install.package(“ggplot2”)用来安装想要的包installed.package() 可以查看已经安装了的包安装完之后调用:library(ggplot2)
2018-11-04 18:31:54
236
原创 设置工作路径和读入csv格式的数据
setwd("/Users/alexandrashaw/Documents/DA/chexian") #工作路径dat0=read.csv("auto.csv",header=T,fileEncoding = 'GBK') #读入清洗过后的数据
2018-11-04 18:19:15
428
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人