ginal Message -
From: Silvano Cesar da Costa
To: arun
Cc:
Sent: Wednesday, April 10, 2013 10:34 PM
Subject: Re: [R] means in tables
Arun,
this code work very well:
setwd('c:/Dados/')
list.files(pattern=".txt")
lst2 = lapply(list.files(pattern=".txt"), function
HI Silvano,
No problem.
Just wanted to make sure that it worked.
Regards,
A.K.
- Original Message -
From: Silvano Cesar da Costa
To: arun
Cc:
Sent: Wednesday, April 10, 2013 10:34 PM
Subject: Re: [R] means in tables
Arun,
this code work very well:
setwd('c:/Dados/')
0.012 0.373
dim(res)
#[1] 8000 3
A.K.
- Original Message -
From: Silvano Cesar da Costa
To: arun
Cc:
Sent: Wednesday, April 10, 2013 9:38 PM
Subject: Re: [R] means in tables
I performed all the procedures you described.
I read each file with the command:
lst2[[1]]; lst2[[2]]
.K.
- Original Message -
From: arun
To: Silvano Cesar da Costa
Cc: R help
Sent: Wednesday, April 10, 2013 6:28 PM
Subject: Re: [R] means in tables
Hi,
YOu can load all the datasets directly from the directory in a list.
set.seed(25)
lst1<-lapply(1:100,function(i)
as.data.fra
.72
mean(unlist(lapply(lst1,function(x) x[5,2])))
#[1] 20.97
A.K.
- Original Message -
From: Silvano Cesar da Costa
To: arun
Cc:
Sent: Wednesday, April 10, 2013 6:02 PM
Subject: Re: [R] means in tables
Hi Arun,
I thought with an example with two tables I could generalize to the 100
tab
roject.org
Cc:
Sent: Wednesday, April 10, 2013 12:07 PM
Subject: [R] means in tables
Hi.
I have 2 tables, with same dimensions (8000 x 5). Something like:
tab1:
V1 V2 V3 V4 V5
14.23 1.71 2.43 15.6 127
13.20 1.78 2.14 11.2 100
13.16 2.36 2.67 18.6 101
14.37 1.95 2.50 16.8 113
13.24 2.59 2.87
On Apr 10, 2013, at 11:07 AM, Silvano Cesar da Costa wrote:
> Hi.
>
> I have 2 tables, with same dimensions (8000 x 5). Something like:
>
> tab1:
>
> V1 V2 V3 V4 V5
> 14.23 1.71 2.43 15.6 127
> 13.20 1.78 2.14 11.2 100
> 13.16 2.36 2.67 18.6 101
> 14.37 1.95 2.50 16.8 113
> 13.24 2.59 2
Hi.
I have 2 tables, with same dimensions (8000 x 5). Something like:
tab1:
V1 V2 V3 V4 V5
14.23 1.71 2.43 15.6 127
13.20 1.78 2.14 11.2 100
13.16 2.36 2.67 18.6 101
14.37 1.95 2.50 16.8 113
13.24 2.59 2.87 21.0 118
tab2:
V1 V2 V3 V4 V5
1.23 1.1 2.3 1.6 17
1.20 1.8 2.4 1.2 10
1.1
8 matches
Mail list logo