2.10) Visualizing R Objects (cont'd)
A matrix (in this case without row and column names):
[,1] [,2] [,3] [,4] [,5] [,6] [,7] [,8]
[1,] 9 11 10 9 10 8 10 9
[2,] 10 11 12 10 10 8 9 10
[3,] 11 12 12 9 9 11 10 10
A data frame (a special kind of list where all elements have the same length):
Site Girth Fruits
1 A 12.6 25
2 B 9.8 20
3 C 9.6 19
4 D 10.3 23
The beginning of an R function (the whole thing can be very long!):
function (x, y=NULL, use="everything", method=c("pearson","kendall","spearman"))
{
na.method <- pmatch(use, c("all.obs", "complete.obs", "pairwise.complete.obs","everything","na.or.complete"))
Over to you...
What does an array look like on the screen?