15_WebCache_Simulation

lengthcache500 1 500 classcache5001 1 integer

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: not they had changed. •  Ques5on: Given a new website, how oEen would you recommend as the length of 5me between visi5ng the site? load(url(“http://www.stanford.edu/~vcs/ StatData/Cache500.rda”))! > class(Cache500)! [1] "list”! > length(Cache500)! [1] 500! ! > class(Cache500[[1]])! [1] "integer"! > length(Cache500[[8]])! [1] 14! > Cache500[[8]]! [1] 3 23 30 32 39 42 45 ! [8] 62 78 82 147 151 155 175! The 8th web site changed 14 5mes. The first change was observed on the 3rd visit, the second on the 23rd visit, and the last observed change was on the 175th visit Find the number of visits to each site > ls = sapply(Cache500, length)! ! > head(ls) [1] 206 22...
View Full Document

Ask a homework question - tutors are online