i need to access an index (individual value) within a vector. I assumed it would be similar to:

```
v1 <- c(a,b,c,d,e)
v1[3] = h

```

But that doesn't seem to work at all, anyone else know how to do this?

[EDIT]
Ok to answer some of your questions, here is the larger picture of what i am trying to achieve overall:

```
MyDataR1 <- scan("myd1.txt",what='character') 
MyDataR2 <- scan("myd2.txt",what='character') 
MyDataR3 <- scan("myd3.txt",what='character')
MyDataR4 <- scan("myd4.txt",what='character') 

AmpsR1 <- vector(mode='numeric',length=length(MyDataR1)-1)
AmpsR2 <- vector(mode='numeric',length=length(MyDataR2)-1)
AmpsR3 <- vector(mode='numeric',length=length(MyDataR3)-1)
AmpsR4 <- vector(mode='numeric',length=length(MyDataR4)-1)

AmpsR <- list(AmpsR1,AmpsR2,AmpsR3,AmpsR4)
DatesR <- list(DatesR1,DatesR2,DatesR3,DatesR4)
MyDataR <- list(MyDataR1,MyDataR2,MyDataR3,MyDataR4)

for (m in 1:length(MyDataR)){
mode(MyDataR[m])
length(MyDataR[m])
for (i in 2:length(MyDataR[m])){ 
temp <- unlist(strsplit(MyDataR[[m]][i],',')) 
DatesR[[m]][i-1] <- temp[2] 
if (length(temp) == 7) 
AmpsR[[m]][i-1] <- as.numeric(temp[6]) 
else 
AmpsR[[m]][i-1] <- NA 

end 

```

(I changed my tactic at one point to use the "c()" function instead of creating lists, however that didn't work either).
So i'm trying to iterate between each value of each vector in the list and set it's value, however when i print "AmpsR" after the for loop section, all the values are "0.000". I know the data it is reading is valid as when i print "MyDataR1" it is filled with all the relevant values.

Any ideas or suggestions of a better way for doing this??
Thanks for your input everyone.

[EDIT] Apologies for the similar post I added when asking another question, it was just that this question didn't directly address the issue I was having. Regardless looking at the answers from both of them I've now gained a better understanding of how lists and vectors work and I managed to solve my issue (solution very similar to what Andrie answered with). 

Thanks for your help everyone.