Skip to content

Commit e77d724

Browse files
committed
attempt rdpeng#1
getting started
1 parent 7f657dd commit e77d724

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

cachematrix.R

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,18 @@
44
## Write a short comment describing this function
55

66
makeCacheMatrix <- function(x = matrix()) {
7-
7+
# just testing
8+
m <- NULL
9+
set <- function(y) {
10+
x <<- y
11+
m <<- NULL
12+
}
13+
get <- function() x
14+
setmean <- function(mean) m <<- mean
15+
getmean <- function() m
16+
list(set = set, get = get,
17+
setmean = setmean,
18+
getmean = getmean)
819
}
920

1021

0 commit comments

Comments
 (0)