similar to: problem with simple if() statement

Displaying 20 results from an estimated 5000 matches similar to: "problem with simple if() statement"

2006 Jan 18
4
Coercing a list to integer?
Dear group, I am nearly beside myself. After an entire night spent on a niggling little detail, I am no closer to to the truth. I loaded an Excel file in .csv form into R. It apparentely loads as a list, but not the kind of list you can use. Oh no, it converts into a list that cannot be converted into an integer, numeric, or vector, only a matrix, whihc is useless without integers.
2006 Jan 12
4
Loading Excel file into Limma
Dear mailing group, This is my first time here. Glad to have this resource! I am currently trying to load an Excel file into R (limma package loaded) using the source(*name of directory*) command, but it cannot open the file. I renamed the file as .R and .RData, to no avail. The Excel data contains one gene name per row and about 100 data points per gene (columns). I am only used to
2006 Feb 06
1
generating markov chain
Dear help group, Just fyi a markov chain is a sequence of transitions between states (say A,T,G,C - on a gene) with a given probability for each transition. In this case there'd be 16 different kinds, each with a different weight. Given a transition matrix (4x4) filled with all transition probabilities of course, how can I generate a random sequence of a given length, say 200?
2006 Jul 21
1
Q. regarding optim()
Dear R mailing group, The second parameter for the function optim()is a function whose parameters are to be optimized. The description of this function given in the help file is the following: fn: A function to be minimized (or maximized), with first argument the vector of parameters over which minimization is to take place. It should return a scalar result.
2006 Jan 17
1
Clustering function
Dear mailing group, I have loaded an Excel file into R by calling it ".csv" and using the "read.csv" function in R. However then I want to use the (limma package specific, I believe) function "hclust", which clusters data in a tree dendrogram, by similarity. However, I receive the errors msg.s: 1) "missing observations in cov/cor" 2) "In
2006 Jul 15
1
R installation - WINDOWS - problem
Dear R mailing group, I am having extreme - and mysterious - trouble installing R. I tried simply dl ing R-2.3.1.tar.gz, and unzipping it, but after doing so, nowhere could I find a file called R-2.3.1.exe. I did however find an R-2.3.1.exe.manifest. I therefore tried the command line installation command - given in R-admin.pdf. This command is: tar zxvf R-2.3.1.tgz This is strange
2006 Mar 08
5
object.save is not creating an insert statement
I have a model for a task class. When I try to save a task, for some reason no INSERT statement is being generated. Here''s the pertinent part of the development.log: ------------------------------------ Processing TasksController#create_fromProject (for 70.247.24.238 at 2006-03-08 14:20:30) [POST] Parameters: {"commit"=>"Create",
2007 Dec 19
2
Bulk Reverse Phone Lookup
Is anyone aware of a service where we can lookup phone numbers to determine a name and/or name + address available in bulk? We want to look up every number called to our call center, so it will be tens of thousands per day. Services that charge 3 to 5 cents per lookup will get way too expensive very quickly. Thus, I'm looking for a service that can either license a database or
2010 Jul 08
25
Prepared SQL statements
Dear all great developers. I wonder if there is any work being done or thoughts being shared regarding prepared SQL statements. Currently I am in heavy need of tuning SQL INSERTS that insert large (3MB) images into blobs. I am using rails 2.3.5 with postgres adapter and pg driver. Any information would be appreciated. Jarl -- You received this message because you are subscribed to the
2004 Nov 29
1
authentication problem pam_mount
The setup is a samba server with mixed clients (samba clients and windows clients). The problem, I want the linux client to mount there home to their home share on the server. The problem is, I have followed the guide mentioned below and everything works except that the linux usernames have the format domeinnaam+username as a result of which pam_mount wants to mount
2010 May 10
6
feedback on a few ActiveSupport::Multibyte patches
Hi all, In response to Rodrigo Rosas''s message about mb_chars.upcase not giving the expected result on 1.9, I''ve done some work in a fork to make String#mb_chars always return an instance of a proxy class, both with Ruby 1.8 and Ruby 1.9. The end result of the patch is (hopefully) to make Rails'' multibyte functionality behave the same way in 1.8.7 and 1.9.x.
2003 Jun 04
3
Limiting Users
When using windows NT and Netware there are ways of limiting the logins of users such as only allowing them on between 9am - 5pm and limiting maximum concurrent connection to one. Is there a way of enforcing these restrictions through samba or similar? Many thanks Gareth Norman
2006 Mar 15
4
help with DRY violation
I''m trying to be a good rails developer and fix DRY violations as i find them. However, i''m trying to fix this one, i cant seem to get it to work. I have two tables A and B that have a one-to-one relationship. Table B belongs_to Table A. Table A has_one Table B. I''m creating instances of Table A in different places, depending on the controller. However, for each
2006 Feb 22
9
acts_as_habtm_list plugin
I''d like to announce acts_as_habtm_list plugin for rails. acts_as_habtm_list is a Ruby on Rails plugin, that can manage ordered lists through a join-table. It is providing almost the same Api as acts_as_list. The position column has to be defined in the join table. You can find additional information at: http://www.inlet-media.de/acts_as_habtm_list/ Install it executing this command
2006 Mar 22
10
Need for multiple acts_as_list
I have a model "Childmodel" that belongs_to two other models "Parent1" and "Parent2". "Parent1" "has_many :childmodels, :order => :positionp1" and "Parent2" "has_many :childmodels, :order => :positionp2". i.e. The child is independently positioned within each of its parents. This works fine and gets me the useful
2006 Jan 16
3
routing to controller inside module
Hey, am i to stupid to find the information about how to route to a controller in a module? Maybe module support has gone! The controller is under: app/controllers/admin/my_controller.rb The my_controller.rb file looks like this: module Admin class MyController def index render :text => ''Hello!'' end end end How does a route to all controllers under module
2020 Oct 29
1
dovecot replicator not replicating automatically?
Thanks for that tip. I loaded the replication plugin but still have the same issue. Anything else i can check? regards Norman King Compass Foundation sysadmin/tech support Phone, 856-974-5335 ext 221 support at compassfoundation.io <mailto:support at compassfoundation.io> Website <https://compassfoundation.io> On 10/29/2020 12:17 PM, Sami Ketola wrote: > > >> On
2006 Mar 04
4
Submitting data to two different tables with two different models
I''m very new to Rails. I''ve been reading Agile Web Dev for a while and read up on ruby, but I''m still learning. I designed a website for someone for an engineering shop. New projects had to be added manually. Well, I figured this would be a great canidate for railifying! I have the form working perfectly, you can add your data and get it in a table, and listing
2011 Jun 09
2
Problem with a if statement inside a function
I have a really long functions, and at the end of the function, I am using a if statement to tag certain keywords based on whether they have certain values contained in them. However, the if statement doesn't seem to work. When I had split up the commands into various functions, it worked fine, but I'm not sure what going on now that it's combined into a single function. myfunc
2003 Mar 14
5
slow connect
Hello ! My problem is : I have very slow transfer if I copy files from server samba to windows 2000. In the opposite direction transfer is very good. Please help Greet All