thank you for your reply..
As i have told you earlier... i want to plot the total no.of birds counted
for each day and plot total no.of birds for each day.. one level for each
day ..
i wanted to normalize the data.. since i don't have the data for equal no.of
hours for all days.. for example
Hi .. i am a beginner in R
I have data in the format of
date
04/27/11
04/27/11
04/30/11
04/30/11
05/03/11
05/03/11
05/04/11
Now i want to plot the data something like this on x-axis...
--
27 28 29 30 1 2 3 4
April
On Jul 13, 2011, at 6:56 PM, vamshi999 wrote:
Hi .. i am a beginner in R
I have data in the format of
date
04/27/11
04/27/11
04/30/11
04/30/11
05/03/11
05/03/11
05/04/11
So they are not yet dates, but rather character vectors. R dates don't
look like that unless you make special
I am sorry i was not clear in my early post
I have used the below code to change my data into date format..
r-as.POSIXlt(paste(data2$date,data2$time))
library(gsubfn)
library(chron)
r-as.chron(r)
data2$date-strftime(strptime(r, format=(%m/%d/%y %H:%M:%S)),%Y-%m-%d)
So, post some data. I'm tired of unsuccessful attempts at mind
reading. If the data set is too big, then just use:
dput(data2[which( data2$date as.Date(2011-05-05)
data2$date
as.Date(2011-04-27) ),
]
)
--
David
On Jul 13,
I am sorry again..
I am posting the sample data..
my data set is huge.. dimension of my data set is 5 x 6
scan.nobird.no date time
height
1 24 52011-04-2921:17:56 357
2 78 48
On Jul 13, 2011, at 8:32 PM, vamshi999 wrote:
I am sorry again..
I am posting the sample data..
my data set is huge.. dimension of my data set is 5 x 6
scan.nobird.no date time
height
1 24 52011-04-29 21:17:56 357
2
i am sorry again..
this is my dataset..
'data.frame': 46376 obs. of 19 variables:
$ scan.no : int 24 78 61 64 64 64 65 73 79 82 ...
$ track.no : int 5 48 105 122 124 121 123 380 1073 1093 ...
$ blip.no : int 70 323 514 547 549 553 558 5355 7014 7119 ...
$ date : chr
On Jul 13, 2011, at 9:42 PM, vamshi999 wrote:
i am sorry again..
this is my dataset..
'data.frame': 46376 obs. of 19 variables:
$ scan.no : int 24 78 61 64 64 64 65 73 79 82 ...
$ track.no : int 5 48 105 122 124 121 123 380 1073 1093 ...
$ blip.no : int 70 323 514 547 549 553 558
9 matches
Mail list logo