Note that there are some explanatory texts on larger screens.

plurals
  1. POsink function doesn't export me all the columns of a data frame
    primarykey
    data
    text
    <p>I want to export a excel database to a file txt, I always use: sink("name.txt") , my data frame , sink() Now, I have a database with 18 variables and when I export it to a txt file appear me the first 12 variables well tabulated but the variable 13 to 18 appear situated beneath the others as another data set. </p> <p>with also the following code : </p> <pre><code>function (..., Modes = list(), Names = NULL) { sdata &lt;- list(...) snames &lt;- as.character(substitute(list(...))[-1L]) if (is.null(sdata)) { if (is.null(Names)) { odata &lt;- vector("list", length = max(1, length(Modes))) } else { if ((length(Names) != length(Modes)) &amp;&amp; length(Modes)) { warning("modes argument ignored") Modes &lt;- list() } odata &lt;- vector("list", length = length(Names)) names(odata) &lt;- Names } ncols &lt;- rep.int(1, length(odata)) coltypes &lt;- rep.int(1, length(odata)) } else { ncols &lt;- de.ncols(sdata) coltypes &lt;- ncols[, 2L] ncols &lt;- ncols[, 1] odata &lt;- de.setup(sdata, snames, ncols) if (length(Names)) if (length(Names) != length(odata)) warning("'names' argument ignored") else names(odata) &lt;- Names if (length(Modes)) if (length(Modes) != length(odata)) { warning("'modes' argument ignored") Modes &lt;- list() } } rdata &lt;- dataentry(odata, as.list(Modes)) if (any(coltypes != 1L)) { if (length(rdata) == sum(ncols)) rdata &lt;- de.restore(rdata, ncols, coltypes, snames, sdata) else warning("could not restore variables properly") } return(rdata) } &lt;bytecode: 0x07a0ad74&gt; &lt;environment: namespace:utils&gt; </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload