AL
> #1 10.45928 0.1690183 0.3952494 0.07470420 0.05284197
> #2 11.38388 0.1694641 0.3624458 0.07208597 0.06036395
> A.K.
>
>
>
>
>
>
> ____________________
> From: Zjoanna <[hidden
> email]<http://user/SendEmail.jtp?type=node&node=4662243&i=0&
494 0.07470420 0.05284197
#2 11.38388 0.1694641 0.3624458 0.07208597 0.06036395
A.K.
From: Zjoanna
To: r-help@r-project.org
Sent: Friday, March 22, 2013 3:54 PM
Subject: Re: [R] Reading dataset in R
Hi,
I also need to read this format of file in R, it is a
Hi,
I also need to read this format of file in R, it is a Wordpad file.
On Thu, Mar 21, 2013 at 5:07 PM, arun wrote:
>
>
> Hi,
> con<-file("Rout1112.text")
> Lines1<- readLines(con)
> close(con)
> indx<-rep(rep(c(TRUE,FALSE),each=2),2)
> Lines2<-Lines1[!grepl("[A-Za-z]",Lines1)]
>
>
> res<
Hi,
con<-file("Rout1112.text")
Lines1<- readLines(con)
close(con)
indx<-rep(rep(c(TRUE,FALSE),each=2),2)
Lines2<-Lines1[!grepl("[A-Za-z]",Lines1)]
res<-read.table(text=paste(gsub("^\\d+\\s+","",Lines2[indx]),gsub("^\\d+\\s+","",Lines2[!indx])),sep="",header=FALSE)
nm1<-unlist(strsplit(gsub(
4 matches
Mail list logo