>
> Your code has a different name for the sample object. And it would be more
> informative if you offered str on "sample1".
>
This is the result of str on "sample1".
> str(sample1)
'data.frame': 35943 obs. of 17 variables:
$ stdate : Factor w/ 7 levels "01/11/09 00:00",..: 1 1 1 1 1 1 1 1 1 1
...
$ domain : Factor w/ 15 levels "Assamese","Bengali",..: 1 1 1 1 1 1 1 1
1 1 ...
$ gender : Factor w/ 2 levels "FeMale","Male": 1 1 1 1 1 1 1 1 2 2 ...
$ postedby : Factor w/ 10 levels "Brother","Daughter",..: 2 6 6 7 7 7 7 9
1 5 ...
$ caste : Factor w/ 424 levels "","Caste no bar",..: 1 171 189 130 182
214 394 32 394 373 ...
$ age : Factor w/ 15 levels "20","<20","21",..: 7 15 8 9 11 12 4 9 9
10 ...
$ occupation : Factor w/ 54 levels "","Accounts/Finance Professional",..:
43 43 3 2 43 33 43 53 36 14 ...
$ religion : Factor w/ 17 levels "","Buddhist",..: 11 7 7 7 7 7 13 7 14
10 ...
$ city : Factor w/ 561 levels "","24 Parganas",..: 365 202 116 365
135 143 202 339 404 1 ...
$ country : Factor w/ 115 levels "Afghanistan",..: 47 47 47 47 47 47 47
47 47 11 ...
$ education : Factor w/ 12 levels "","Bachelors - Arts/ Science/ Commerce/
Others",..: 2 5 8 2 2 8 2 2 9 9 ...
$ profiletype: Factor w/ 1 level "Free": 1 1 1 1 1 1 1 1 1 1 ...
$ Login : Factor w/ 419 levels ".00","1.00","10.00",..: 114 283 217
216 14 1 2 2 407 327 ...
$ EISent : Factor w/ 250 levels ".00","1.00","10.00",..: 1 132 23 132 2
1 1 1 1 2 ...
$ EIReceived : num 12 5 43 0 8 2 11 12 4 0 ...
$ PMSent : Factor w/ 298 levels ".00","1.00","10.00",..: 1 1 1 1 1 1 1
1 1 1 ...
$ PMReceived : num 8 4 61 1 12 8 0 9 1 0 ...
What I am trying is: I have 7 days data in .csv format. I need to the
average Login for first day(1/11/2009) , from this average I have to
calculate index divisor(ID). Then I have to calculate the average Login for
all 7 days and need to multiple each day Login average with index
divisor(ID), like this
stdate LoginAverage Index
1/11/2009 29.50 LoginAverage*ID
This what I am trying? Any help will be appreciated
Thanks for your time.
Thanks & Rg
Mohan L
[[alternative HTML version deleted]]
______________________________________________
[email protected] 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.