similar to: Re: R-help Digest, Vol 24, Issue 28

Displaying 20 results from an estimated 200 matches similar to: "Re: R-help Digest, Vol 24, Issue 28"

2005 Feb 27
1
subsetting data set dimenion problem
(See DAAG book, p. 173, ex. 3) I'm a new user of R, and I'm following the DAAG text. I want to create a subset of the races2000 data frame, but get errors because of a mismatch of values in some columns: > library(DAAG) > attach(races2000) > hills2000 <- races2000[races2000$type == 'hill'] Error in as.matrix.data.frame(x) : dim<- : dims [product 770] do not
2005 Jul 17
0
R source issue "sarge" or "stable"
Clint, Sorry for the delayed reply, but I was away from my computers for several days. On 6 July 2005 at 11:24, Clint Harshaw wrote: | Hi Dirk and Douglas: | | I am a user of Debian and R. My system is a Debian Sarge system, and I | want to add the ibiblio mirror to keep my R installation up to date. | However, I'm running into some trouble when trying to follow the | instructions in the
2005 Mar 02
2
.ps and .pdf page size differences in FC vs. Debian
R version: 2.0.0 OS: Fedora Core 1 When I'm using Fedora Core 1, Rplots.ps (and subsequent Rplots.pdf created after using ps2pdf Rplots.ps) which are created from the command line execution of R are too large to fit on a US Letter sized page when printed. The same code will produce a US letter sized page when I'm on my Debian Sid box. Both boxes are connected to the same shared
2006 Feb 16
8
Ubuntu and R
I've recently installed Ubuntu 5.10 on a desktop and need R installed, however, even after uncommenting the repos associated with universe, backports and multiverse, the packages available for Ubuntu are somewhat out of date: clint at simba:~$ apt-cache policy r-base r-base-core r-base: Installed: (none) Candidate: 2.1.1-1 Version table: 2.1.1-1 0 500
2006 Feb 16
8
Ubuntu and R
I've recently installed Ubuntu 5.10 on a desktop and need R installed, however, even after uncommenting the repos associated with universe, backports and multiverse, the packages available for Ubuntu are somewhat out of date: clint at simba:~$ apt-cache policy r-base r-base-core r-base: Installed: (none) Candidate: 2.1.1-1 Version table: 2.1.1-1 0 500
2006 Feb 19
2
changing names of vectors in list or data.frame
When I combine separate vectors into one list, there are new names created. I'd like to change them to something more meaningful. Here are two examples using data(zelazo) from library(ISwR): > library(ISwR) > data(zelazo) > attach(zelazo) > zelazo $active [1] 9.00 9.50 9.75 10.00 13.00 9.50 $passive [1] 11.00 10.00 10.00 11.75 10.50 15.00 $none [1] 11.50 12.00 9.00
2006 Mar 01
2
Update R 2.1.1-1 -> 2.2.1 on UBUNTU
I've installed Ubuntu 5.10 Breezy on my Mac. When using MacOSX, I used to work with R 2.2.1, but now, with Ubuntu, I can't download it with synaptic. I can only download R 2.1.1-1, and I really need 2.2.1. I've tried to edit the sources.list file, typing deb http://cran.R-projet.org/bin/linux/debian stable/ R/r, using a different mirror,... but when I run synaptic, it says: W:
2010 Feb 25
1
binding multidimension array
I don't find rbind, cbind or other bind that bind in other dimesions for multidimension array while keeping the result of the same dimension. For example, say, dim(x)=c(2,3,4), dim(y)=c(3,3,4). I want to have the result z, where dim(z)=c(2+3,3,4), when I bind x and y in the first dimenion. The bind can also be in the 2nd and 3rd dimesion. Could somebody let me know if this family of
2019 Sep 24
0
What is the best way to loop over an ALTREP vector?
Not sure if you're using just C++ or Rcpp for C++ access but https://purrple.cat/blog/2018/10/14/altrep-and-cpp/ has some tips on using C++ w/ALTREP. > On Sep 23, 2019, at 3:17 PM, Wang Jiefei <szwjf08 at gmail.com> wrote: > > Sorry for post a lot of things, for the first part of code, I copied my C++ > iter macro by mistake(and you can see an explicit type casting). Here
2019 Feb 05
3
[RFC] Vector Predication
On 2/5/19 12:06 PM, Bruce Hoult wrote: > On Tue, Feb 5, 2019 at 1:23 AM Simon Moll <moll at cs.uni-saarland.de> wrote: >> I think this is the usual mixup of AVL and MVL. >> >> AVL: is part of the predicate and can change between vector operations >> just like a mask can (light weight). >> >> MVL: Is the physical vector register length and can be
2009 Oct 08
3
I can not install DAAG package . help
I use R on my Ubuntu 9.04 laptop, which was installed by "aptitude install" way Now i'm learning a book of R which needs "MASS" and "DAAG" installed. So i followed the instructions: >install.packages("MASS") >library("MASS") MASS works fine. But DAAG doesn't. Anyone who could help would be appreciated a lot ! Below are my error
2009 Oct 08
3
I can not install DAAG package . help
I use R on my Ubuntu 9.04 laptop, which was installed by "aptitude install" way Now i'm learning a book of R which needs "MASS" and "DAAG" installed. So i followed the instructions: >install.packages("MASS") >library("MASS") MASS works fine. But DAAG doesn't. Anyone who could help would be appreciated a lot ! Below are my error
2012 Feb 29
1
How can I avoid the warning messages when calling DAAG package?
Dear R users, I'm a newbie for R and want to ask some basic questions. So, after I open the R software, I typed library(DAAG). Then, I get massive warning messages as shown below. Why does it happen? Also, here are few specific questions regarding each message. 1) Loading required package: MASS -> Does this mean that the MASS package is not included in DAAG? 2) Attaching package:
2019 Sep 23
0
What is the best way to loop over an ALTREP vector?
Hi Gabriel, I have tried the macro and found a small issue, it seems like the macro is written in C and does an implicit type conversion(const void * to const int *), see below. While it is allowed in C, C++ seems not happy with it. Is it possible to add an explicit type casting so that it can be compatible with both language? #define ITERATE_BY_REGION_PARTIAL(sx, px, idx, nb, etype, vtype,
2008 Jan 04
0
[LLVMdev] Vectors and function calls across modules
Hey all, thanks for your prompt replies from before, now I have more questions! First, I've heard rumors about the ability to call functions across modules. I'm interested in learning how, but I haven't been able to figure it out yet. I tried just taking a Function* that I got from one module and calling it from another one, but that didn't work. How do I do that? Second,
2007 May 21
0
Is this a bug in cv.lm(DAAG) ?
Dear R-list, I'm not sure what I've found about a function in DAAG package is a bug. When I was using cv.lm(DAAG) , I found there might be something wrong with it. The problem is that we can't use it to deal with a linear model with more than one predictor variable. But the usage documentation hasn't informed us about this. The code illustrates my discovery: > library(DAAG)
2012 Jan 24
1
Failure to get compactPDF to compact a pdf file
I am failing to get compactPDF to make any change to a pdf file that, a/c to the message from the CRAN upload site, can be very substantially compacted. Any ideas what may be wrong? I have also tried recreating the pdf file. I also tried R CMD build --resave-data --compact-vignettes DAAG The data files compact alright (but I get the 'significantly better compression' warning message
2007 May 12
0
There might be something wrong with cv.lm(DAAG)
Hi, everyone When I was using cv.lm(DAAG) , I found there might be something wrong with it. The problem is that we can't use it to deal with a linear model with more than one predictor variable. But the usage documentation hasn't informed us about this. You can find it by excuting the following code: xx=matrix(rnorm(20*3),ncol=3) bb=c(1,2,0) yy=xx%*%bb+rnorm(20,0,10)
2019 Sep 24
2
What is the best way to loop over an ALTREP vector?
Hi Bob, Thanks for sending around the link to that. It looks mostly right and looks like a useful onramp. There are a few things to watch out for though (I've cc'ed Romain so he's aware of these comments). @romain I hope you taake the following comments as they are intended, as help rather than attacks. The largest issue I see is that the contract for Get_region is that it *populates
2004 Oct 31
2
Error Message: MCMCpack and coda
Hello All, I'm trying to run a one-dimenional irt model using the packages MCMC and coda on a rather large set of roll-call voting data with many missing observations. Here's a sample of the code: Post10<- MCMCirt1d (Italy10, burnin = 1000, mcmc=50000, thin=100, verbose=TRUE, theta.constraints = list(V549=1, V443=-1)) The MCMCirt1d command seems to work fine, but when I try to