t; dat2[1:3,1:3]
> # t1_0.00208 t2_0.00417 t3_0.00625
> #1 3.224 4.124 4.502
> #2 3.205 4.118 4.500
> #3 3.189 4.114 4.498
>
> A.K.
>
> - Original Message -
> From: Janesh Devkota
> To: r-help@r-project.org
.224 4.124 4.502
#2 3.205 4.118 4.500
#3 3.189 4.114 4.498
A.K.
----- Original Message -----
From: Janesh Devkota
To: r-help@r-project.org
Cc:
Sent: Thursday, April 11, 2013 5:55 PM
Subject: [R] Read the data from a text file and reshape the data
I have a d
the data from a text file and reshape the data
Is this what you are looking for:
> input <- readLines("C:\\Users\\Owner\\Downloads\\WAT_DEP.DAT")
> start <- grep("N:SNAPSHOT", input) # find start of the data
> # add index of what would have been the l
Is this what you are looking for:
> input <- readLines("C:\\Users\\Owner\\Downloads\\WAT_DEP.DAT")
> start <- grep("N:SNAPSHOT", input) # find start of the data
> # add index of what would have been the last block
> start <- c(start, tail(start, 1) + 53L)
> # now read in the data using 'text' par
I have a data set for different time intervals. The data has three comment
lines before data for each time interval. For each time interval there are
500 data points. I want to change the dataset such that I have the following
format:
t1t2t3
0.002
5 matches
Mail list logo