Assigning Values to an Array: Difference between revisions
Content added Content deleted
No edit summary |
(Added R Code) |
||
Line 532: | Line 532: | ||
## mylist.append([2,3]) would have appended one item to the list |
## mylist.append([2,3]) would have appended one item to the list |
||
## ... and that item would have been list containing two nested items |
## ... 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> |
</lang> |
||