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
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?
chee
?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
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
-
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
On Thu, 29 Jan 2004 09:19:23 -0700, [EMAIL PROTECTED] wrote :
>hello there,
> I'm a new user to R and I am having difficulty reading a file into the
>program. Here's the error I keep getting, I bet there's a simple solution,
>but I cant find any...
>
>Error in file(file, "r") : unable to ope
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,
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 <- read.table("c:/some/path/notice/forward/sl
> -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
>I'm a new user to R and I am having difficulty reading a file into the
> program. Here's the error I keep getting, I bet there's a simple solution,
> but I cant find any...
> Error in file(file, "r") : unable to open connection
> In addition: Warning message:
> cannot open file `c:MikeWeat
On Sun, 5 Oct 2003 06:26:57 -0400, you wrote:
>I'm surprised that it didn't work with the full path. I assume
>the error message indicated that it could not find the file, as
>opposed to some other sort of error. Relative paths work too.
If Yong was using Windows, it's likely he specified the p
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, henc
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 ,
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 a
14 matches
Mail list logo