Re: [R] merging two dataframes

2011-10-26 Thread dividend
I pasted wrong function, I have changed from "date1" to "date" (ignore that). I think it have to be something wrong with my data format. I can`t understand why it don't work. I know I can use by.x= and by.y=, but since both datasets have the same variable name it should be unnecessary to do

Re: [R] merging two dataframes

2011-10-26 Thread dividend
Hello. Now i tried to do what you told me. I used the str(fuction), and data$date1 and data3$date1 where both listed "character". I changed "name" to character but it did not work either. I also changed all variables to character, with no positive result. str(data) 'data.frame': 14446 obs. of

Re: [R] merging two dataframes

2011-10-24 Thread dividend
values to. I try to explain it more precise: In "data" with 14000 observations about company name, date, size of dividend etc. In "data3" there are 80 daily observations of the stockprices for each company listed: namedate div sta

Re: [R] merging two dataframes

2011-10-24 Thread dividend
here is some more info: http://r.789695.n4.nabble.com/file/n3932898/help.jpg this is what`s happend when I run the function in R I appreciate if someone can give me some inputs here Thanks in advance -- View this message in context: http://r.789695.n4.nabble.com/merging-two-dataframes-tp393

[R] merging two dataframes

2011-10-24 Thread dividend
tions. In the "data" have dividend information about each stock, and in the second there are information about the stock prices. I tried to use this function: data4<-merge(data,data3, by="name","date1") But it does not work. "data 3" has more than 800.0