Displaying 20 results from an estimated 10000 matches similar to: "type.convert (PR#6781)"
2004 Apr 16
1
as.data.frame.list (PR#6782)
Full_Name: J. R. M. Hosking
Version: 1.9.0
OS: Windows 2000
Submission from: (NULL) (129.34.20.23)
Browsing the code of as.data.frame.list, I see
cn[m] <- paste("..adfl.", cn[m], sep = "")
and 5 lines later
names(x) <- sub("^..adfl.", "", names(x))
It looks as though the latter should be
names(x) <- sub("^\\.\\.adfl\\.",
2003 Oct 14
3
NA %*% 0 == 0 (PR#4582)
Full_Name: J . R. M. Hosking
Version: 1.8.0
OS: Windows 2000
Submission from: (NULL) (129.34.20.23)
On R 1.8.0 (and on R 1.5.1), Windows binary:
> NA %*% 0
[,1]
[1,] 0
This is surprising. Is it a bug? Note that
> 0 %*% NA
[,1]
[1,] NA
> NA %*% 1
[,1]
[1,] NA
> NA * 0
[1] NA
as expected.
2010 Feb 04
2
Unable to update a CentOS 4 : urlopen error nonnumeric port: 8080
Hi,
I am trying to update a CentOS 4.4 but the yum update gives me error
messages
Setting up Update Process
Setting up repositories
http://mirror.centos.org/centos/4/updates/i386/repodata/repomd.xml: [Errno
4] IOError: <urlopen error nonnumeric port: '8080?'>
Trying other mirror.
Cannot open/read repomd.xml file for repository: update
failure: repodata/repomd.xml from update:
2001 Nov 09
1
Installing packages
Hello,
I have upgraded from Mandrake Linux 8.0 to Mandrake 8.1 and try to reinstall
my favourite R... Everything is OK for the base software but I have trouble
to get some packages installed.
Specifically, for some packages, a "collect2" binary seems to be necessary
during the compilation/linking process of the library, and LD complains about
not finding it :
Installing source
2010 Oct 29
2
what´s wrong with this code?
Hello, I want to maximize a likelihood function expressed as an
integral that can not be symbolically evaluated. I expose my problem
in a reduced form.
g<- function(x){
integrand<-function(y) {exp(-x^2)*y}
g<-integrate(integrand,0,1)
}
h<-function(x) log((g(x)))
g is an object of the class function, but g(2) is a integrate object,
I can print(g(2))
2006 Jul 11
2
Dropping unused levels of a factor that has "NA" as a level
Is this a bug?
> f1 <- factor(c("a", NA), levels = c("a", "NA") )
> f2 <- f1[, drop = TRUE]
> f2
[1] a <NA>
Levels: a <NA>
I would have expected f2 to have only one level, "a". It seems
to me that the code in [.factor does not follow the advice in
help("factor") on how to set factor codes to be
2012 Nov 17
0
[LLVMdev] Purdue LLVM Social: GreyHouse 12/6 @ 8:30pm
Dr Hosking, interested in coming to this?
Michael Goldfarb, interested in coming to this?
-- Sean Silva
On Sat, Nov 17, 2012 at 12:53 AM, Joe Abbey <jabbey at arxan.com> wrote:
> First LLVM Social in West Lafayette, IN.
>
> When:
> Thursday, Dec 6th @ 8:30pm
>
> Where:
> GreyHouse Coffee
> 100 Northwestern Avenue
> West Lafayette, IN 47906
>
2001 Sep 19
1
missing() (PR#1096)
Full_Name: J. R. M. Hosking
Version: 1.3.0
OS: Windows 2000
Submission from: (NULL) (198.81.209.16)
R documentation suggests that if a function argument x is omitted,
missing(x) should return TRUE even if x is subsequently assigned a value.
This happens in S-plus. But in R:
> test
function(x){
print(missing(x))
if(missing(x)) x<-0
print(missing(x))
invisible()
}
> test()
[1] TRUE
[1]
2008 Jul 19
1
axis() ignores supplied value of argument mgp[3]?
It seems that when an argument 'mgp' is supplied to axis(),
the mgp[2] value (position of tick mark labels) is honoured
but the mgp[3] value (position of axis line) is ignored.
Example:
plot(1:5, xaxt='n', ann=FALSE)
par(mgp=c(0,2,1))
axis(1, at=2:4, mgp=c(0,-2,-3))
Axis line is plotted at margin line 1, tick mark labels at line -3.
Is this a bug?
J. R. M. Hosking
2007 Feb 25
2
RFA
Dear Sir in the following example,is the vector lmom a l-moment ratios
vector? What is meant by size = northCascades[,1]? And what are the values
in c(0.0104,0.0399,0.0405)?
Please help me I am unable to understand these from help manual.
Best Regards
AMINA
data(northCascades)
lmom <- c(1, 0.1103, 0.0279, 0.1366)
kappaParam <- kappalmom(lmom)
heterogeneity(500, 19, size =
2013 Apr 29
2
Adding elements in data.frame subsets and also subtracting an element from the rest elements in data.frame
Dear R forum
I have a data.frame as
cashflow_df = data.frame(instrument = c("ABC","ABC","ABC","ABC","ABC","ABC","ABC","ABC","ABC","ABC","ABC","ABC","ABC","ABC", "ABC", "PQR", "PQR",
2009 Sep 17
2
What is the best way to get a subset of a data.frame?
Hi,
I want to construct a data.frame 'y' by using x$x and x$y. I think
that there might be better ways to do it (because, for example, we can
use a_matrix[3:5,] to extract certain rows, where 'a_matrix' is a
matrix). Can somebody let know what the best way is?
> a=data.frame(x=1:10,y=rep("abc",10),z=rep("xyz",10))
> a
x y z
1 1 abc xyz
2 2
2006 Feb 14
1
addmargins
> addmargins(UCBAdmissions, FUN = list(Total=sum))
works with no problems, but consider:
> myFUN <- list(Total=sum)
> addmargins(UCBAdmissions, FUN = myFUN)
Error in "names<-.default"(`*tmp*`, value = "") :
names() applied to a non-vector
Is this a bug?
> R.version
_
platform i386-pc-mingw32
arch i386
os mingw32
system
2007 Sep 16
1
Factorial, L-moments, and overflows
Hi everyone,
In the package POT, there is a function that computes the L-moments of a given sample (samlmu). However, to compute those L-moments, one needs to obtain the total number of combinations between two numbers, which, by the way, requires the use of a factorial. See, for example, Hosking (1990 , p. 113).
How does the function "samlmu" in the package POT avoids overflows?
I
1999 May 11
1
model.matrix crashes (PR#189)
With 0.64.1 on Intel RH5.2,
abc <- list()
abc$abc$abc <- matrix(1:20)
mt <- terms(~(abc$abc$abc[,1]==64)|(abc$abc$abc[,1]==65)|(abc$abc$abc[,1]==75)
|(abc$abc$abc[,1]==84)|(abc$abc$abc[,1]==85))
model.matrix(mt,model.frame(mt))
crashes. With ab$ab$ab, it does not. Apparently, the bug I reported
for 0.64.0 has just been pushed back one step. Jim
2012 Jul 18
2
How to have original (name) order after melt and cast command
Dear R helpers,
I have a data.frame as given below -
dat1 = data.frame(date = as.Date(c("3/30/12","3/29/12","3/28/12","3/27/12","3/26/12",
"3/23/12","3/22/12","3/21/12","3/20/12", "3/30/12","3/29/12","3/28/12","3/27/12",
2011 Mar 28
1
Ordering data.frame based on class
Dear R helpers
Suppose I have a data.frame as given below -
my_dat = data.frame(class = c("XYZ", "XYZ", "XYZ", "XYZ", "XYZ","ABC", "ABC", "ABC", "ABC", "ABC" ), var1 = c(20, 14, 89, 81, 17, 44, 36, 41, 11, 36), var2 = c(1001, 250, 456, 740, 380, 641, 111, 209, 830, 920))
> my_dat
class
2019 Apr 25
2
Questions/suggestions about new staged installation
Hi,
I was playing around with inotifywait (great tool!) to see the new
staged installation of source packages in action. In one terminal I'm
monitoring the create/delete/move events of the installation library with:
? inotifywait -m --timefmt '%F %T' --format '%T -- %w %e %f' -e create
-e delete -e move path/to/R/library/
While in another terminal I install CRAN package
2008 Feb 25
7
kernel: martian
Hi,
I have a setup problem with Shorewall 4.0.6, which I can''t figure out why
it is not working:
I want to install a fireall with 2 extra interfaces :
- My serv ("dmz") zone is a /28 subnet behind eth1, with a small number of SUN
servers (IPs between ABC.DEF.75.1 and .13), one of which is a DHCP server for
the 75 subnet.
- The loc zone are PCs in the 75 subnet behind eth2
2000 Mar 08
2
possible BUG with as.data.frame() and/or [.data.frame
Here is a possible BUG with as.data.frame() and/or [.data.frame which broke
Michael Lapsleys RODBC-Code.
Can anyone confirm it is a bug or a 'feature' of the prototype?
tablename <- "abc"
a <- as.data.frame(cbind("abc", 1:3))
b <- as.data.frame(cbind(tablename, 1:3))
# ok
> a
V1 V2
1 abc 1
2 abc 2
3 abc 3
# missing column name
> b
tablename
1