Re: [R] re moving a vector from a list.

2008-10-02 Thread jim holtman
Is this what you want to do - it was not clear from your example: > x [[1]] [1] 1 [[2]] [1] 2 [[3]] [1] 3 [[4]] [1] 4 > x <- x[-3] > x [[1]] [1] 1 [[2]] [1] 2 [[3]] [1] 4 > Or maybe this: > x <- list(c( 1,2 ,3,4),c(4,5,6,7),c(8,9)) > x [[1]] [1] 1 2 3 4 [[2]] [1] 4 5 6 7 [[3]] [1] 8 9

[R] re moving a vector from a list.

2008-10-02 Thread Rajasekaramya
Hi there I have 386 list of vectors.In that i want to delete 23 vector in the 53 list element. [[1]] "abc" "dfg" "dft" "err" [[2]] "elm" "erg"" trr" "rtt" similarly i have [[386]] now i want to delete or avoid trr in the [[2]]. i just tried something like this list[-list[[53]][3]] -- View