Re: [R] problem with summary of data

From: David Barron <mothsailor_at_googlemail.com>
Date: Sat 23 Sep 2006 - 17:33:09 GMT

You haven't shown the command you used to input the data, but it looks as though you haven't told R not to convert the input into factors. summary on factors shows the frequencies of the levels for each variable, which is what your output shows. See ?read.table for how to prevent conversion into factors.

On 23/09/06, Nel N. <eeneling@yahoo.com> wrote:
>
>
> Greetings everybody,
> I'm new with R and I'm trying to do some statistical analysis with R using
> my data.
> It is a DNA microarray data with 69 samples(row) and 7070 (column)
> variables. I read the file using the command
> 'file.table' and it can be done with no error.However, when I tried
> running
> a summary of the data, the result was not what I had expected. Below is an
> extract of the result. And I knew that the command summary will give a
> summary of a data's descriptive statistics such as it's median,mean,etc.So
> ,
> what i want is the statistics summary of each gene (in each column).
> V7065 V7066 V7067 V7068 V7069
> 20 :29 20 :69 117 : 2 39 : 6 20 :69
> 25 : 4 X16699_at: 1 134 : 2 42 : 4 L49218_f_at: 1
> 30 : 4 142 : 2 44 : 4
> 23 : 3 170 : 2 46 : 4
> 26 : 3 203 : 2 38 : 3
> 21 : 2 96 : 2 58 : 3
> (Other):25 (Other):58 (Other):46
> V7070 V7071
> 30 : 5 20 :69
> 21 : 4 Z78285_f_at: 1
> 51 : 4
> 64 : 4
> 27 : 3
> 36 : 3
> (Other):47
> My data is in .dat format. Also, I have downloaded a few .rda files to be
> tried out with R but how do I view them as data per se, like the .dat file
> can be viewed and edited using Notepad, how about the .rda files?
> I express my greatest appreciation all who help.
> Thank you.
> --
> View this message in context:
> http://www.nabble.com/problem-with-summary-of-data-tf2322882.html#a6462497
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> 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.
>

-- 
=================================
David Barron
Said Business School
University of Oxford
Park End Street
Oxford OX1 1HP

	[[alternative HTML version deleted]]

______________________________________________
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 Sun Sep 24 04:01:49 2006

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 Sat 23 Sep 2006 - 20:30:49 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.