[R] About warnings for non-matched items

2009-03-06 Thread ling ling
Dear All, I have many files in my directory. I want to transfer each data into one which is readable. They have so many possibilities, i have collected(manually and visually) all possibilities and represent them as different numbers. Rep[grep('context_log',log1$Remain[1:length(log1$Date)]),]<-

Re: [R] File checking problem‏

2009-03-06 Thread ling ling
HI,Barry. Thanks a lot for your details reply. I have already rewritten the programs. Now it totally works. Your comment: " Note the use of comments and breaking the code up into small independent, testable functions" is really Valuable! Thanks again. Hi,David, You are right, My previous c

[R] File checking problem

2009-03-05 Thread ling ling
Dear all, I am a newcomer to R programming, I met the problem: I have a lot of .txt files in my directory. Firstly, I check whether the file satisfies the conditions: 1.empty 2.the "Rep" column of the file has no "useractivity_idle" or "useractivity_act" 3.even The "rep" has both of them, numb

[R] Import the files.

2009-03-05 Thread ling ling
Dear all, I am a newcomer to R programming, I met the problem: I have a lot of .txt files in my directory. Firstly, I check whether the file satisfies the conditions: 1.empty 2.the "Rep" column of the file has no "useractivity_idle" or "useractivity_act" 3.even The "rep" has both of them, numb

[R] File checking

2009-03-05 Thread ling ling
Hello, How can I check if file is empty in R, if it is, then jump out and read next file; if it isn't, then read through? Thanks a lot for any help. Tammy _ More than messages–check out the rest of the Windows Live™. http://www.