Displaying 20 results from an estimated 1000 matches similar to: "Building a function"
2002 Aug 07
3
Reading characters using read.table()
Hello,
I need to read a vector containing names of different variables from a
text file (a unique column). Among them one is called "T". When I use
the function read.table with default arguments and when I call the
element of the data frame corresponding to name of this variable it
returns me the logical value "TRUE" whereas I was expected it to return
the character
2005 Nov 11
1
Snow parLapply
Dear R-user,
I am trying to use the function 'parLapply' from the 'snow' package
which is supposed to work the same wys as 'lapply' but for a
parallelized cluster of computers. The function I am trying to call in
parallel is 'dudi.pca' (from the 'ade4' package) which performs
principal component analyses. When I call this function on a list of
2007 Feb 21
2
Coxph and ordered factors
Dear useRs,
I am trying to fit a Cox PH model on survival data from a lung cancer
dataset. I would like to include the patient staging (I-IV) as a
covariate. For this I use the following function:
coxph(Surv(time,status) ~ stage)
The staging information is a categorical variable, and it is important
to take the ordering into account (I<II<III<IV). Does the coxph function
handle
2007 Jan 12
3
Content-Length: 0
While trying to debug a goofy XML loading issue in IE, I''ve found
that Mongrel (latest) returns Content-Type: 0 with every request on a
particular (CentOS 4) server, yet not on my local (OS X) box. These
both access identical Rails apps. This seems like a clue, but thought
I''d ask here if for some reason this is expected behavior. Both
running Ruby 1.8.4. Both return
2007 Apr 17
5
How to change the default encoding for dynamic pages
Hello,
I''m trying to write a rails application serves by mongrel and using
accentuated characters in the .rhtml page. But Mongrel replace them by ''?'' .
It works fine for static pages by defining the charset to iso-8859-1 in the
mongrel_mime.yml
But how to change the default encoding (seems to be UTF-8) for the dynamic
pages ?
thanks for your help.
-------------- next
2011 Dec 01
3
Change the limits of a plot "a posteriori"
Hi all
How can I change the limits (xlim or ylim) in a plot that has been already
created?
For example, consider this naive example
curve(dbeta(x,2,4))
curve(dbeta(x,8,13),add=T,col=2)
When adding the second curve, it goes off the original limits computed by R
for the first graph, which are roughly, c(0,2.1)
I know two obvious solutions for this, which are:
1) passing a sufficiently large
2007 Feb 27
3
mongrel_cluster and Monit
On one of my development servers mongrel dies when idle for any length
of time. Since I''ve not been able to solve that problem I thought I''d
route around it by using monit to kick things when necessary.
My monitrc contains the following...
--------------------------------------------------------------------------------
check process mongrel_8310 with pidfile
2006 Feb 22
3
is there really a restart task in switchtower? How do you invoke it?
I just created a new rails project "test".
I then did "switchtower --apply-to ~/user/test test"
I then moved into test and tried "rake restart" and got:
kfelkins@lurch:~/user/test$ rake restart
(in /home/kfelkins/user/test)
rake aborted!
Don''t know how to build task ''restart''
I see restart in deploy. Can restart be invoked from the
2013 Dec 09
1
10.0-BETA4 (upgraded from 9.2-RELEASE) zpool upgrade -> boot failure
Hi,
Is there anything known about ZFS under 10.0-BETA4 when FreeBSD was
upgraded from 9.2-RELEASE?
I have two servers, with very different hardware (on is with soft raid
and the other have not) and after a zpool upgrade, no way to get the
server booting.
Do I miss something when upgrading?
I cannot get the error message for the moment. I reinstalled the raid
server under Linux and the other
2004 May 26
9
CTI (Computer-Telephony Integration) with Asterisk ?
Hi all,
Is it possible and easy to make a CTI server with Asterisk?
Florent,
2007 Mar 02
4
significant anova but no distinct groups ?
Dear all,
I am studying a dataset using the aov() function.
The independant variable 'cds' is a factor() with 8 levels and here is
the result in studying the dependant variable 'rta' with aov() :
> summary(aov(rta ~ cds))
Df Sum Sq Mean Sq F value Pr(>F)
cds 7 0.34713 0.04959 2.3807 0.02777
Residuals 92 1.91635 0.02083
The dependant variable
2011 Jan 26
4
ReMarkdown.css makes HTML look like Markdown text
Hello everyone on the list,
I?m borrowing a bit of your time in order to present a little CSS experiment
I?ve been working on: a stylesheet which gives a Markdown-like aspect to
HTML elements, especially those elements that the Markdown syntax generates
in the first place.
This means > signs for blockquotes, # signs or underlines for titles, etc.
I wrote a mini-website for it:
2013 Nov 10
1
10.0-BETA3 em/nfe drivers on MSI K9NBPM2-FID board. LAN card changes.
Hi,
I have a server at Hetzner and something strange happend.
First, I installed FreeBSD 10.0-BETA3 (amd64) via their FreeBSD
9.2-RELEASE rescue system, that's ok.
I had to configure the network by using the em driver -> em0 interface.
But suddenly, the network was lost.
After an ACPI reboot, nothing. Going to the vKVM show me the system
didn't detected em0 anymore but an nVidia
2011 Jun 13
1
Communciation delay betwwn speakers
Hy all of you,
I successfully installed an AsterikNow fo a client and almost everything
works fine.
I can call/recieve in internal with perfect quality.
I can do the same with external EXCEPT the little delay in the
communication. I have almost 0,5 s of delay between speakers only with
outside.
I checked the QoS and no packets are lost, I have the G729 installed,
configured and declared as
2016 Dec 20
2
Very small numbers in hexadecimal notation parsed as zero
Hi all,
I have noticed incorrect parsing of very small hexadecimal numbers
like "0x1.00000000d0000p-987". Such a hexadecimal representation can
can be produced by sprintf() using the %a flag. The return value is
incorrectly reported as 0 when coercing these numbers to double using
as.double()/as.numeric(), as illustrated in the three examples below:
2004 Dec 30
2
bug / incompatibility with USB booting in Syslinux 3.00 pre9 ?
Hi,
I'm Florent BERANGER, from Flonix ( http://www.flonix.com ).
After several tests, we have found that Syslinux 3.00 pre9 is no longer
compatible with USB stick booting.
Syslinux 2.13 works fine with this feature.
Error infos :
Syslinux 3.00 pre9 only displays its version and a new line with a "a"
character and then hangs.
Tests configuration :
Syslinux applied from : Linux
2007 Aug 01
1
Re : Custom axis
Maybe I do not explain well what I would like to do. I do not want to change the labels of the axis, but the scale. What I want is a general procedure for changing the scale. Its like using a logarithmic scale on a plot. Labels are the same, but the increases of x along the x-axis are defined by a known monotone and continuous function.
Florent Bresson
----- Message d'origine ----
De :
2013 Nov 29
2
Listas en R
Hola.
Me interesa meter una serie de regresiones lineales en una lista a la
que voy a denominar L.
El problema es que a posteriori necesito sacar valores de esas regresiones.
Sin embargo, al llamar a L[1] este no es un objeto del tipo "lm" sino que es
del tipo "list" y no puedo aplicarle funciones relacionadas con la
regresión (tal y como puede ser hacer un summary para
2016 Dec 20
3
Unexpected I(NULL) output
Hi all,
I believe there is an issue with passing NULL to the function I().
class(NULL) # "NULL" (as expected)
print(NULL) # NULL (as expected)
is.null(NULL) # TRUE (as expected)
According to the documentation I() should return a copy of its input
with class "AsIs" preprended:
class(I(NULL)) # "AsIs" (as expected)
print(I(NULL)) # list() (not expected!
2010 Nov 03
2
[klaR package] [NaiveBayes] warning message numerical 0 probability
Hi,
I run R 2.10.1 under ubuntu 10.04 LTS (Lucid Lynx) and klaR version 0.6-4.
I compute a model over a 2 classes dataset (composed of 700 examples).
To that aim, I use the function NaiveBayes provided in the package
klaR.
When I then use the prediction function : predict(my_model, new_data).
I get the following warning :
"In FUN(1:747[[747L]], ...) : Numerical 0 probability with