similar to: wrong argument type String (expected Module)

Displaying 20 results from an estimated 20000 matches similar to: "wrong argument type String (expected Module)"

2009 Jun 22
4
SAS-like method of recoding variables?
Dear R-helpers, I am helping a SAS user run some analyses in R that she cannot do in SAS and she is complaining about R's peculiar (to her!) way of recoding variables. In particular, she is wondering if there is an R package that allows this kind of SAS recoding: IF TYPE='TRUCK' and count=12 THEN VEHICLES=TRUCK+((CAR+BIKE)/2.2); Thanks for any help or suggestions you might be able
2011 Jun 06
2
qplot fill and colour not working as expected
I am just learning to use qplot and can't get the fill/colour to work. Below is the R code for a scatter plot and bar graph. library(ggplot2) x<-c(1,2,3,4,5,6,7) y<-c(1,2,3,2,5,6,3) qplot(x,y, main="Scatter Plot Test", xlab="X Label Test", ylab="Y Label Test", colour="blue")z<-c("van", "van", "van",
2009 May 26
3
Still can't find missing data
I'm trying to prepare some cross tabs, looking at a number of variables against a variable "connector" which has 2 values: "OD Passenger" and " Connector". When I produce a xtabs one way I have observations under "Connector" but against a different variable "Connector" shows all 0 values. What is wrong? I've looked into the na commands
2009 Feb 19
1
How do I get xtabs to show missing data?
I presume the behavior below (no Connector values in the second table) is because I have na values in my dataframe. How do I get them to list? I found references to na.action and na.pass, but I could not figure out how I could use them with xtabs to list the na as a value. I'm sure there's a simple syntax I need, but it's not obvious to me. > # Weighted Data
2011 Apr 21
0
[Calendar API] Beautiful new flash games here with pictures and wonderful commentary
   hi   Games do not need to setup just unzip the file program Win RAR and then start the game immediately with multiple levels  If your pc does not support the SWF files you can download the Advance flash player 5 software from here  Advance flash player download Open it to run the game file**   games (4wheelmadness (2.2 Mb     A giant truck ride and use your skills in jumping
2009 Jun 11
2
Expand a contingency table based on the value in one column
Hi R-helpers, I have the following (dummy) dataframe: > test DATE LOCATION KIND CLASS COUNT 1 1 1 CAR A 2 2 1 1 TRUCK D 3 3 1 1 BUS E 4 4 1 2 CAR E 2 5 1 2 TRUCK A 7 6 1 2 BUS F 1 That I would like to turn into this: > test2 DATE LOCATION KIND CLASS 1 1 1
2009 Jan 26
1
reshape problem: id and variable names not being recognized
Hi everyone. Long time listener, first-time caller here. I have a data set that's been melted with the excellent reshape package, but I can't seem to cast it the way I need to. Here's the melted data's structure: > str(mdat) 'data.frame': 6978 obs. of 4 variables: $ VehType : Factor w/ 2 levels "Car","Truck": 1 1 2 1 1 2 1 1 1 1 ... $ Year :
2012 Oct 23
1
scatterplot with wrong line offset
Hi All, I'm trying to do a Scatterplot (package: car), and add a line (just for reference). There is my code: #------------------------------------Code--------------------------------------------------- library("car") library("calibrate") G_T<-c("car","bike","boat") ave<-c(80,10,45) perf<-c(100,80,75) df2<-data.frame(G_T,ave,perf)
2014 May 11
0
YAMAHA CAR ADVERT!!!
Hello, We are currently seeking to employ individual?s world wide. How would you like to make money by simply driving your car advertising for YAMAHA. How it works? Here?s the basic premise of the "paid to drive" concept: YAMAHA seeks people -- regular citizens,professional drivers to go about their normal routine as they usually do, only with a big advert for new "YAMAHA YZF-R6
2011 Aug 11
1
help with loops
hi I need help with list object. I have a list object > a <- c('apple','orange','grape') > b <- c('car','truck','jeep') > c <- list(a,b) > names(c) <- c('fruit','vehicle') > c $fruit [1] "apple" "orange" "grape" $vehicle [1] "car" "truck"
2006 Oct 27
0
wrong argumentwrong argument type false (expected Data)
Hi all, I have Rails rails (1.1.6). I have installed IBM_DB2 Adatper on top of it. I have modified the database.yml to connect to the DB2 Database. I''m trying to run the below command to create a rails applications, and it gives "Wrong Argument type false (expected Data)". and the rest of the files are not created as we see from the output. Not sure why i''m
2010 Dec 07
10
Advice on data design idea
I''m about to embark on a project and am seeking advice on my approach. I have an automotive site that needs to have shared categories. I''ve checked out different nested set, ancestral, acts_as_tree, acyclic plugins but feel they don''t exactly fit. So I am about to roll my own simple solution. Any feedback as to whether this looks good is appreciated. Essentially I
2009 Nov 07
0
wrong argument type Mysql (expected Struct) running rake with Ruby 1.9 / Rails 2.3.3
I''m use Ruby 1.9 via rvm and Rails 2.3.3. I''m on OS X 10.5 and I have the mysql 2.8.1 gem installed. When I run rake on my rails app, I get the error "wrong argument type Mysql (expected Struct)". I can run the app fine with script/server and script/console fine. Is anyone else having this problem or know what might cause this problem? Here''s the stack
2009 Feb 20
2
System of logistics Equations
Hi R-masters I need yours help about a problema in one of may ongoing researchers. In my research the subjects (20 in total) answer 60 questions (20 type G, 20 type S and 20 type P). Which questions is classified about 3 factor (2 level each) and the subject score with 2 scale (not integer value is possible but rare): Val range -7 to 7 and other Car range 1 to 7. This a code to fake database
2009 Jun 03
1
Still can't find missing data - How do I get NA in xtabs with factors?
The problem here is Table doesn't seem to have a way to weigh the data. > ToyData Data1 Data2 Data3 Weight 101 Sam Red Banana 1.1 102 Sam Green Banana 2.1 103 Sam Blue Orange 2.1 104 Fred Red Orange 2.1 105 Fred Green Guava 2.1 106 Fred Blue Guava 2.1 107 <NA> Red Pear 50.1 108 <NA> Green Pear 50.1 109 <NA> Blue
2007 Jul 11
0
What are mini dirt bikes?
What are mini dirt bikes? As the name suggests, mini dirt bikes are basically small dirt bikes. They have quite a lot less power than a standard dirt bike but appear virtually the same. http://2site.com/fadqwe Used Cars For Sale On eBay There are thousands of used cars for sale on eBay every single day. In fact, eBay Motors is the most profitable sales division on eBay and naturally there
2006 Jul 30
3
Where to store filesystem path?
Hello, My app needs to know where to store files but the path is different for dev and production. What is the best way to do it? - something like $path = ''/home/myrailsapp/public/files/'' in development.rb and $path = ''/home/my_remote_prod_sapp/public/files/'' in production.rb? - do a test to check the env and add the path in application.rb? - do a test to
2006 Jun 01
1
find not working properly
here is the input view [code] <form method="post" action="found"> <br> <b>Find by</b><br/> <b>Vehicle Number:</b><br/> <input id="truck_vehicleID" name="truck[vehicleID]" size="20" type="number" value=""/><br/> </p> <%= link_to "Find", :action
2018 Feb 25
0
CodeEmitterGen generates wrong code for getBinaryCodeForInstr
Hi, It seems like CodeEmitterGen gets confused when we use named suboperands. sample code: def memsrc : Operand<i16> { let PrintMethod = "printSrcMemOperand"; let MIOperandInfo = (ops GR16:$ra, i16imm:$imm_i16); let ParserMatchClass = memAsmOperand; } def LOAD16m : Inst32rri<0x0, (outs GR16:$rb), (ins memsrc:$src2), "ldi16 {$rb,
2005 Jun 08
2
unknown boot options on kernel command line.
changing i386 COMMAND_LINE_SIZE to 1024 attached is a simplistic fix to change kernel's command-line size from 256 to 1024, tomatch capability in syslinux 3.08. It seems to work. Is this all there is to it ? One of the reasons I did this was to figure out what extra options are appearing, and why. b4 extending: (the last bit is truncated) Jun 4 06:31:05 truck kernel: Kernel command