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\
> v1 <- c(1,2,3) > v1[1] <- 5 > v1 [1] 5 2 3
Um, that should work. I'm not sure that it's clear what your problem is. In your example, are a,b,c,d,e and h all defined? Or should you be using them as strings (ie "a", "b", etc)?