[R] displaying a table in full vs. typing variable name

2004-06-10 Thread Rishi Ganti
I have a data frame called totaldata that is 10,000 rows by about 9 columns.  The
data frame contains many zero entries which are important.  If I type  totaldata
 it only prints out the first two columns. I expect (and want) it to print out all
9 columns. (I am actually sinking this to a text file, so imagine my surprise
when the text file has only a few columns).  I know totaldata contains all the data as
summary(totaldata) lists what I expect (9 variables).  Thanks for your help.  

[[alternative HTML version deleted]]

__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] displaying a table in full vs. typing variable name

2004-06-10 Thread Uwe Ligges
Rishi Ganti wrote:
I have a data frame called totaldata that is 10,000 rows by about 9 columns.
If about 9 equals 2, the behaviour reported below is expected.
 The
data frame contains many zero entries which are important.  If I type  totaldata
 it only prints out the first two columns. I expect (and want) it to print out all
9 columns. 
Are you sure that R has not wrapped the data frame by printing the first 
few columns at first, and ended by printing the last 2 columns?
This way the data fit into your window. You can set the width using 
options(), and get all columns at once.


(I am actually sinking this to a text file, so imagine my surprise
when the text file has only a few columns).  

Please consider to use write.table()!
Uwe Ligges
 I know totaldata contains all the data as
summary(totaldata) lists what I expect (9 variables).  Thanks for your help.  

[[alternative HTML version deleted]]
__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


Re: [R] displaying a table in full vs. typing variable name

2004-06-10 Thread Marc Schwartz
On Thu, 2004-06-10 at 11:26, Uwe Ligges wrote:
 Rishi Ganti wrote:
 
  I have a data frame called totaldata that is 10,000 rows by about 9 columns.
 
 If about 9 equals 2, the behaviour reported below is expected.


That is, of course, for sufficiently large values of about...

;-)

Marc

__
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html