0
$\begingroup$

I have a data table called td and it contains 14k obs and 5k variables. When I run the command

td[,fv_mc2:=1]

I also get the whole data table as output in my console, which floods my console. Any ideas how to fix it ? (It might also be a setting in R, but I am not aware of it.

$\endgroup$
1
  • $\begingroup$ I fixed it by updating my R version ! $\endgroup$
    – quant
    Oct 17, 2016 at 10:26

1 Answer 1

2
$\begingroup$

R by default returns the updated dataframe to console.You can assign it to variable by avoiding it.

td <- td[,fv_mc2:=1]

By this way you can avoid the console of 14k data.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.