Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
キーの要素によって与えられる順序でキーによって値を返す短い方法はありますか?
vars<-c("a"=1,"b"=2) key<-c("b","a") ret<-c() for(k in key) ret<-c(ret,vars[names(vars) %in% k]) ret
私はあなたが単に欲しいと信じていますvars[key]。
vars[key]
私はintersectあなたに役立つと思います...
intersect
vars[ intersect(key,names(vars)) ] #b a #2 1
I have an issue with using <object>. I need it to show different external pages, but it's not really working for me. It is like, after the first time I set Data, changing it does nothing. Do I need to
<object>