Anonymous user
Assigning Values to an Array: Difference between revisions
Added R Code
No edit summary |
(Added R Code) |
||
Line 532:
## mylist.append([2,3]) would have appended one item to the list
## ... and that item would have been list containing two nested items
</lang>
=={{header|R}}==
<lang R>
#Create array
x <- runif(10)
#Replace the value at the 7th position
x[7] <- 99
</lang>
|