Mass variable declaration and assignment in R?

后端 未结 1 354
情歌与酒
情歌与酒 2020-12-11 16:36

Apologies if this is a stupid question - but this my first attempt at using R, and i have ended up writting some code along the lines of:

some &         


        
相关标签:
1条回答
  • 2020-12-11 17:22

    If you want to assign the same value to multiple variables at once, use this:

    some <- thing <- and <- another <- thing <- vector('list', length(files))
    
    0 讨论(0)
提交回复
热议问题