13. en.newikipedia.org (@niam)
help(“Memory-limits”)
There are also limits on individual objects. On all builds of R,
the maximum length (number of elements) of a vector is 2^31 - 1 ~
2*10^9, as lengths are stored as signed integers. In addition,
the storage space cannot exceed the address limit, and if you try
to exceed that limit, the error message begins ‘cannot allocate
vector of length’. The number of characters in a character
string is in theory only limited by the address space.
13
14. en.newikipedia.org (@niam)
help(“Memory-limits”)
There are also limits on individual objects. On all builds of R,
the maximum length (number of
elements) of a vector is 2^31 - 1 ~
2*10^9, as lengths are stored as signed integers. In addition,
the storage space cannot exceed the address limit, and if you try
to exceed that limit, the error message begins ‘cannot allocate
vector of length’. The number of characters in a character
string is in theory only limited by the address space.
理由:添字が32bitの符号付きintだから.符号付きなの
は,Rでは負の添字を使って,v[-50]で50番目の要素を
除いたベクトルを作る機能があるから.
14
20. en.newikipedia.org (@niam)
ちなみに…
There are also limits on individual objects. On all builds of R,
the maximum length (number of elements) of a vector is 2^31 - 1 ~
2*10^9, as lengths are stored as signed integers. In addition,
the storage space cannot exceed the address limit, and if you try
to exceed that limit, the error message begins ‘cannot allocate
The number of characters in
vector of length’.
a character
string is in theory only limited by
the address space.
文字列なら,2G以上いけるはず.
20