similar to: apply() just loops ?

Displaying 20 results from an estimated 5000 matches similar to: "apply() just loops ?"

2008 Apr 17
2
pnbinom.c qnorm.c
Dear R users, I was wondering from where I could get the C source code to compute pnbinom() and qnorm() ? (I would use R in batch mode but I find the startup time prohibitive, unless there is a way to speed it up) I searched the Web and it clearly is part of the R distribution, I just don't know how to extract them. Thanking you ! Markus Loecher Princeton, NJ [[alternative HTML version
2008 Apr 21
1
estimate of overdispersion with glm.nb
Dear R users, I am trying to fully understand the difference between estimating overdispersion with glm.nb() from MASS compared to glm(..., family = quasipoisson). It seems that (i) the coefficient estimates are different and also (ii) the summary() method for glm.nb suggests that overdispersion is taken to be one: "Dispersion parameter for Negative Binomial(0.9695) family taken to be
2015 Nov 02
4
CentOS7 and "ip link alias"
Hello List, After demystifying the cause for my /sbin/ifup-local not being executed by network scripts for an Ethernet interface (don't let NetworkManager control it or ifup-local won't be executed)... ... I have a question with hopefully a simple answer: I placed an alias/description on my interface during testing and now I want to remove it. But when I try to remove it, I'm either
2020 Oct 20
1
Replication issues / local DRS authentication failure
On 10/20/20 3:25 PM, Rowland penny via samba wrote: > On 20/10/2020 21:09, Derek Lambert wrote: >> I really dislike Raspian, and there's not a 64bit release yet. >> >> Does the official Debian distro use Heimdal? Ubuntu? > > Cannot really speak for the rpi, I just use mine as a Unix domain member running > raspbian, but it is basically only the distros based on
2010 Mar 09
2
MASS package not on CRAN ?
The MASS package is listed on the CRAN web site ( http://cran.r-project.org/web/packages/MASS/index.html) but I am unable to install it via install.packages(). The error is that the package is "unavailable". When I manually download the source tar ball and try to install it on a Linux machine, installation fails because "it is not a valid package". Do I need to search
2009 Jun 09
4
how to substitute missing values (NAs) by the group means
Dear Ruser's I ask for helps on how to substitute missing values (NAs) by mean of the group it is belonging to. my dummy dataframe is: > df group traits 1 BSPy01-10 NA 2 BSPy01-10 7.3 3 BSPy01-10 7.3 4 BSPy01-11 5.3 5 BSPy01-11 5.4 6 BSPy01-11 5.6 7 BSPy01-11 NA 8 BSPy01-11 NA 9 BSPy01-11 4.8 10 BSPy01-12 8.1 11 BSPy01-12 6.0 12
2007 Feb 24
2
barchart (lattice) with text labels
I would like to place the value for each bar in barchart (lattice) at the top of each bar. Something like the following code produces. library(lattice) mypanelfunc <- function(x, y, ...) { panel.barchart(x, y, ...) panel.text(x, y, labels=as.character(round(x,2)), ...) } myprepanelfunc <- function(x, y, ...) list(xlim=c(0, max(x)+.1)) mydata <- expand.grid(a=factor(1:5),
2009 Apr 10
4
split a character variable into several character variable by a character
Dear Mao Jianfeng, "r-help-owner" is not the place for help, but: r-help at r-project.org (CC-ed here) In any case, strsplit() does the job, i.e.: > unlist(strsplit("BCPy01-01", "-")) [1] "BCPy01" "01" You can work with the whole variable, like: splitpop <- strsplit(df1$popcode, "-") then access the first part with >
2006 Oct 09
2
Incompatability of lme4 and Matrix packages
I just installed R 2.4 on a windows machine and installed the lme4 package version 0.9975-1. Unfortunately this version requires the 0.9975-2 version of the Matrix package which I cannot seem to find. It seems the newest version I can find is 0.9975-1. Is there somewhere I could find this newer version. Mark Lyman
2009 Mar 19
2
How to set R_PROFILE conditional on batch or interactive mode
I am running R 2.8.1 on SUSE Linux. I would like to be able to set R_PROFILE to two different possibilities. One when R is called by R CMD BATCH and another any other time. Is this possible? Mark Lyman, Statistician Engineering Systems & Integration, ATK
2009 Apr 18
2
source code for prompt()
Dear R community, pardon my ignorance but how would you get the source code for"non-visible functions" ? For example, I would like to see and modify the source code for the prompt() function. Thanks! Markus [[alternative HTML version deleted]]
2010 Jul 09
3
how to plot two histograms overlapped in the same plane coordinate
Dear R-help listers, I am new. I just want to get helps on how to plot two histograms overlapped in the same plane coordinate. What I did is very ugly. Could you please help me to improve it? I want to got a plot with semi- transparent overlapping region. And, I want to know how to specify the filled colors of the different histograms. I also prefer other solutions other than ggplot2. Many
2009 Jun 05
2
read.table, row.names arg
Dear R users, I had somehow expected that read.table() would treat the column specified by the row.names argument as of class character. That seems to be the only sensible class allowed for a column containing row names. However, that does not seem to be the case, as the following example shows: x <- cbind.data.frame(ID = c("010007787048271871", "1007109516820319",
2007 Jul 05
2
Adding points to a wireframe with conditioning variable
I would like to add points to a wireframe but with a conditioning variable. I found a solution for this without a conditioning variable here, http://finzi.psych.upenn.edu/R/Rhelp02a/archive/65321.html. Does anyone know how to plot a wireframe conditioned on a variable and add the points conditioned on the same variable, similar to the solution at the link above?
2008 Jul 16
1
Problem with mpi.close.Rslaves()
I am running R 2.7.0 on a Suse 9.1 linux cluster with a job scheduler dispatching jobs and openmpi-1.0.1. I have tried running one of the examples at http://ace.acadiau.ca/math/ACMMaC/Rmpi/examples.html in Rmpi and they seem to be working, except mpi.close.Rslaves() hangs. The slaves are closed, but the master doesn't finish its script. Below is the example script and the call to R. The job is
2009 Apr 09
2
failed when merging two dataframes, why
Hi, R-listers, Failed, when I tried to merge df1 and df2 by "codetot" in df1 and "codetoto" in df2. I want to know the reason and how to merge them together. Data frames and codes I have used were listed as followed. Thanks a lot in advance. df1: popcode codetot p3need BCPy01-01 BCPy01-01-1 100.0000 BCPy01-01 BCPy01-01-2 100.0000 BCPy01-01 BCPy01-01-3 100.0000 BCPy01-02
2007 Apr 24
3
R as a server on Linux
Hi, I am trying to avid the somewhat costly startup overhead of launching a separate R executable for each "client" request on Linux. My current architecture is such that My Java client explicitly calls R in batch mode and passes it certain parameters. The initital startup takes almost 10 seconds because R has to load a bunch of libraries as well as a moderately large, previously
2007 Oct 10
3
transparent colors
Dear R graphics experts, Do you know of any way of plotting semi-transparent points in R ? I face this problem any time I want to e.g. plot thousands of points that belong to two or three classes which I color code. With the default opaque colors, the plotting order matters and basically the points I plot last completely dominate the picture. I would much rather have the overlaying points
2000 Oct 24
1
installation problems with rbitmap.c (PR#703)
Full_Name: Markus Loecher Version: 1.1.1 OS: Solaris Submission from: (NULL) (129.73.1.1) When trying to install R on a Sun SPARC, make fails in the very end, here is the error message: rbitmap.c:239: parse error before `jmp_buf' rbitmap.c:239: warning: no semicolon at end of struct or union rbitmap.c: In function `my_error_exit': rbitmap.c:257: dereferencing pointer to incomplete type
2008 Mar 27
6
Installing Postfix/Dovecot
I have just installed CentOS 5.1 on my home server and I am trying to set a mail server. I have diligently followed the instructions on the Wiki - How To on the CentOS website (http://wiki.centos.org/HowTos/postfix). However I cannot send internal email (I haven't yet tried externally). Do you have any suggestions on what to check? To test it I used two normail user: giulio and federica.