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.
ベクトルは次のようになります。
c(1,2,3) #[1] 1 2 3
私はこのようなものが必要です:
list(1,2,3) #[[1]] #[1] 1 # #[[2]] #[1] 2 # #[[3]] #[1] 3
私はこれを試しました:
list(c(1,2,3)) #[[1]] #[1] 1 2 3
簡単です。これを行うだけです:
as.list(c(1,2,3))