Displaying 8 results from an estimated 8 matches for "copyvector".
2010 Apr 21
2
suggestion how to use memcpy in duplicate.c
>From copyVector in duplicate.c :
void copyVector(SEXP s, SEXP t)
{
int i, ns, nt;
nt = LENGTH(t);
ns = LENGTH(s);
switch (TYPEOF(s)) {
...
case INTSXP:
for (i = 0; i < ns; i++)
INTEGER(s)[i] = INTEGER(t)[i % nt];
break;
...
could that be replaced with :
case INTSXP:...
2000 Jun 27
0
Unimplemented feature in copyVector
Dear all,
I started a large run this afternoon, and when I came back after
dinner, three of five processes had stopped with the error message:
Error in matrix(nullprofile, length(nullprofile), nprofiles) :
Unimplemented feature in copyVector
I have seen anything about this anywhere (and I don't know where to
look...). As you might guess, I'm trying to make a matrix where the
nullprofiles vector is repeated in nprofile coloumns.
Version info:
platform alpha-dec-osf4.0d
arch alpha
os osf4.0d
syst...
2001 Apr 23
1
several bugs (PR#918)
...a)
[1] "we got here"
[1] NA
>
2. works in S-Plus 4.5, not in R. What is the rationale for this difference?
a <- list(NULL)
attr(a[[1]],"mv") <- "default"
R gives the message
Error: attempt to set an attribute on NULL
3. Unimplemented features in rep, copyVector
> rep(list(1),1)
[[1]]
[1] 1
> rep(list(1,2,3),1)
Error in rep(list(1, 2, 3), 1) : Unimplemented feature in rep
> a <- matrix(list(1,2,3,4,5,6), 2, 3)
Error in matrix(list(1, 2, 3, 4, 5, 6), 2, 3) :
Unimplemented feature in copyVector
4. methods in S-Plus that aren't methods...
2002 Feb 26
3
Matrix of Elements of Different Types (was Interfacing pre-existing C++ library from R)
...a list but
could not get it to work:
my.lm <- lm( rnorm(10) ~ I(1:10) )
my.list <- list(1, 2, 3, 4, 5, 6, my.lm, my.lm, my.lm)
my.mat <- matrix( my.list, nrow=3 )
gives the following error in R 1.4.0 on Windows 2000:
Error in matrix(my.list, nrow = 3) : Unimplemented feature in
copyVector
Is there a way to create a matrix out of elements of different types?
Thanks.
_____________________________________________________________
_____________________________________________________________
You deserve a better email address! Get personalized email @yourname
or @yourcompany from E...
2002 Mar 13
1
several bugs (PR#918) lists and matrices
...;NULL"
> tmpa <- array(vector("list", 2), dim=c(2,1))
> class(tmpa)
NULL
> is.array(tmpa)
[1] TRUE
> is.matrix(tmpa)
[1] TRUE
> tmpm <- matrix(vector("list", 2), nrow=2)
Error in matrix(vector("list", 2), nrow = 2) :
Unimplemented feature in copyVector
>
### 2. Here the matrix single-[ subscript is doing the wrong thing,
### without giving a warning.
> tmp <- array(vector("list", 2), 1:2)
> tmp
[,1] [,2]
[1,] "NULL" "NULL"
> tmp[1]
[[1]]
NULL
> tmp[[1]]
NULL
> tmp[1,1]
[[1]]
NULL...
2002 Mar 12
1
can a matrix of lists work in R?
...j" "k"
> x[3]
[[1]]
[1] "j" "k"
>
My original way of creating the matrix of NULL's does not work in R either:
> matrix(vector("list", 6), nrow=2)
Error in matrix(vector("list", 6), nrow = 2) :
Unimplemented feature in copyVector
>
Is there anything I can do to make a matrix of lists work in R?
thanks,
Tony Plate
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://stat.ethz.ch/pipermail/r-help/attachments/20020312/e6cb73e3/attachment.html
1998 Apr 02
1
attributes now inherited
...********
*** Defn.h Thu Jan 8 20:42:58 1998
--- /net/aster/R/src/include/Defn.h Wed Apr 1 16:49:55 1998
***************
*** 459,464 ****
--- 459,465 ----
SEXP cons(SEXP, SEXP);
void copyListMatrix(SEXP, SEXP, int);
void copyMatrix(SEXP, SEXP, int);
+ SEXP copyMostAttrib(SEXP, SEXP);
void copyVector(SEXP, SEXP);
SEXP CreateTag(SEXP);
void CustomPrintValue(SEXP);
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in...
2016 May 05
1
R process killed when allocating too large matrix (Mac OS X)
Hi,
Interesting "feature" in 10.11.4. I wonder if the process is killed
before or after malloc() returns. If before, it seems very blunt:
"You're asking too much and I don't like it so I kill you now".
If after it doesn't look much better: "You're asking a lot and I
don't like it but I give it to you anyway. I'll kill you quickly
later".
Why