Skip to content

Instantly share code, notes, and snippets.

@masayukeeeee
Last active September 21, 2016 12:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save masayukeeeee/98bbd458ba96f99215d5583a4cfc36ad to your computer and use it in GitHub Desktop.
Save masayukeeeee/98bbd458ba96f99215d5583a4cfc36ad to your computer and use it in GitHub Desktop.
> load('~/Desktop/データ解析のための/data.RData')
> ls()
[1] "data"
> data
[1] 2 2 4 6 4 5 2 3 1 2 0 4 3 3 3 3 4 2 7 2 4 3 3 3 4 3 7 5 3 1 7
[32] 6 4 6 5 2 4 7 2 2 6 2 4 5 4 5 1 3 2 3
> summary(data)
Min. 1st Qu. Median Mean 3rd Qu. Max.
0.00 2.00 3.00 3.56 4.75 7.00
> var(data)
[1] 2.986122
> sd(data)
[1] 1.72804
> sqrt(var(data))
[1] 1.72804
> table(data)
data
0 1 2 3 4 5 6 7
1 3 11 12 10 5 4 4
hist(data)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment