Displaying 20 results from an estimated 7000 matches similar to: "Potential minor GUI bug"
2004 Jul 06
3
Code density functions
Hello
I would like to see the algorithm that R uses to generate density functions
for several distributions (i.e. Normal,Weibull, etc). I tried:
>dnorm
function (x, mean = 0, sd = 1, log = FALSE)
.Internal(dnorm(x, mean, sd, log))
<environment: namespace:stats>
How can I see the code used for densities?
Thanks!
2005 Jun 10
6
us zipcode data map
i've search the email archives, searched the documention
of various map packages and done an R-site search, but
have been unable to find direct resources for creating maps
of the US that are colored or annotated or ... by zipcode
data.
For example, create a map of the US and color each zipcode
region by its population using two vectors z,p containing the
zipcode and population,
2005 Jul 19
2
Obtaining argument name within a function
Dear all
How can I obtain the name of the argument passed in a function? Here is a
simplistic example of what I would like to obtain:
myfunction= function(name) {
print(paste("The parameter name was",unknownFunction(name))
}
myfunction(myobject)
[1] "The parameter name was myobject"
Thanks
Francisco
2006 May 10
3
Unique?
Hello,
I have sample data set that looks like:
YEAR MONTH DAY CONTINUE SPL TIMEFISH
TIMEUNIT AREA COUNTY DEPTH DEPUNIT GEAR TRIPID
CONVUNIT
1992 1 26 1 SP0073928 8
H 7 25 4 NA 1000000
02163399054 161
1992 1 26 1 SP0073928 8
H 7 25 4 NA 1000000
02163399054 8
1992 1 26 2 SP0004228 8
H 7 25 4 NA 1000000
02163399054 161
1992 1 26 2 SP0004228 8
H 7 25 4 NA 1000000
02163399054 8
1992
2005 Apr 13
1
i param in "for" loop does not takes zeros?
Hi all
Is there any reason why the parameter i in a "for" loop ignores a value of
zero? For example
sim=c()
p=.2
for(i in 0:5)
{sim[i]=dbinom(i,5,p)
}
sim
[1] 0.40960 0.20480 0.05120 0.00640 0.00032
In this example the quantile i= 0 was ignored since
dbinom(0,5,p)
[1] 0.32768
The same behaviour occurs if I use a while loop to perform the same
calculation:
sim=c()
p=.2
i=0
2005 May 13
5
Conflict between xtable and Hmisc when using Sweave?
Dear R users,
The Sweave code below runs fine, as it is. However, an error occurs when
the line 'library(xtable)' is uncommented:
Error: chunk 1
Error in "label<-"(`*tmp*`, value = "month") :
no applicable method for "label<-"
Is anybody aware of this and knows a workaround?
Thanks,
Sander.
*******************
2009 May 04
4
Surface for R outside of R
Hi all,
i am new here and this is my first posting. My coding experience in R ist
okay, but I have a problem which is related to another aspect of R.
I am searching for a surface which execute my commands in R via a click on a
button OUTSIDE of R. Concrete: I will write some programs in R and want to
execute this files outside of R, so I don't want to start R eyery time if i
want an
2005 Jun 19
1
Trouble building R2.1.0 from source on Linux: package VR
Hi,
Following on from suggestions made last week, I decided to install R 2.1.0
on my Linux machine. I'm running into a problem there however, as shown:
make[1]: Entering directory
`/d0/home/fgibbons/tmp/R2.1.0/R-2.1.0/src/library/Recommended'
make[2]: Entering directory
`/d0/home/fgibbons/tmp/R2.1.0/R-2.1.0/src/library/Recommended'
begin installing recommended package VR
WARNING:
2005 Aug 29
5
Testing if all elements are equal in a vector/matrix
Is there a canonical way to check if all elements of a vector or matrix are
the same? Solutions below work, but look hackish to me.
> x <- rep(1, 10)
> all(x == x[1]) # == operator does not provide for small differences
[1] TRUE
> isTRUE(all.equal(x, rep(x[1], length(x)))) # ugly
[1] TRUE
Best,
Vincent
--
Vincent Goulet, Associate Professor
??cole d'actuariat
2012 Jun 22
6
Definition list as image caption
recently though about image captions, then i realized that this could be achiebed by Markdown Extra's definition list feature:
![alttext](http://exampl.com/img.jpg)
: here goes the *caption*
What do you think?
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2005 May 12
3
R2.1.0: Bug in list.files
R2.0.1 (MS Windows)
> list.files(myloc,"*.zip",full=T)
[1] "P:/SARsoftware/Rlibraries/gnlm_0.1.zip"
[2] "P:/SARsoftware/Rlibraries/lms2_0.2.zip"
R2.1.0:
> list.files(myloc,"*.zip",full=T)
Error in list.files(path, pattern, all.files, full.names, recursive) :
invalid 'pattern' regular expression
Bug? or have I missed something
2005 Apr 28
6
R2.1.0: X11 font at size 14 could not be loaded
Hi,
I have just noticed the following problem with R2.1.0 running on SuSE 9.1,
[However, version 2.0.1 (2004-11-15) on the same machine works Okay]:
-------------------------------------------------------------------------
> hist(rnorm(100))
Error in title(main = main, sub = sub, xlab = xlab, ylab = ylab, ...) :
X11 font at size 14 could not be loaded
> version
_
2004 Oct 28
3
ifelse() question
Hi
I have a data.frame with dim = 18638 (rows) 6 (cols)
names(dat)
[1] "id" "long" "lat" "species" "type" "size"
Variable "species" and "type" are factors. Species has 5 levels "BOV" "CAP"
"CER" "OVI" "POR"
Variable "type" has 11 levels
2006 Nov 17
2
Getting R and .Rdata together again
Somehow, I've managed to have my .Rdata files become `disassociated'
from the R program. I am running Windows XP Pro. I have re-installed R
2.4 in an attempt to have it re-associate itself with .Rdata files, but
to no avail. .Rdata files are now associated with a file compression
program or alternatively with Rgui.exe. .Rdata files are represented by
the blue R, but double-clicking on
2006 Jan 13
3
Can I ask for the C code inside an R function using .C?
Hello, all,
It is a general question, but I couldn't find the answer elsewhere.
I am using an R function using .C but don't understand one of its
behaviors without the C code. I am wondering the so-called 'open
source'. It doesn't include the C code together with the R function,
does it? So what I want to ask is whether it is justified, possible or
polite to ask for the C
2003 Oct 15
2
Example of cell means model
This is an example from chapter 11 of the 6th edition of Devore's
engineering statistics text. It happens to be a balanced data set in
two factors but the calculations will also work for unbalanced data.
I create a factor called 'cell' from the text representation of the
Variety level and the Density level using '/' as the separator
character. The coefficients for the linear
2004 Jun 25
4
Unique.data.frame...still getting duplicates
Hi there
I have a data frame with about 65,000 rows and 8 variables. I am trying to
get rid of the double entries of a factor variable "ID" so I can get a
unique observation for each ID
I tried:
>dupl_unique.data.frame(data[ID,]) #I obtain a data frame with 21,547
>observations..so far so good, but then when I check for duplicates
>d_duplicated(dupl2$ID)
2009 Oct 20
8
¿Por qué comprar un programa estadístico si existe R?
Esta pregunta nos la hicimos muchos, alguien aproxima una respuesta a través
de esta publicación:
http://www.scielo.org.ar/pdf/ecoaus/v18n2/v18n2a07.pdf
Saludos cordiales
Teresa
--
Ing. Agr. M.Sc.Teresa Boca
Instituto de Clima y Agua INTA Castelar.
Las Cabañas y Los Reseros s/n°
1712 Castelar Pcia de Buenos Aires, Argentina
Cel: 01115-3572-9584
Tel: (54-11)-4621-0125/1684
Fax:(54-11)-4621-5663
2010 Jul 15
2
"taskbars" or "windows lists" in Wine
I am running Wine 1.2-rc7 on a Ubuntu 10.04 minimal install. I have installed X, and Wine seems to run fine. The problem is that applications that want to make a "window list" or taskbar don't draw them. It isn't a fatal error, the applications simply act like nothing happened. For instance, when I use BBClean (blackbox for Windows), it shows the panel but not the window list.
2004 Nov 09
3
Conditional selection of rows
Hi,
I have a data.frame with several variables and 50,000 observations.
i.e.
data[1:2,1:7]
Iteration Day Production.Type tsUSusc tsASusc tsULat tsALat
1 0 Generic 17965 8833053 0 0
1 1 Generic 17965 8833053 0 0
.
.
.
1 199 Generic 17237 8141028 26 23131
2 127 Generic