Displaying 5 results from an estimated 5 matches for "encodeelement".
Did you mean:
encodeelement2
2009 Feb 20
6
write.table
...vectors and then bind them together in order to create a dataframe but if, after this, I
try to use the function write.table I get the following error message:
Error in write.table(x, file, nrow(x), p, rnames, sep, eol, na, dec, as.integer(quote), :
'list' type not implemented in 'EncodeElement'
Here is what I've done:
as.vector(c(unique(portate$Anno)))->anno
as.vector(loadListPO4)->loadPO4
as.vector(loadListPTG)->loadPTG
as.vector(loadListNT)->loadNT
as.vector(loadListNH4)->loadNH4
as.vector(loadListNO3)->loadNO3
as.vector(loadListBOD5)->loadBOD5
as.vector(...
2016 May 05
1
Too many spaces in deparsed complex numbers with digits17 control option
...from this piece of
/src/main/deparse.c:
if (TYPEOF(vector) == CPLXSXP && (d->opts & DIGITS16)) {
Rcomplex z = COMPLEX(vector)[i];
if (R_FINITE(z.r) && R_FINITE(z.i)) {
snprintf(hex, 64, "%.17g + %17gi", z.r, z.i);
strp = hex;
} else
strp = EncodeElement(vector, i, quote, '.');
}
I think this is a small bug, and that "%17gi" in the snprintf call
ought to be "%.17gi".
Also there shouldn't be any space around the plus sign for consistency
with the non-digits17 option.
Is this a real bug, or is it deliberate behaviou...
2010 Feb 10
0
Help needed in fine tuning the sapply output
...le to remove NA's using
na.omit(a). Here's the log:
> class(a)
[1] "data.frame"
> write.csv(a,file="aranks.csv",na="")
Error in write.table(x, file, nrow(x), p, rnames, sep, eol, na, dec,
as.integer(quote), :
unimplemented type 'list' in 'EncodeElement'
I'm not sure, but I'm suspecting the problem might be in the output
structure of the my.func. Any helpful hints in resolving this is highly
appreciated.
cheers,
-Girish
> sessionInfo()
R version 2.10.1 (2009-12-14)
i386-pc-mingw32
locale:
[1] LC_COLLATE=English_United States.1...
2010 Jul 16
1
Troubles with DBI's dbWriteTable in RMySQL
...ption it is trivial to convert a matrix into a data.frame,
i tried:
dbWriteTable(con,"test2",as.data.frame(ndf));
But this produced the following error:
Error in write.table(x, file, nrow(x), p, rnames, sep, eol, na, dec,
as.integer(quote), :
unimplemented type 'list' in 'EncodeElement'
The silly, and frustrating, thing is that I used dbWriteTable before, and
that worked adequately. But that was with a simple data frame (within a for
loop, element by element - res$var[[i]] = expression), not the result of
do.call(rbind(...)) The principle limitation I saw in my previous us...
2012 Mar 13
0
111 FIXMEs in main/src
...author intended when the
sequence was
bind.c- defined as raw < logical -- it is possible to represent
logical as
--
builtin.c: /* FIXME -- Rstrlen allows for double-width chars */
builtin.c- width += Rstrlen(STRING_ELT(labs, nlines % lablen), 0) + 1;
--
builtin.c: /* FIXME: call EncodeElement() for every element of
s.
builtin.c-
--
builtin.c: /* FIXME : cat(...) should handle ANYTHING */
builtin.c- w = strlen(p);
--
character.c: slen = strlen(ss); /* FIXME -- should handle embedded
nuls */
character.c- buf = R_AllocStringBuffer(slen+1, &cbuff);
--
character.c: FI...