[R] How to print the objects in the memory

From: usstata <usstata_at_126.com>
Date: Wed 31 Jan 2007 - 08:12:52 GMT


Hi,all:

        May be a pointless question         

	a <- 1:10
	b <- matrix(1:8,nrow = 4)
	c <- letters[4:8]  
	
	
	> ls()
	[1] "a"      "b"      "c"  

	ls() can print the names of the objects in the memory ,
	
	but I want to get the result :

> a

[1] 1 2 3 4 5 6 7 8 9 10
> b

     [,1] [,2]

[1,]    1    5
[2,]    2    6
[3,]    3    7
[4,]    4    8

> c

[1] "d" "e" "f" "g" "h"

                 I try the command print(noquote(ls())) which it can't help                          

Best regards
usstata



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Wed Jan 31 19:51:59 2007

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.1.8, at Wed 31 Jan 2007 - 15:30:25 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.