similar to: How to fix error: 'x' and 'y' lengths differ

Displaying 20 results from an estimated 1000 matches similar to: "How to fix error: 'x' and 'y' lengths differ"

2004 Nov 16
1
lme, two random effects, poisson distribution
Hello, I have a dataset concerning slugs. For each slug, the number of pumps per one time slot was counted. The number of pumps follows Bi(30, p) where p is very small, thus could be approximated by Poisson dist. (# of pumps is very often = 0) The slugs were observed during 12 time slots which are correlated in time as AR(1). The time slots are divided into two categories: Resting time
2008 May 14
3
New blog application post slugs
Hello. I''m creating my own RESTful blog app. I am wondering about creating post slugs. I think Wordpress creates a slug at post creation time and stores the string in the database, then uses that for URLs. I read about the acts_as_sluggable strategy (http:// agilewebdevelopment.com/plugins/acts_as_sluggable) but I don''t like having a number (the ID) in the URL. Any
2006 Jul 18
2
how to generate calculated db fields
I''m trying to generate a "page slug" i.e. a url sanitized id from some text in my model that I want to be saved into the database and I''m not seeing how I can do it. The closest I''ve come to getting this to work has been... class Page < ActiveRecord::Base attr :name before_save :generate_slug def generate_slug self.slug = self.name.gsub
2009 Oct 23
1
access elements of a named list using a factor
Hi I have a factor 'f' and a named list 'jj'. I want names(jj) to match up with levels(f). How do I use levels(f) to access elements of jj? > f <- factor(c("pigs","pigs","slugs")) > f [1] pigs pigs slugs Levels: pigs slugs > > jj <- list(pigs=1:10,slugs=1:3) My attempts to produce jj$pigs all give errors: >
2005 Oct 03
1
Error in xy.coords(x, y, xlabel, ylabel, log) : x and y lengths differ
I am currently trying to use R to construct a regression model to explain output based on temperature. I have combined my output and temp data into a notepad file. there is no problem with loading the data into R. > data.df output temp 1 850 17 2 849 17 3 905 17 4 925 17 5 1043 19 6 1104 20 7 1097 18 8 979 19 9 926 18 10 1133 18 ~~ ~~ 240 1124
2010 Jun 21
4
Failing Routes in deployment
I have an app that has the following in the routes file: namespace "admin" do # ADMINISTRATIVE ROUTES ONLY root :to => ''home#index'' resources :comments do member do get :approve get :reject end end resources :users do member do get :block get :unblock end end end When browing to
2013 Apr 30
1
Question regarding error "x and y lengths differ"
Hello, I'm a first semester statistics student<http://r.789695.n4.nabble.com/Question-regarding-error-quot-x-and-y-lengths-differ-quot-td4665773.html#>and I am using R for roughly the third time ever. I am following a tutorial and yet I still get the error "x and y lengths differ." I am very new to this program, and I have searched for solutions, but because I do not understand
2010 Nov 29
4
Error heroku: App Crashed
Hi , i developed a small application(which contails only static pages) . I tried to host that on heroku .just when everything was finished when i opened my site i,e http://floating-moon-89.heroku.com/ i am getting an error as App Crashed..where did it gone wrong? pls help... -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To
2002 Oct 18
6
winbind, getent and wbinfo
Guess I'll ask again . . . [Samba] Winbind and groups Bub Slug bub1slug@hotmail.com Sun Oct 13 02:35:01 2002 Previous message: [Samba] Strictly Private. Next message: [Samba] Winbind and groups Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] Hi all, I'm trying to get a samba server which is all by itself, No Windows DCs, or even windows shares at all, to play nice
2011 Jun 16
1
Scatter plot produces "'x' and 'y' lengths differ"
Hello, I am working on a project to create some scatter plots. I have syntax for 26 plots, and 22 of them display as they should. But here, for example, is a sample of the command syntax I am using: good <- complete.cases(affect1,adh1scr) plot (jitter(affect1,2.0),jitter(adh1scr,1.0),xlim=c(1,35),ylim=c(1,35),pch=1 6, main='Adherence Score by Affectiveness Level - Visit 1',
2013 Feb 17
1
Error on installation of Ruby On Rails on QNAP TS809U-RP [Linux]
I am not sure where I should even begin troubleshooting this. I know a little bit about Linux and am comfortable editing files and running commands however definitely not a Linux guru. I have ipkg already installed on the QNAP. I know absolutely nothing about ruby on rails. Thanks for any help. For those that are not familiar with a QNAP, ipkg is the same as apt-get or yum in some Linux
2011 Sep 24
4
Heroku Slugsize shot up drastically
Hi, Locally my application is 7MB without tests and logs, etc. The .git folder is 29 MB. I also have no gems / plugins in vendor folder. 95% of images sit on S3. However on committing to Heroku it shows -----> Compiled slug size is 62.7MB What is wrong? It happened? To add more context my .gitignore file is .bundle, db/.sqlite3, config/ database.yml, log/.log, tmp/, .idea, .redcar,
2009 Feb 03
1
Can't compile on NSLU2 LE
Hi, I keep getting the following on my slug no matter what version I try (1.2, 1.4, 1.6, 1.6svn): ... make[2]: Leaving directory `/usr/portage/distfiles/svn/trunk/menuselect/mxml' gcc -o menuselect menuselect.o strcompat.o menuselect_stub.o mxml/libmxml.a menuselect.o: file not recognized: File format not recognized collect2: ld returned 1 exit status distcc[19221] ERROR: compile (null) on
2003 Apr 22
0
Correct SE in a poisson model.
Hi all, I'm here again with my newbies questions :( I have a simple example: count of slugs in two fields. I need to make a barplot with mean and SE of mean. So I have: The mean: > tapply(slugs,field,mean) Nursery Rookery 1.275 2.275 The SE: > tapply(slugs,field,sd)/sqrt(tapply(slugs,field,length)) Nursery Rookery 0.3651264 0.3508004 If the data has been normally
2008 Feb 12
3
Rsync to a Read Only file system
I think your product is awesome, but I am experiencing an unexpected behaviour. $ rsync -avviPH /Users/alan/Desktop/rsync_test\ Folder/ root@slug::Downloads opening tcp connection to slug port 873 sending daemon args: --server -vvlHogDtpre30.16i "--log-format=%i" -- partial . Downloads sending incremental file list .d..t..g... ./ rsync: failed to write xattr user.rsync.%stat for
2012 Sep 13
10
access key error
I am getting following error while run my rails app in my server ActionView::Template::Error (You did not provide both required access keys. Please provide the access_key_id and the secret_access_key.): -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to
2005 Mar 05
3
routes inconsistency?
Hello, As a small excercise in learning rails, I''ve been porting a very simple website from SSI to rails (yep, a bunch of static files that were previously served with a tiny bit of SSI magic are now served by a database-backed rails, it''s total overkill, I know). Part of the reason is that I''m trying to move from apache to lighttpd, and lighttpd''s SSI for
2006 Jun 14
3
WRTG54GS Capacity
Does anyone know how many simultaneous calls can a WRTG54GS handle? Assuming SIP phones are connected locally using G711.u codec and the WRTG54GS connects to a remote Asterisk server using IAX2 trunking using GSM codec. Thanks, Daniel
2008 Sep 17
3
Is there a way to not use an explicit loop?
I have a problem in where i generate m independent draws from a binomial distribution, say draw1 = rbinom( m , size.a, prob.a ) then I need to use each draw to generate a beta distribution. So, like using a beta prior, binomial likelihood, and obtain beta posterior, m many times. I have not found out a way to vectorize draws from a beta distribution, so I have an explicit for loop
2010 Jun 07
1
Patch for legend.position={left,top,bottom} in ggplot2
Hi Hadley and everyone, here's a patch for ggplot2 that fixes the behavior of opts(legend.position={left,top,bottom}). If you try the following code in an unmodified ggplot2 options(warn = -1) suppressPackageStartupMessages(library("ggplot2")) data <- data.frame( x = c(1, 2, 3, 4, 5, 6), y = c(2, 3, 4, 3, 4, 5), colour = c(TRUE, TRUE, TRUE, FALSE, FALSE, FALSE))