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:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
|
# For Functions used for objects ###############################################
numEng = c(78, 88.4, 67.5, 33.3, 95, 92)
txtNames = c("EBKim", "GDJin", "JBPark", "IHYou", "JHWon", "SJChoi")
logicData = c(TRUE, FALSE, TRUE, TRUE, FALSE, TRUE)
matrixNew = matrix(1:36, ncol=12); matrixNew # Filed by Columns
dfData = data.frame(txtNames, numEng, logicData)
factorGender = factor(c("Female", "Male", "Female", "Male", "Female"))
length(numEng) # number of elements or components
str(numEng) # structure of an object
str(txtNames)
str(logicData)
str(matrixNew)
str(dfData)
str(factorGender)
class(numEng) # class or type of an object
class(txtNames)
class(logicData)
class(matrixNew)
class(dfData)
class(factorGender)
names(matrixNew) # column names
names(dfData)
colnames(dfData) # column names
rownames(dfData) # row names
ls() # list current objects
rm(dfData) # delete an object
ls()
edit(matrixNew) # Not saved the changes after closing the editor
matrixNew
newObj <- edit(matrixNew) # edit copy and save as newobject
newObj
fix(newObj) # edit in place
newObj
# For R Packages ################################################################
install.packages("ggplot2")
library("ggplot2")
library()
installed.packages();
edit(installed.packages()[, c("Package", "Version")])
# Installing packages from Github
install.packages("devtools")
library("devtools")
install_github("cran/gplots") # https://github.com/cran/gplots
library("devtools")
install("C:/Users/ebkim/Downloads/gplots-master") # zip extracted
# For help ################################################################
help(plot)
?plot
?ggplot2::gplot
|