[R] array elements incorrect

From: Paul Adams <pma3622_at_yahoo.com>
Date: Tue, 17 Jun 2008 15:23:30 -0700 (PDT)


Hello everyone,
I have a question as to what code should be used if one wanted to subset from a dataframe of 7000rows by 38 columns.For example if you wanted to generate a array of 100 by 38 would you not use the following: Z<-(dat,dim=c(100,38))
where dat is the dataframe of 7000by 38
Whenever I do this and type show(Z) I get a output of 100 by 38 they all say "integer,7000" as every element of the array.I do not understand what is wrong as the printout should have the values from the dat file.?
Any help would be appreciated
Paul

      
	[[alternative HTML version deleted]]


______________________________________________

R-help_at_r-project.org 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 Tue 17 Jun 2008 - 22:58:32 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 17 Jun 2008 - 23:31:29 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.

list of date sections of archive