Displaying 5 results from an estimated 5 matches for "avglog".
2010 May 23
1
Re : Indexing array to 1000
Dear All,
I have an array some thing like this:
> avglog
January February March April May June July
August September
60102 83397 56774 48785 49010 40572 38175
47037 51402
The class of "avglog" array.
> class(avglog)
[1] "array"
> str(avglog)
num [1:9(1d)] 60102 83397 5677...
2010 May 04
1
make a column from the row names
Dear All,
> avglog
01/11/09 02/11/09 03/11/09 04/11/09
9.750000 4.500000 4.500000 8.666667
> avglog1 <- data.frame(avglog)
> avglog1
avglog
01/11/09 9.750000
02/11/09 4.500000
03/11/09 4.500000
04/11/09 8.666667
The first column isnt a column, It's the row names. I makeing a column from
the r...
2010 May 02
1
Re :argument is not numeric or logical
...n is "stdate" - is date ( 01/11/2009 00:00:00,02/11/2009
00:00:00,02/11/2009 00:00:00 etc... )
Login is 13th column - is numbers (12,0,1 erc...)
The below operation return the following error.
> sample1 <- read.csv(file="sample1.csv",sep=",",header=TRUE)
> avglog <- with(sample1, tapply(Login, stdate, mean))
Warning messages:
1: In mean.default(X[[1L]], ...) :
argument is not numeric or logical: returning NA
2: In mean.default(X[[2L]], ...) :
argument is not numeric or logical: returning NA
3: In mean.default(X[[3L]], ...) :
argument is not numeri...
2010 May 01
2
Average Login based on date
Hi All,
I have the data like this :
>sample <- read.csv(file="sample.csv",sep=",",header=TRUE)
> sample
stdate Domain sex age Login
1 01/11/09 xxx FeMale 25 2
2 01/11/09 xxx FeMale 35 4
3 01/11/09 xxx Male 18 30
4 01/11/09 xxx Male 31 3
5 02/11/09 xxx Male 32 11
6 02/11/09 xxx Male 31 1
7 02/11/09
2010 May 05
0
R-help Digest, Vol 87, Issue 5
...Message: 27
Date: Tue, 4 May 2010 18:36:46 +0530
From: Mohan L <l.mohanphy at gmail.com>
To: r-help at r-project.org
Subject: [R] make a column from the row names
Message-ID:
<n2ha827c4211005040606n2c73cff0w3be82d38b4c5aa08 at mail.gmail.com>
Content-Type: text/plain
Dear All,
> avglog
01/11/09 02/11/09 03/11/09 04/11/09
9.750000 4.500000 4.500000 8.666667
> avglog1 <- data.frame(avglog)
> avglog1
avglog
01/11/09 9.750000
02/11/09 4.500000
03/11/09 4.500000
04/11/09 8.666667
The first column isnt a column, It's the row names. I makeing a column from
the r...