Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- > source("cachevector.R")
- > v <- 1:6
- > v <- makeVector(v)
- > v$get()
- $set
- function (y)
- {
- x <<- y
- m <<- NULL
- }
- <environment: 0x0000000015154618>
- $get
- function ()
- x
- <environment: 0x0000000015154618>
- $setmean
- function (mean)
- m <<- mean
- <environment: 0x0000000015154618>
- $getmean
- function ()
- m
- <environment: 0x0000000015154618>
- >
Add Comment
Please, Sign In to add comment