Advertisement
Guest User

Untitled

a guest
Feb 12th, 2016
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. create a list of list
  2. l <- list(a=list(1,2),b=list(3,4))
  3. str(l)
  4. List of 2
  5. $ a:List of 2
  6. ..$ : num 1
  7. ..$ : num 2
  8. $ b:List of 2
  9. ..$ : num 3
  10. ..$ : num 4
  11.  
  12.  
  13. str(l[1]) and str(l$a) should have same structure BUT
  14.  
  15. str(l[1])
  16. List of 1
  17. $ a:List of 2
  18. ..$ : num 1
  19. ..$ : num 2
  20.  
  21. str(l$a)
  22. List of 2
  23. $ : num 1
  24. $ : num 2
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement