[R] search path question

2007-05-29 Thread Zhiliang Ma
Hi R users, Is there a simple function that can add a folder into current R search path? For example, suppose my current work directory is D:\work, but my input files are stored in folder C:\inFiles\, I know I can change work directory or add C:\inFiles\ before files name when I scan them, but I

[R] search path question

2007-05-29 Thread Zhiliang Ma
Hi R users, Is there a simple function that can add a folder into current R search path? For example, suppose my current work directory is D:\work, but my input files are stored in folder C:\inFiles\, I know I can change work directory or add C:\inFiles\ before files name when I scan them, but I

Re: [R] search path question

2007-05-29 Thread Zhiliang Ma
Thanks, Barry. In fact, I have a function just like yours, and I'm looking for a simple alternative function, which is like path in Matlab. On 5/29/07, Barry Rowlingson [EMAIL PROTECTED] wrote: Zhiliang Ma wrote: I want to find a function that can simply add C:\inFiles\ into R's search

[R] enumerates all possible combinations

2007-01-26 Thread Zhiliang Ma
Hi all R users, I want to create a matrix having n columns and 2^n rows, and all its entries are only 0 or 1. In each row, column i is 0 means dimension i is chosen, 0 means not. The matrix will contains all the possible combination of those n dimensions. Here is an example, if n = 3, the matrix

Re: [R] enumerates all possible combinations

2007-01-26 Thread Zhiliang Ma
Thanks a lot! That's exactly what I need. On 1/26/07, ken knoblauch [EMAIL PROTECTED] wrote: does expand.grid do what you want? expand.grid(c(0, 1), c(0, 1), c(0, 1)) Var1 Var2 Var3 1000 2100 3010 4110 5001 6101

[R] Read in vtk data

2006-08-10 Thread Zhiliang Ma
Dear All, I would like to read vtk data into R and do some calculation. Does anyone know how to do it? Thanks ~zhiliang [[alternative HTML version deleted]] __ R-help@stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help