-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmisc.R
More file actions
29 lines (21 loc) · 720 Bytes
/
misc.R
File metadata and controls
29 lines (21 loc) · 720 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# R -q
# q('no')
# rm(list = ls(all = TRUE)) ## Clear workspace
# clc <- function() cat(rep("\n",50)) # funk to clear terminal
# clc()
sessionInfo()
options(repos=c("http://cran.at.r-project.org/"))
# chooseCRANmirror(graphics = FALSE)
# install.packages(c("qgraph", "foreign", "mvbutils", "diagram", "gtools", "gdata", "reshape"))
install.packages("Hmisc", dependencies = TRUE)
# install.packages(c("psych", "ggplot2"), dependencies = TRUE)
# update.packages(ask = FALSE, dependencies = c('Suggests'))
# require(ggplot2)
## List the Files in a Directory/Folder
list.files(pattern = "*.txt")
ptm <- proc.time()
2+2
print(proc.time() - ptm)
pcon <- pipe("pbpaste")
df <- read.table(pcon, , header = T)
dput(df)