R provides two different methods for accessing the elements of a list or data.frame- the [] and [[]] operators.
What is the difference between the two? In what situations should I use one over the other?
转载于:https://stackoverflow.com/questions/1169456/the-difference-between-bracket-and-double-bracket-for-accessing-the-elem