Displaying 20 results from an estimated 900 matches similar to: "NoMethodError... but its not a method!"
2012 Aug 07
2
Error using ddply inside user-defined function
Hi All,
I *think* it's ddply because the function recognizes vr1, etc, in other
parts of the function.
Here's some code:
# create dataset
PROV.PM.FBCTS <- c(0.00 ,0.00, 33205.19, 25994.56, 23351.37, 26959.56
,27632.58, 26076.24, 0.00, 0.00 , 6741.42, 18665.09 ,18129.59 ,21468.39
,21294.60 ,22764.82, 26076.73)
FBCTS.INV.TOT <- c(0 , 0, 958612, 487990, 413344, 573347,
2007 Apr 03
2
HPDinterval problem
Hi,
Can anyone tell me why I am not getting the correct intervals for
fixed effect terms for the following generalized linear mixed model
from HPDinterval:
> sessionInfo()
R version 2.4.1 (2006-12-18)
i386-pc-mingw32
locale:
LC_COLLATE=English_United States.1252;LC_CTYPE=English_United
States.1252;LC_MONETARY=English_United
States.1252;LC_NUMERIC=C;LC_TIME=English_United States.1252
2007 Apr 03
1
lmer, CHOLMOD warning: matrix not positive definite
Hi,
I am getting a warning message when I am fitting a generalized linear
mixed model (m1.2 below).
CHOLMOD warning: matrix not positive definite
Error in objective(.par, ...) : Cholmod error `matrix not positive
definite' at file:../Supernodal/t_cholmod_super_numeric.c, line 614
Any idea?
Thanks for your help,
Reza
> sessionInfo()
R version 2.4.1 (2006-12-18)
i386-pc-mingw32
2012 Nov 09
5
using lapply with recode
Hello:
Forgive me, this is surely a simple question but I can't figure it out, having consulted the help archives and "Data Manipulation With R" (Spector).
I have a list of 11 data frames with one common variable in each (prov). I'd like to use lapply to go through and recode one particular level of that common variable.
I can get the recode to work, but it only returns the
2012 Jun 08
2
Problem with sample function
Dear list
Is there a way to extract a random sample without duplicated row from a
dataframe ?.
a=c(1,2,3,1,1,1,2,1)
b=c(1,2,3,1,2,1,2,1)
c=c(1,1,1,1,1,1,1,1)
d=c(1,2,3,1,1,1,2,1)
prov<-data.frame(a,b,c,d)
prov2<-prov[sample(1:nrow(prov),5,replace=T),]
prov2
a b c d
3 3 3 1 3
6 1 1 1 1
3.1 3 3 1 3
5 1 2 1 1
8 1 1 1 1
I tryed the above code but as you can see sample function
2012 Dec 10
3
Warning message: In eval(expr, envir, enclos) : non-integer #successes in a binomial glm!
Hi there
I'm trying to fit a logistic regression model to data that looks very similar to the data in the sample below. I don't understand why I'm getting this error; none of the data are proportional and the weights are numeric values. Should I be concerned about the warning about non-integer successes in my binomial glm? If I should be, how do I go about addressing it?
I'm
2008 Oct 23
1
code works in R desktop but not iin RWeb - I got it working
Hi,
I got this working. i had to get rid of an underscore in one of my
variable names to work on RWeb.
Thanks for your help though!!
Natalie
__________________
I think you have to be either honest or careful, since the code you
submitted to Rweb is different with your former code! Why the
condition was changed from "test<-subset(X, GRADE == 7 & Y_Q10A < 9)"
to
2011 Jan 20
5
context problem
Hello list,
Asterisk 1.6.16.1
I have the following registrations :
register => 119909:passwd at sip.prov.org/52525252
register => 119909:passwd at sip.prov.org/59595959
[119909]
type=friend
host=sip.prov.org
username=119909
defaultuser=119909
secret=passwd
context=TRUNKin
extensions.conf :
[TRUNKin]
exten => _52525252,1,NoOp(context TRUNKin - 52525252)
exten =>
2011 Feb 02
1
Roo gem performance problems
I am getting unacceptable performace problems by using the roo gem for
reading a file by using XLSX or XLS library from this gem.
Someone may suggest me an alternative about how to parse an .XLSX file?
<code>
parsed_file = Excel.new(filename,false, :ignore) if (file_format.upcase
== "XLS")
parsed_file = Excelx.new(filename,false, :ignore) if
(file_format.upcase ==
2007 Apr 26
4
select if + other questions
Hi,
i am trying to read a .txt file, do a couple of select if statements on my
data, and then finally use the ?table function to get frequency counts on
the data. Specifically, i am looking at answering the following question:
What is the frequency of Grade 7 students in the province of Alberta who
are smokers?
I am having some problems:
1)i cannot get the column names to show up when print
2008 Oct 21
3
code works in R desktop but not iin RWeb - How do I modify to get it working in RWeb, please?
Hi,
How are you? I have a quick question.... I have code that works perfectly
with R desktop, but does not work with RWeb. Could you please tell me how
to modify the code below so it will work with RWeb?
#Read in txt file
happyguys<-read.table("c:/test8.txt", header=TRUE, row.names=1)
#Subset the txt file to only include certain values
test<-subset(happyguys, GRADE == 7
2012 Oct 30
3
nombres con NA
Estimados compañeros tengo el siguiente problema: quiero poner etiqueta
a los valores de una variable. He creado una lista que se llama geren
que tiene 194 valores distintos. Creo la siguiente data.frame:
dg<-data.frame(c_autónoma=names(tca)[sb7$ca],prov=names(cprov)[sb7$prov],geren=names(geren)[sb7$gerencia])
sb7$gerencia tiene 107 códigos distintos incluidos dentro de los códigos
de
2011 Aug 03
2
Malformed CSV Error
Hello,
I am getting error :-
#<CSV::MalformedCSVError: Unclosed quoted field on line 1892.>.
I have following code :-
--------------------------------------------------
@parsed_file =
CSV.open("#{RAILS_ROOT}/private/sales_report_files/#{@file_folder}/#{@sub_file_folder}/#{@file_name.filename}",''r'',:col_sep
=>?\t)
@parsed_file.each_with_index do |row, index|
2007 Apr 27
5
weight
Hi,
I have the file below called happyguys. It is a subset of data. How do I
apply the weight variable (WTPP) to this file? Can i just multiply each
column (except the first column because it is a record id) by WTPP? If the
answer is yes, how do I multiply one variable name by another?
Thanks,
Nat
PROV REGION GRADE Y_Q10A WTPP
83 48 4 7 2 342233324020
115
2009 Oct 23
2
Deployment syntax error: fine in dev - what's happening?
I''m deploying an app (using Capistrano) to a staging server prior to
final deployment. The app runs fine in dev, but in staging it throws a
syntax error. How can that be?
The error is:
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'':
/Library/WebServer/staging.givetothem.co.uk/releases/20091023133654/app/controllers/bulkimport_controller.rb:32:
2008 Dec 04
2
Round four: Re: code review req: 6750659 drti.o crashes app due to corrupt environment
I believe that I have incorporated all of the feedback given
(thanks!). Changes since the 2008-11-16 version include:
- ksh style & coding standards compliance in test script (Roland)
- "dof_init_debug == B_FALSE" vs. "!dof_init_debug" (Adam)
The updated webrev is at:
http://cr.opensolaris.org/~mgerdts/6750659-2008-12-03/
--
Mike Gerdts
http://mgerdts.blogspot.com/
2003 Jun 17
1
lme() vs aov(y ~ A*B + Error(aa %in% A + bb %in% B)) [repost]
I've posted the following to R-help on May 15.
It has reproducible R code for real data -- and a real
(academic, i.e unpaid) consultion background.
I'd be glad for some insight here, mainly not for myself.
In the mean time, we've learned that it is to be expected for
anova(*, "marginal") to be contrast dependent, but still are
glad for advice if you have experience.
Thank
2005 Feb 25
2
407 Proxy Authentication Required
Hi everybody:
I configured my Asterisk to register to my VoIP provider, and I can make
outgoing calls, but I can't receive any calls with it.
I used Ethereal to sniff the activity of it, and I found something that
might be causing the problem:
When my provider's gateway does the "Request: INVITE
mynumber@my-voip-provider.tld ..." my Asterisk asks for "Status: 407 Proxy
2002 May 17
2
read.table
Hi,
I have a data file with columns separated by ";" I read this file
without any problem using read.csv2( ) but I had problems trying to read
it with read.table( ... sep=";"). So it is not a problem for me, but I
wonder if there is a bug here.
drt <- read.csv2("t.txt", header=TRUE) # ok
dcs <- read.table("t.txt", header=TRUE,
2016 May 12
3
RPM perl requirements woes
Dear CentOS hive mind,
I'm trying to package up a perl module into an RPM for easy deployment.
I want it to be as self-contained as possible (to avoid version issues
with perl modules in base or EPEL). So in my spec file, I'm doing:
curl -L http://cpanmin.us | perl - App::cpanminus -L
%{buildroot}/opt/zonemaster Zonemaster
This way, cpanminus is installed first, and then it goes on to