共 4 篇文章 |
|
If the datatype was a matrix we would be required to supply both the row and column as in matrix["row","column"]In mydata, the rows don’t have names, so we have to use position. By specifying row position with no following column names then all column values are given for that row.> row=mydata... 阅405 转1 评0 公众公开 13-03-24 17:49 |
iris[1:10, "Sepal.Length"] # Sepal.iris$Sepal.Length~Spacies, summary, data=iris) # 对于Sepal.Length变量,在每个Species水平上执行summary计算。Length~Species, data=iris) # 针对每个Species水平绘制Sepal.Length的盒形图。Length), jitter(iris$Sepal.以Sepal.Length和Sepal.Width为横纵坐标,分水平,以Petal.Width大小为... 阅587 转8 评0 公众公开 13-03-24 17:08 |
chmod 777 -R/home/tiger/R-2.15.1/lib/R/library/rJava7./etc/profileCLASSPATH=.:/home/tiger/R-2.15.1/lib/R/library/rJava/jriLD_LIBRARY_PATH=/home/tiger/R-2.15.1/lib/R/library/rJava/jri8.cp /home/tiger/R-2.15.1/lib/R/library/rJava/jri/libjri.so /usr/lib9. cp/home/tiger/R-2.15.1/lib/R/library/rJava/jri/*.jar /usr/lib/jvm... 阅272 转0 评0 公众公开 13-02-22 10:41 |
> whatIs <- function(object) data.class(object)> whatIs(1:10)[1] "numeric"> whatIs(matrix())[1] "matrix"> whatIs(whatIs)[1] "function"> setMethod("whatIs","function", whatIs.function)用函数"whatIs"来建立新的同屬函数[1] "whatIs">... 阅25 转自上通下达 公众公开 13-02-21 16:59 |