similar to: using scan function

Displaying 20 results from an estimated 10000 matches similar to: "using scan function"

2009 Dec 02
2
Arithmetic on multiple files
Dear R-users, I'd like to perform arithmetic functions on 1000 files containing a 2000x2000 matrix. Can anyone advise? For example, File1 File2 Output 1 1 1 4 4 4 5 5 5 2 2 2 + 5 5 5 = 7 7 7 3 3 3 6 6 6 9 9 9 Muhammad -- Muhammad Rahiz | Doctoral Student in Regional Climate Modeling Climate Research
2015 Oct 01
1
doveadm + ldap userdb
Hi! OS: CentOS Linux release 7.1.1503 (Core) Dovecot: 2.2.18 Run user listing - doveadm user '*', single user - work. auth[20540]: segfault at 8 ip 00007fd554340c6b sp 00007ffc17c886e0 error 4 in libauthdb_ldap.so[7fd55433b000+a000] dovecot: auth: Fatal: master: service(auth): child 20540 killed with signal 11 (core dumped) dovecot: auth: Error: net_connect_unix(auth-worker) failed:
2012 Aug 15
2
to remove columns and rows
Dear, I am using R I'm trying to identify and remove columns and rows in a data frame that are has elements equals. For example in dataframe below. The columns 1, 2,3,4,5 ,6 and 10 (file1) has elements equal then should be removed. How can I ask R to remove those columns with same elements in new dataframe (file2) to result a matrix as follows: file1 1 0 2 2 1 1 5 1 1 1 1 0
2007 Apr 05
5
Odd error handling in ActionView#compile_template causes WSOD
If a view file cannot be compiled (eg it has a block with a missing ''end'' statement), I''m experiencing WSODs - the browser reports a lost network connection, rather than the helpful compilation error that we used to have. When the compilation fails, ActionView#compile_template raises this error : TemplateError.new(find_base_path_for(file_name || template), file_name ||
2009 May 15
2
transposing/rotating XY in a 3D array
Dear list, We have a number of files containing similarly structured data: file1: A B C 1 2 3 4 5 6 file2: A B C 7 8 9 10 11 12 ... etc My part of R receives all these data as an array: 1,2,3... 12 together with info about dimensions (row,col,fileN) . ( Converting the data into 3D cannot simply done by: array(x, c(2,3,2)) because breaks the structure (e.g. 1,3,5 is type mismatch)
2005 Aug 17
3
do glm with two data sets
I have two data sets: File1.txt: Name id1 id2 id3 ... N1 0 1 0 ... N2 0 1 1 ... N3 1 1 -1 ... ... File2.txt: Group id1 id2 id3 ... G1 1.22 1.34 2.44 ... G2 2.33 2.56 2.56 ... G3 1.56 1.99 1.46 ... ... I like to do: x1<-c(0,1,0,...) y1<-c(1.22,1.34, 2.44, ...)
2007 Aug 08
12
Some more win32-changenotify analysis
Hi all, I decided to check the responsiveness of the pure Ruby vs C extension versions of win32-changenotify. I setup this little file generator program: a = [] 10.times{ |n| a << Thread.new{ File.open("File_#{n}", ''w''){ |fh| fh.puts "test #{n}" } } } a.each{ |t| t.join } The pure Ruby version did not do so well. In some cases it
2006 Jan 19
4
UserEngine - rake bootstrap aborted => undefined method `synchronize_with_controllers'' for Permission:Class
Good day all. I have successfully installed Engines and LoginEngine and LE is setup and running correctly. However, after installing and setting up UE, when attempting to run the rake bootstrap method I get the following error: undefined method `synchronize_with_controllers'' for Permission:Class My environment is Rails 1.0.0 Ruby 1.8.2 WinXP WebBRICK MySQL 4.1.14 I found the following
2007 Aug 18
1
problem with file_column url generator
Hi, I have the following in a viewer Here, @lst = Homework.find(:all) is an array of homeworks. I checked this this is correct. Based on the error below, somehow, the url_for_file_colum does not like to act on the model element. I checked the source code to url_for_file_column, and the problem is with instance_variable_get(). I have no idea wat is going on! Any help is appreciated. Gordon.
2005 Feb 08
2
test_process.rb => LoadError
Line 4 and following of test_process.rb reads: if defined?(RAILS_ROOT) # Temporary hack for getting functional tests in Rails running under 1.8.2 class Object #:nodoc: alias_method :require_without_load_path_reloading, :require def require(file_name) begin require_without_load_path_reloading(file_name) rescue Object => e
2011 Nov 12
2
dev.new() within a loop
Hello, I have a loop where I iterate performance data files within a folder, parse and plot them in one shot (see below). However, when executing plot_raw which invokes dev.new(..) all windows come out blank whereas if I execute each file outside of a loop then I can see the plots properly. What's wrong here? Thanks in advance, Best regards, Giovanni # given a directory name, it will
2006 Jun 20
2
Problem with "can''t dump anonymous class Class"
I submitted this earlier, but the web forums went down and I''ve screwed up the thread, so I''m starting over. I''m trying to built a document upload system. The system has a main Document model with different subclasses for different types of documents. With the code below, if I attempt to create a Document, it works fine, but if I attempt to use one of the subclasses, I
2006 Apr 10
3
autocomplete 2nd field based on 1st field''s input
I''m trying to populate a field named "file_name" based on the input of a field named "title". So, for instance, based on the following input in the "title" field: My Title Is Awesome I would want the following "file_name" to be autocompeted on the fly: My_Title_Is_Awesome I''ve been going over all the autocomplete examples out there,
2012 Sep 26
1
Ask for help - how to change WHIRR.117.csv to WHIRR_117.csv
Hi, I have a script below. dat <- read.table(file="pt.csv", header=T, sep=",", row.names=1, col.names=1) dat for(which_col in seq_len(ncol(dat))) { subset_data <- dat[,which_col:ncol(dat)] file_name <- sprintf('%s.csv', colnames(dat)[which_col]) write.csv(subset_data, file_name) message(sprintf('Saving %s', file_name)) }
2007 Sep 07
2
R first.id last.id function error
Hi R users, I have a test dataframe ("file1," shown below) for which I am trying to create a flag for the first and last ID record (equivalent to SAS first.id and last.id variables. Dump of file1: > file1 id rx week dv1 1 1 1 1 1 2 1 1 2 1 3 1 1 3 2 4 2 1 1 3 5 2 1 2 4 6 2 1 3 1 7 3 1 1 2 8 3 1 2 3 9 3 1 3
2005 Mar 20
1
app_nv_backgrounddetect - how to make module
How to compile additional module to asterisk? I have app_nv_backgrounddetect.c file and followed instructions below, but "make" did not generate app_nv_backgrounddetect.so or app_nv_backgrounddetect.o (1) Drop the code in your /usr/src/asterisk/apps directory (2) Edit the Makefile in the apps directory. Add the following line: APPS+=app_nv_backgrounddetect.so (3) Go to
2006 Nov 07
1
reading VERY large binary files
Hello, I am trying to read in elements out of a very large binary file ... the total file is 4 gigs. I want to select rows out of the file, and the current procedure I run works but is prohibitively slow (takes more than a day to run and still won't complete). Is there any faster way to accomplish this? My current procedure looks like this: readHH <- function(file_name,
2006 May 01
2
how to reference a file for download
I have an app that uploads files into the directory RAILS_ROOT/documents/ I tried to access the file for downloading using <a href="#{RAILS_ROOT}/documents/file_name">my file</a>. Rails prepends the controller name to the link so I get <a href=" http://localhost:3000/tasks/show_document/config/.../documents/file_name" What''s the right way to do this?
2024 Apr 08
2
Exceptional slowness with read.csv
Hi Dave, That's rather frustrating. I've found vroom (from the package vroom) to be helpful with large files like this. Does the following give you any better luck? vroom(file_name, delim = ",", skip = 2459465, n_max = 5) Of course, when you know you've got errors & the files are big like that it can take a bit of work resolving things. The command line tools awk
2015 Sep 03
1
Doubts on incremental backup and command repetition
Hi, I am trying to use rsync for incremental backup and I am facing some issues. I would like to ask your help to understand what is going on and have the proper command line. 1) my goal is I the following folders: ./dest: file3.txt ./orig: file1.txt   file10.txt  file2.txt   file20.txt And I would like to have as incremental backup ./dest: backup      file1.txt     file2.txt  file3.txt