A-M baby
This commit is contained in:
parent
764da6cbbb
commit
db842d013d
19005 changed files with 197040 additions and 7 deletions
6
Task/Memory-allocation/R/memory-allocation.r
Normal file
6
Task/Memory-allocation/R/memory-allocation.r
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
x=numeric(10) # allocate a numeric vector of size 10 to x
|
||||
rm(x) # remove x
|
||||
|
||||
x=vector("list",10) #allocate a list of length 10
|
||||
x=vector("numeric",10) #same as x=numeric(10), space allocated to list vector above now freed
|
||||
rm(x) # remove x
|
||||
Loading…
Add table
Add a link
Reference in a new issue