Re: [R] Please help me to combine two datasets.

2006-05-11 Thread ronggui
?merge maybe is what you want. 2006/5/11, Arun Kumar Saha [EMAIL PROTECTED]: Dear r-users, Suppose I have two data sets data set-1 Date height 1/11/2005 10 2/11/2005 23 3/11/2005 54 4/11/2005 21 5/11/2005 22 data set-2 weight

Re: [R] Please help me to combine two datasets.

2006-05-11 Thread Sean O'Riordain
merge(data.set.1, data.set.2) but how do I know which rows to drop in ds1? if data.set.2 had dates, you could say merge(data.set.1, data.set.2, by.x=Date, by.y=Date, all=T) or do you just want to drop the first length(data.set.1)-length(data.set.2) from data.set.1? do you have NA values?

Re: [R] Please help me to combine two datasets.

2006-05-11 Thread Sean O'Riordain
Hi Arun, so to clarify: you want to drop the first length(data.set.1)-length(data.set.2) rows... so you might say... new.ds1 - data.set.1[(-(length(data.set.1)-length(data.set.2)),] and then add a new column... new.ds.combined - cbind(new.ds1, data.set.2) cheers, Sean On 11/05/06, Arun

Re: [R] Please help me.....

2005-07-13 Thread Uwe Ligges
Fernando EspĂ­ndola wrote: Hi user R, I am try to calculate the spectrum function in two time series. But when plot a single serie, the labels in axes x is in the range 0.1 to 0.6 (frequency), but when calculate de spectrum with ts.union function, the labels x is in the range 1 to 6. I

Re: [R] Please help me.....

2005-07-13 Thread Francisco J. Zagmutt
Dear Fernando Please read the posting guide. If you want to get an answer to your question you need to be specific about your analysis, and provide examples of the data structure and code that you tried and didn't work. Francisco

RE: [R] please help me!

2004-01-29 Thread Ko-Kang Kevin Wang
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Friday, January 30, 2004 5:19 AM To: [EMAIL PROTECTED] Subject: [R] please help me! hello there, I'm a new user to R and I am having difficulty reading a file

Re: [R] please help me!

2004-01-29 Thread Seth Falcon
If your working directory contains a file you want to read then the following should work: dat - read.table(filename.txt) If you want to use absolute paths, you have to be careful with the '\' because that is an escape character... so try: dat -

Re: [R] please help me!

2004-01-29 Thread Prof Brian Ripley
See the rw-FAQ Q2.14 R can't find my file, but I know it is there! I'd be interested to know why you didn't find that -- the posting guide does ask you to read the rw-FAQ, so I presume there is connection that is not obvious to you. On Thu, 29 Jan 2004 [EMAIL PROTECTED] wrote: hello there,

Re: [R] please help me on this problem

2003-10-05 Thread Jason Turner
Yong Wang wrote: Dear all: I am totally new to R, actually, statistics software.I get two very simple, even stupid question: 1) where I should put the data file in order to use it , I tried to build a work dir in library( package:base) and save the text file (data) there, I'm not sure where such

Re: [R] please help me on this problem

2003-10-05 Thread Jonathan Baron
See the section called Basic method in http://www.psych.upenn.edu/~baron/rpsych/rpsych.html On 10/05/03 05:00, Yong Wang wrote: Dear all: I am totally new to R, actually, statistics software.I get two very simple, even stupid question: 1) where I should put the data file in order to use it , I

Re: [R] please help me on this problem

2003-10-05 Thread Uwe Ligges
Yong Wang wrote: Dear all: I am totally new to R, actually, statistics software.I get two very simple, even stupid question: But you are not new to e-mails. So, please don't specify a stupid subject line, but a sensible one. (OK, the rest of this message's body is unspecific as well, hence