Skip to content

Instantly share code, notes, and snippets.

@Dixhom
Last active January 15, 2016 04:19
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 Dixhom/7d3c65d87cf70efab210 to your computer and use it in GitHub Desktop.
Save Dixhom/7d3c65d87cf70efab210 to your computer and use it in GitHub Desktop.
RstudioでRパッケージを作ってみる 1 ~自作関数を実行~ ref: http://qiita.com/Dixhom/items/918f18ca22150e43c662
require(ggplot2)
library(dplyr)
hello <- function() {
# Hello world を10回表示
for(i in 1:10){
print("Hello, world!")
}
}
> hello()
[1] "Hello, world!"
[1] "Hello, world!"
[1] "Hello, world!"
[1] "Hello, world!"
[1] "Hello, world!"
[1] "Hello, world!"
[1] "Hello, world!"
[1] "Hello, world!"
[1] "Hello, world!"
[1] "Hello, world!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment