similar to: confused with vector subsetting

Displaying 20 results from an estimated 20000 matches similar to: "confused with vector subsetting"

2001 Dec 31
2
Extracting/setting elements from/in a matrix/array
Dear all, I had to extracts/set elements from/in a matrix. Let say I have two vectors dim1 and dim2 of indices in the respective two dimensions of a matrix: I want to extract all the corresponding elements. I the case of a nxn matrix, dim1 <- 1:n and dim2 <- 1:n would extract the diagonal. I know one way would be to use the functions 'row' and 'col', but the matrixes I
2001 Jul 16
2
Trouble with the memory allocation
Dear R-users, I am currently facing what appears to be a strange thing (at least to my humble understanding). If I understood correctly, starting with the version 1.2.3, R memory allocation can be done dynamically, and there is no need to fiddle with the --nsize and --vsize parameter any longer... So far this everything seemed to go this way (I saw the size of my processes growing when I was
2001 Oct 27
1
trouble with data.matrix
Dear all, The following causes me trouble: > a <- data.frame(2:5,3:6,4:7) > str(a) `data.frame': 4 obs. of 3 variables: $ X2.5: int 2 3 4 5 $ X3.6: int 3 4 5 6 $ X4.7: int 4 5 6 7 > str(data.matrix(a)) int [1:4, 1:3] 2 3 4 5 3 4 5 6 4 5 ... - attr(*, "dimnames")=List of 2 ..$ : chr [1:4] "1" "2" "3" "4" ..$ : chr
2001 Oct 22
1
No subject
Dear all, I may have overlooked something but the following piece of code causes me trouble: > a_data.frame(1:4) > a X1.4 1 1 2 2 3 3 4 4 > apply(a,2,cat) 1 2 3 4Error in ans[[1]] : subscript out of bounds > apply(a,1,cat) 1234NULL Is this the fact my data.frame has only one dimension ? (and do I forget somewhere (but where ?) to specify not to 'drop'
2003 Apr 09
1
'Apparently' trouble with name spaces and Sweave...
Ben Bolstad experienced something odd while running R CMD check over a package of ours using r-devel (yesterday's fresh). He tracked down the problem to a vignette calling 'library(MASS)'. Please kindly ignore if this is a known (and temporary) issue. Laurent ----- Forwarded message from Ben Bolstad <bolstad@stat.berkeley.edu> ----- Return-Path:
2001 Jul 19
1
Compiling R-1.3.0-patched on OSF1
Dear R-users, I currently have trouble in trying to compile R-1.3.0-patched on Compaq OSF1. -------- >uname -a OSF1 adenine.fysik.dtu.dk V4.0 1229 alpha -------- The 'configure' step ended seemingly corretly: ----------------------- R is now configured for alphaev6-dec-osf4.0f Source directory: . Installation directory: /home/adenine/sysman/laurent/share/ C
2003 Mar 11
1
R CMD check (again)
Hi, R-devel causes me still trouble. It dies with Error: couldn't find function "predict.loess" Execution halted for the package affy, but bash-2.04$ grep predict.loess ~/R-devel/src/library/modreg/R/*.R /misc/homes/laurent/R-devel/src/library/modreg/R/loess.R:predict.loess <- function(object, newdata = NULL, se = FALSE, ...) bash-2.04$ ..the function seems to be there...
2001 Jun 12
1
trouble to install the Rstream package
Dear R-users, I successfully installed the package Rstreams under linux, but my first attempt to do so on SGI IRIX 6.5 (64bits) lead to the following error message. -------------------- laurent at genome> R CMD INSTALL Rstreams Installing source package `Rstreams' ... creating cache ./config.cache checking for ftruncate... yes checking size of long double... 16 updating cache
2002 Oct 05
2
R-1.6.0 and R CMD check
Hi, I upgraded to R-1.6.0 and R CMD check is behaving a bit weird. The package I am check cannot make it throught because of errors like > ##___ Examples ___: > > data(Dilution) > hist(Dilution[,1]) Error in if (log == T) { : missing value where logical needed Execution halted while the function called in the example defined in the .Rd fiel as a signature in which
2019 Nov 30
2
Inconsistent behavior for the C AP's R_ParseVector() ?
Hi again, Beside R_ParseVector()'s possible inconsistent behavior, R's handling of zero-length named elements does not seem consistent either: ``` > lst <- list() > lst[[""]] <- 1 > names(lst) [1] "" > list("" = 1) Error: attempt to use zero-length variable name ``` Should the parser be made to accept as valid what is otherwise possible
2019 Dec 14
2
Inconsistent behavior for the C AP's R_ParseVector() ?
Le lun. 9 d?c. 2019 ? 09:57, Tomas Kalibera <tomas.kalibera at gmail.com> a ?crit : > On 12/9/19 2:54 PM, Laurent Gautier wrote: > > > > Le lun. 9 d?c. 2019 ? 05:43, Tomas Kalibera <tomas.kalibera at gmail.com> a > ?crit : > >> On 12/7/19 10:32 PM, Laurent Gautier wrote: >> >> Thanks for the quick response Tomas. >> >> The same error
2019 Dec 14
1
Inconsistent behavior for the C AP's R_ParseVector() ?
Hi Simon, Widespread errors would have caught my earlier as the way that code is using only one initialization of the embedded R, is used quite a bit, and is covered by quite a few unit tests. This is the only situation I am aware of in which an error occurs. What is a "correct context", or initial context, the code should from ? Searching for "context" in the R-exts manual
2001 Aug 13
1
jpeglib.h in a strange place
Dear All, Would anybody have any advice to give on that: The Facts: - I installed (compiled) R on SGI IRIX (6.5) - I am not root - I discovered the jpeg device I need now badly doesn't work (postscript is not so happy with 19 millions spots) - after investigation, it appeared the jpeglib.h was detected not recent enough at configure time - the jpeglib.h in /usr/include is version 6a - the
2001 Aug 16
1
crt1.o skipped at configure time ? (PR#1057)
Full_Name: Laurent Gautier Version: 1.3.0-patched OS: IRIX 6.5 Submission from: (NULL) (130.225.67.199) During the configuration step, things do not go perfect: The file config.log has : configure:3754: gcc -o conftest -g -O2 -I/usr/freeware/include -I/usr/local/include -static conftest.c -L/usr/local/lib 1>&5 ld32: FATAL 9 : I/O error (/usr/lib32/mips3/nonshared/crt1.o): No such
2001 Nov 19
2
reading tiff files
Dear all, I am looking for a way to read tiff data into R (this could be something the pixmap package users could find intersting). I could not find anything related but I suspect something to exists...somewhere... is it really the case ? Thanking in advancing for help/pointers, Laurent -- Laurent Gautier CBS, Building 208, DTU PhD. Student D-2800 Lyngby,Denmark tel: +45 45 25
2019 Dec 07
2
Inconsistent behavior for the C AP's R_ParseVector() ?
Thanks for the quick response Tomas. The same error is indeed happening when trying to have a zero-length variable name in an environment. The surprising bit is then "why is this happening during parsing" (that is why are variables assigned to an environment) ? We are otherwise aware that the error is not occurring in the R console, but can be traced to a call to R_ParseVector() in
2003 Jul 15
2
Keeping track of occurrence of warning message
Hi there, I am interested if there is anyway to keep track of the occurrence of warning message. I know that warnings will only be printed out at the end of the program if warn=0. However I am also interested at which particular set of data does the warnings occur too. This is because I am running 1000 data, so if there are 2 or 3 data that give warnings, I would like to know which are the ones
2001 Jul 17
1
vector angle
Hi everyone, I'm translating into R some programs I worked through in Matlab to calculate the angle between two vectors (very large--like 6200 rows in each vector). In Matlab, I used a series of nested for loops, because I was calculating the angles between many pairs of vectors. I know for loops are not desirable in R code, so I was wondering if anyone could recommend a faster way to
2019 Dec 09
3
Inconsistent behavior for the C AP's R_ParseVector() ?
Le lun. 9 d?c. 2019 ? 05:43, Tomas Kalibera <tomas.kalibera at gmail.com> a ?crit : > On 12/7/19 10:32 PM, Laurent Gautier wrote: > > Thanks for the quick response Tomas. > > The same error is indeed happening when trying to have a zero-length > variable name in an environment. The surprising bit is then "why is this > happening during parsing" (that is why
2001 Aug 08
2
Library hdarray
Dear everybody! I m seeking the package named hdarray for the analysis of microarrays data. It must not included in the base packages. Thanks in advance. Aboubakar Maitournam. -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or