Re: [R] R: x-y data

From: jim holtman <jholtman_at_gmail.com>
Date: Wed, 06 Jun 2007 09:26:00 -0400

Can you provide an example of your data. Assuming that you have a .cvs file and the column names are 'x' and 'y' and you have used 'read.csv', then you would have:

(something$x + something$y) / 2

On 6/5/07, tronter <pev340002003_at_yahoo.com> wrote:
>
>
> Hello
>
> I have an Excel file with x-y data. I saved this file as a cvs file. Then
> I
> used the read.table() function to read the data into R. If I have a
> formula
> like (x+y)/2, how would I access x and y in R? I have the table named as
> something. But how do I access the individual columns if I want to plug
> them
> into the formula?
>
> Thanks
> --
> View this message in context:
> http://www.nabble.com/R%3A-x-y-data-tf3874502.html#a10978448
> Sent from the R help mailing list archive at Nabble.com.
>
> ______________________________________________
> R-help_at_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.
>

-- 
Jim Holtman
Cincinnati, OH
+1 513 646 9390

What is the problem you are trying to solve?

	[[alternative HTML version deleted]]

______________________________________________
R-help_at_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 06 Jun 2007 - 13:33:51 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 Wed 06 Jun 2007 - 16:31:23 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.