Skip to content
Back to formatted view

Raw Message

Message-ID: <1264119094479-1073567.post@n4.nabble.com>
Date: 2010-01-22T00:11:34Z
From: Peter Rote
Subject: Data Manipulation
In-Reply-To: <1263976701138-1018249.post@n4.nabble.com>

Thank you Dieter and Rolf,

I have solved the slash Problem, but I still struggling  with the output
files.

I have tried this
 by(AlexETF,AlexETF$Industry,function(a) {filename = paste("C:/ab/",gsub("
","",a$Industry[1]),".txt",sep="")
        print(filename)
	write.table(a,file=filename,col.names = FALSE)     
    }
 )

and this 

 by(AlexETF,AlexETF$Industry,function(a) {filename = paste("C:/ab/",gsub("
","",a$Industry[1]),".txt",sep="")
        print(filename)
	write(as.character(a),file=filename)     
    }
 )  


I want in each file just the ticker with out any quotations mark.

CMM
FMCN
IPG
MWW 

Thanks in advance, 
Peter
 
-- 
View this message in context: http://n4.nabble.com/Data-Manipulation-tp1018249p1073567.html
Sent from the R help mailing list archive at Nabble.com.