Created
March 17, 2019 06:03
-
-
Save nashutoing/89eb76deec191c833f16e3ee44163c3f to your computer and use it in GitHub Desktop.
aoki_100bats added ways to change rows and comns
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a<- rbinom(1000,100,0.3) | |
b<- a/100 | |
hist(b,freq=TRUE,breaks=seq(0.1,0.5,0.005),xlab = "打率",ylab = "シーズン数", | |
main="100打席に立った青木選手の1000シーズン分の打率分布") | |
print(xtable(table(b)),type="html") #didn't use (too long) | |
p<- table(b) | |
p | |
q<- t(p) #change rows and columns | |
q | |
print(xtable(q),type="html") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment