extract entry of a vector or Matrix in R -


i have matrix

> dist      1    2    3    4    5    6    7 1 0.00 0.52 0.34 0.37 0.37 0.52 0.54 2 0.52 0.00 0.77 0.57 0.57 0.00 0.56 3 0.34 0.77 0.00 0.29 0.29 0.77 0.53 4 0.37 0.57 0.29 0.00 0.00 0.57 0.32 5 0.37 0.57 0.29 0.00 0.00 0.57 0.32 6 0.52 0.00 0.77 0.57 0.57 0.00 0.56 7 0.54 0.56 0.53 0.32 0.32 0.56 0.00 

i want extract row number 1 since third position 0.34 0.37 0.37 0.52 0.54

i try dis[1,>=3] there error

you can give sequence columns select [:

dist[1,3:7] 

Comments