search for: file_3

Displaying 6 results from an estimated 6 matches for "file_3".

Did you mean: file3
2006 Mar 23
1
Multiple file uploads
...ich 2-10 are optional. So i need to cycle thru all file fields and pick only those that have a file attached. Selecting only one file in the form, the paramters look simple: "image"=>{"file_1"=>#<File:/tmp/CGI344.4>, "file_2"=>"", "file_3"=>""}, so I tried this: params[:image].each_value do |incomming_file| unless incoming_file.empty? #do file processing end end However, this is still causing the empty fields (file_2, file_3 etc) to be processed, which raises all sorts of errors as the File.methods a...
2005 Sep 14
4
*** saving files ***
Hi, I need help :o( I want that my function saves result files in a for()-loop while it runs automatically. the filenames must be saved like: file_1 -> for 1. result file_2 -> for 2. result file_3 -> for 3. result and . . . file_n -> for n. result the file names are the same identified by _1, _2 , _3, ... , _n these files will loaded by a second function later in the same sequence (_1 to _n). how can I do that ......
2008 Nov 18
2
sequencially merge multiple files in a folder
...I would like to merge all the files into one tab-delimited file by a common column named "Ident" Is there any good way to sequencially merge all of them together? Here when I say "sequencially" I mean merging file_1 and file_2 first and then merge the resulting data frame and file_3, and keep going on and on till all files are merged. If it is too complicated to do, merging all files together without the specified order is also an acceptable alternative. Here I am using R version 2.7.2 (2008-08-25) and x86_64-unknown-linux-gnu. Thank you for any advice and help! PingHsun
2012 Mar 24
1
Append to file in loop
My files are on disk and they are regular text files named file_1 file_2 file_3 file_4 and file_5 with extension .saam The separator is sep='' (ie, white space) I want to append 'XFile' at the end of those files. XFile is also on disk. file.append("file_1.saam", "XFile.saam"); file.append("file_2.saam", "XFile.saam").....
2009 Jul 21
0
Accessing list object from within a function as a list element
...- function (mymsg="hello world") { cat(mymsg,mylist$myvar); }; If I perform the following: myclassobj_1 <- myclassobj_2 <- myclassobj_3 <- mylist; myclassobj_1 <- "~/file_1.out"; myclassobj_2 <- "~/file_2.out"; myclassobj_3 <- "~/file_3.out"; I cannot use myclassobj_1$myfunc() as it will place "hello world" into "~/file.out" instead of "~/file_1.out." Unless I want to make the myclassobj_? lists an argument to the 'myfunc' function, I need an object reference to the appropriate 'myl...
2010 Aug 12
1
reading fixed width format data with 2 types of lines
Hi, I know how to read fixed width format data with read.fwf, but suddenly I need to read in a large number of old fwf files with 2 types of lines. Lines that begin with "3" in first column carry one set of variables, and lines that begin with "4" carry another set, like this: ? 3A00206546L070049016090045 99 1015002 001001008010004002004007003 001