| To: | s-news@lists.biostat.wustl.edu |
|---|---|
| Subject: | onverting a file name to the name of a table, disabling quote and converting into matrix |
| From: | carol white <wht_crl@yahoo.com> |
| Date: | Sat, 8 Sep 2007 06:03:26 -0700 (PDT) |
| Domainkey-signature: | a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=X-YMail-OSG:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding:Message-ID; b=qfywGd64N3Zz9Xu9hhHOLbT1hySpvbzy4n9LkYnrCcWuPTsc8y1+Cj1gMSDCij/SHrcX/PrXiqPl56vXuV88zpi8cfRqfhNsN4bTnXWyTeW2WMOqIkfx+b9nvdAO9ayvVE16MQdoPrG5uFEZ0kq+afztuh97Qf2eG/GcNF3qW8w=; |
| In-reply-to: | <A23B682083FD8248ADFE1317C82CBD670280F159@exchange.branznt.org.nz> |
|
Hi, I have converted the file names to data frames by "assign" and disabling the quote in read.table. now if i can convert the generated data frame into matrix by "as.matrix", the quoting gets enables (matrix elements are quoted). If I don't use assign (i, as.matrix(get(i)), pos = 1), the matrix elements are not quoted and they are if assign, as.matrix is used So Why does quoting get enabled with as.matrix? files.lst = list.files(".") for (i in files.lst){ assign( i, read.table(i, check.names=F,header=T,comment.char = "", quote = ""), pos = 1) assign (i, as.matrix(get(i)), pos = 1) }
Building a website is a piece of cake. Yahoo! Small Business gives you all the tools to get online. |
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Duplicate and Unique Data Frame Question, Overstreet, Jason |
|---|---|
| Next by Date: | Re: Duplicate and Unique Data Frame Question, Alan Hochberg |
| Previous by Thread: | Duplicate and Unique Data Frame Question, Overstreet, Jason |
| Next by Thread: | Gérald Jean/Assurances/SPGDAG/Desjardins est absent., gerald . jean |
| Indexes: | [Date] [Thread] [Top] [All Lists] |