similar to: The function 'apply' (PR#2633)

Displaying 20 results from an estimated 20000 matches similar to: "The function 'apply' (PR#2633)"

2003 Jan 29
1
The function 'any' (PR#2503)
Full_Name: Paul Louisell Version: 1.6.2 OS: Windows NT Submission from: (NULL) (192.249.47.9) There is a slight bug in the function 'any'. Given a logical vector (possibly including values of 'NA'), the default action of any should be as follows: (i) at least one value = T should return T (ii) NO values = T (a) at least one value = 'NA' should return 'NA'
2004 Nov 12
2
Loading libraries in 2.0.0 (PR#7364)
I'm using version 2.0.0 of R on a Windows 2000 OS. Packages that I installed in 1.9.1 are not installing properly in 2.0.0. Specifically, I can install packages from local zip files with the following code (which I execute through the GUI): > install.packages(choose.files('',filters=Filters[c('zip','All'),]), .libPaths()[1], CRAN = NULL) updating HTML package
2002 Jul 31
3
SHLIB
Hi, I'm having a problem using the 'SHLIB' command in R. I keep getting syntax errors. The help gives the following usage for it: Rcmd SHLIB [-o dllname] files 'files' is supposed to be a list of files, but whether I set up a list or a character vector, I still get a syntax error. Does anyone know if they're are supposed to be quotes somewhere in there? If someone has an
2002 Aug 04
3
Fortran DLLs
Hello everyone, I'm using R 1.5.1 on Windows. I chose the option 'Install Source Files' when installing R. The code below shows my use of the command SHLIB and the error I get. C:\R\rw1051\bin>Rcmd SHLIB C:\Stage 9 (Phase 2)\cir3int.f 'perl' is not recognized as an internal or external command, operable program or batch file. I'm assuming I'm missing some perl
2002 Jul 26
1
RNG in R
Hi, I'm working with a programmer on translating code I wrote for a simulation in S into FORTRAN. Since the S source code is not available, I decided to use the random number generator (RNG) in R. The problem is that the R code is complex enough that we can't isolate the proper source files to include. Although we can link to the C code and call the RNG, we haven't been able to find
2003 Nov 06
1
Question about computing offsets automatically
Hi, I'm using R version 1.8.0 on Windows NT. When fitting a glm with Poisson random component and a log link, I frequently need to include an offset. Typically I use xtabs or table to get the counts for the contingency table, and then I use as.data.frame.table to create a data frame that I can use in the glm function. I have not found an option that allows me to total the offset variable to
2005 Apr 25
1
The eigen function
I'm using R version 2.0.1 on a Windows 2000 operating system. Here is some actual code I executed: > test [,1] [,2] [1,] 1000 500 [2,] 500 250 > eigen(test, symmetric=T)$values [1] 1.250000e+03 -3.153033e-15 > eigen(test, symmetric=T)$values[2] >= 0 [1] FALSE > eigen(test, symmetric=T, only.values=T)$values [1] 1250 0 > eigen(test, symmetric=T,
2007 Jan 23
3
Loess with more than 4 predictors / offsets
Hello, Does anyone know of an R version of loess that allows more than 4 predictors and/or allows the specification of offsets? For that matter, does anyone know of _any_ version of loess that does either of the things I mention? Thanks, Paul Louisell 650-833-6254 ploua@allstate.com Research Associate (Statistician) Modeling & Data Analytics ARPC [[alternative HTML version deleted]]
2007 Jan 13
1
R on UNIX Sun-Solaris 10.0 vs. S-Plus
This is a general question to people who've installed R on a UNIX sparc-sun-solaris platform: Have you had any issues related to maintaining R on this platform, e.g., installations that didn't work, instances of R crashing and possibly requiring a new installation, etc? I'm especially interested in anyone who has experience with both R and S-Plus on this OS. Is there any reason to
2005 Apr 22
3
as.data.frame: Error in "names<-.default" (PR#7808)
Hello, I found a potential problem in R 2.1.0 (and R 2.0.1) I expect that > tmp <- FUN(x1, x2, x3, x4) > as.data.frame(tmp) is the same as > as.data.frame(FUN(x1, x2, x3, x4)) since the tmp variable in this case is unnecessary. However, below I will demonstrate that under an odd set of conditions, I can correctly perform as.data.frame(tmp), but not as.data.frame(FUN(x1, x2, x3,
2005 Oct 05
8
R crashes for large formulas in lm() (PR#8180)
Full_Name: Hallgeir Grinde Version: 2.1.1 OS: Windows XP Submission from: (NULL) (144.127.1.1) While using lm(y~(x*z*c*...*v)^2) R crashes/closes if the numbers of variables are at least 8.
2008 Mar 31
1
APPLY as alternate to FOR loop?
Dear list, Below I've written a clunky for loop that counts NA's in a row, replacing all with NA if there are more than 3 missing values, or keeping the values if 4 or more are present. This is sample code from a very large dataframe I'm trying to clean up. I know there are many simpler more elegant solutions to this little problem. Would someone be willing to show me how to
2005 Oct 05
1
Ad: Re: R crashes for large formulas in lm() (PR#8180)
Dette er en melding med flere deler i MIME-format. --=_alternative 004613C000257091_= Content-Type: text/plain; charset="US-ASCII" And some more informastion I forgot. R does not crash if I write out the formula: set.seed(123) x1 <- runif(1000) x2 <- runif(1000) x3 <- runif(1000) x4 <- runif(1000) x5 <- runif(1000) x6 <- runif(1000) x7 <- runif(1000) x8 <-
2003 Apr 30
2
make check failures (PR#2884)
R Version 1.7.0 Patched (2003-04-28), built on Solaris 2.8 with gcc 3.0.3. Obtained via rsync -rC rsync.r-project.org::r-patched R I'm not sure how signficant these difference are during development, but after an apparently successful build I got the following discrepancies in make check: make[3]: Entering directory `/export/home/ross/src/R/tests' running code in 'reg-tests-1.R'
2007 Jun 11
1
compiler usage after successful UNIX build
Hi, I believe my question is pretty simple, but I'd like to give you brief background first: I work at a company with UNIX installed on a sparc-sun-solaris platform; the OS version is SunOS 5.9. Several of us who work here have been advocating for the installation of R on this server. The IT security group at my company prefers not to install the gcc compilers on our UNIX production servers;
2003 Oct 05
3
stepAIC problem
Dear R-users I have a probelm running stepAIC in R1.7.1 I wrote a program which used stepAIC as a part of it, and it worked fine while I was using the previous version of R1.7.0. However, I found the program did not work any more. Now, R produces a message which tells "Error in as.data.frame.default(data) : can't coerce function into a data.frame" every time I run the part of
2009 Oct 23
4
How to apply the Wilcoxon test to a hole table at once?
Hi, I have a data set: > Dataset X1 X2 X3 X4 X5 X6 X7 X8 X9 X10 X11 X12 X13 X14 X15 X16 X17 1 user1 m 22 19 28 24 12 18 9 7 4 5 4 7 5 7 9 2 user2 f 25 19 23 18 18 15 6 8 6 6 7 10 7 7 7 3 user3 f 28 21 24 18 15 12 10 6 7 9 5 10 5 9 5 4 user4 f 26 19 26 21 12 18 6 6 5 1 3 8 6 5 6 5 user5 m 21 22 26 18 9 6 4 6 1
2003 Feb 14
1
eigen() error: R Version 1.6.1 on Mac OS X (PR#2550)
Consider this matrix: > sg X1 X2 X3 X4 X5 1 3.240 2.592 2.592 2.592 2.592 2 2.592 3.240 2.592 2.592 2.592 3 2.592 2.592 3.240 2.592 2.592 4 2.592 2.592 2.592 3.240 2.592 5 2.592 2.592 2.592 2.592 3.240 If I compute the eigenvalues of the 'sg' matrix using R Version 1.5.0 (2002-04-29) under Linux (or using Version 1.4.0 (2001-12-19) under Solaris), I obtain: >
2010 Jun 22
1
applying ifelse to dataframe
The following dataframe will illustrate the problem DF<-data.frame(name=rep(1:5,each=2),x1=rep("A",10),x2=seq(10,19,by=1),x3=rep(NA,10),x4=seq(20,29,by=1)) DF$x3[5]<-50 # we have a data frame. we are interested in the columns x2,x3,x4 which contain sparse # values and many NA. DF name x1 x2 x3 x4 1 1 A 10 NA 20 2 1 A 11 NA 21 3 2 A 12 NA 22 4 2 A 13 NA
2009 Jul 14
2
How to provide list as an argument for the data.frame()
Hi R -users, i've a table as describe below. I'm reading the numeric value presented in this table to populate a list. #table #============ #X    A    B    C #x1    2    3    4 #x2    5    7    10 #x4    2    3    5 #============ rawData <- read.table("raw_data.txt",header=T, sep="\t") myList=list() counter=0 for (i in c(1:length(rawData$X))) {     print (i)