similar to: plot table with sapply - labeling problems

Displaying 20 results from an estimated 500 matches similar to: "plot table with sapply - labeling problems"

2003 May 30
2
Coefficients: (20 not defined because of singularities)
Hello, I am trying to run a linear regression analysis on my data set. For some reason most variables are removed due to singularities. My linear regression looks this way (I am using only partial data, which is selected by flags): fm<-lm(log(cplex6.time..sec..[flags]) ~ cplex6.cities[flags] + log(1/features.meanOver.frust[flags]) + log(1/features.meanOver.minDist[flags]) + [...]
2010 Dec 06
4
Runif Help: same variable, 3 different parameters
So I am working on an economic model and I need to change the parameters of the runif statement as time goes on. Ex. X <-runif(1:50,0,5) X <-runif(51:100,100,150) X <-runif(100:T, 1,2) Not sure how to go about entering this in to R properly. -- View this message in context: http://r.789695.n4.nabble.com/Runif-Help-same-variable-3-different-parameters-tp3073893p3073893.html Sent from
2011 Oct 27
2
help with paste
Hello gurus, I have some variables, and i am creating combinations for analysis in the end i need these variables to be displayed like "LEPTIN+SAA+PTH". currently i am using loop to perform this. I would appreciate any pointers to do it without the loop. > mols=c("LEPTIN","SAA","PTH","sEGFR") > samples=mols[1:3] > samples [1]
2013 Nov 12
1
Asterisk 1.8.20 crashing
Hi I am experiencing Asterisk Crash. Log got stopped when asterisk crashed. Please help me to identify the reason and fix this issue. Asterisk: 1.8.20 I am using AMI and fastAGI to control the call. Some part of dial plan is also defined in extensions.conf I am experiencing this crash when app_meetme conference functionality is used with more than 3 parties. I faced this issue with
2004 Apr 25
2
asterisk dials wrong numbers ?!?
Hi, I've got an important question: I use an E100P directly connected to PSTN, but it does not *really* work as it should be: exten => 1000,1,Dial(Zap/1/1234) BUT: It does NOT dial "1234" but it says in debug mode: -- Called 1/72976451 Apr 26 00:53:00 WARNING[10251]: chan_zap.c:5979 zt_pri_error: PRI: !! Facility message shorter than 14 bytes -- Channel 1, span 1 got
2007 Jan 07
0
Multiple plots via sapply or lapply?
Hi all, I've got the following problem. I have a vector containing file names. I want to read these files as csv and calculate the density-function for each file (has just one column with data). Then, I'd like to plot all density functions into one window. I did the following to calculate the density data: s <- sapply(filelist, function(x) { if(file.exists(x)) { file <-
2010 Jun 13
2
Scope and sapply
I am puzzled by the scope rules that apply with sapply. If I want to modify a vector with sapply I tried... N <- 10 vec <- vector(mode="numeric", length=N) test <- function(i){ vec[i] <- i } sapply(1:N, test) vec but it not work. How can this be done? Worik [[alternative HTML version deleted]]
2002 Dec 21
1
apply vs. sapply
Hi, sapply((1:NCOL(hermes)),function(x) hist(hermes[,x],main=names(hermes)[x])) .......this works , but i would like use it with apply to generate many plots in one step! #################################################################### >>apply((1:ncol(hermes)),2,function(x) hist(hermes[,x],main=names(hermes)[x])) Error in apply(1:ncol(hermes), 2, function(x) hist(hermes[, x], main =
2012 Aug 02
1
sapply and matrix command
HI, You can also try this: d<-1:25 A<-sample(combn(20:30,2)) B<-sample(combn(20:30,2)) lapply(d,function(x) matrix(c(1,A[x],B[x],1),2,2)) [[1]] [,1] [,2] [1,] 1 23 [2,] 27 1 [[2]] [,1] [,2] [1,] 1 21 [2,] 21 1 [[3]] [,1] [,2] [1,] 1 29 [2,] 23 1 [[4]] [,1] [,2] [1,] 1 25 [2,] 20 1 [[5]] [,1] [,2] [1,] 1 23 [2,]
2007 Aug 02
1
sapply?
I have to compare four different grape varieties proteome in two different years. I don't know what test would be more suitable for my data. I think that an anova two way can be usefull also if someone suggested me to perform a manova. In addiction, I can perform each test on a single protein a time, but I can't loose my whole life carrying out anova (I have more than 1000 protein to
2013 May 26
0
SAPPLY function for COLUMN NULL
colnames(dd) #[1] "col1" "colb" null_vector<- colnames(dd) sapply(null_vector,makeNull,dd) #???? col1 colb #[1,]?? NA??? 4 #[2,]??? 2?? NA #[3,]??? 3??? 2 #[4,]??? 4?? NA #[5,]??? 1??? 4 #[6,]?? NA??? 5 #[7,]??? 1??? 6 A.K. >I am trying to make a column value in a dataframe = NA if there is a 0 or high value in that column. I need to do this process repeatedly, hence
2016 Apr 08
2
identical() versus sapply()
Sorry if this has been answered elsewhere, but I can't find any discussion of it. Wondering why the following situation occurs (duplicated on 3.2.2 CentOS6 and 3.0.1 Win2k, so I don't think it is a bug): > sapply(1, identical, 1) [1] TRUE > sapply(1:2, identical, 1) [1] FALSE FALSE > sapply(1:2, function(i) identical(as.numeric(i),1) ) [1] TRUE FALSE > sapply(1:2,
2016 Apr 09
0
identical() versus sapply()
I highly recommend making friends with the str function. Try str( 1 ) str( 1:2 ) for the clue you need, and then sapply( 1:2, identical, 1L ) -- Sent from my phone. Please excuse my brevity. On April 8, 2016 3:24:31 PM PDT, "Paulson, Ariel" <apa at stowers.org> wrote: >Sorry if this has been answered elsewhere, but I can't find any >discussion of it. >
2001 Nov 06
0
beware of sapply(x, data.class) == "numeric"
This is just a warning/hint to others; package/function writers in particular : The `cluster' package (originally S-plus from Rousseeuw et al) currently has code such as ## check type of input matrix if((!is.data.frame(x) && !is.numeric(x)) || !all(sapply(x, data.class) == "numeric")) stop("x is not a numeric dataframe or matrix.") x <-
2003 Dec 09
1
Maybe some bug on sapply and cbind (PR#5628)
Full_Name: Drouilhet R?my Version: 1.8.1 OS: Linux Submission from: (NULL) (195.221.43.136) Hi!!! Is there some mistake? This is some part of one of my R programs. I created this function to show you the trouble!!! bugTest<-function() { paramnames <- c("mean","sd") param <- list(expression(1),expression(2)) paramtmp <- list(mean=0,sd=1) if(length(param))
2006 Jul 07
1
often unnecessary duplicate in sapply / as.vector
sapply calls lapply as answer <- lapply(as.list(X), FUN, ...) which, when X is a list, causes X to be duplicated unnecessarily. The coercion is unnecessary for other mode(X) because in lapply we have if (!is.list(X)) X <- as.list(X) More generally, perhaps as.vector might not duplicate when mode(x) == mode ? Martin R version 2.4.0 Under development (unstable) (2006-07-05
2008 Aug 07
1
sapply(Date, is.numeric) (PR#12008)
Full_Name: Robert McGehee Version: 2.7.1 OS: Windows Submission from: (NULL) (192.223.226.6) R-developers, The results below seem inconsistent. From the documentation for is.numeric, I expect FALSE in both cases. > x <- data.frame(dt=Sys.Date()) > is.numeric(x$dt) [1] FALSE > sapply(x, is.numeric) dt TRUE ## Yet, sapply seems aware of the Date class > sapply(x, class) dt
2008 Aug 07
0
sapply(Date, is.numeric) (PR#12221)
FYI,=20 I've tried posting the below message twice to the bug tracking system, once by email (below), and the second time 5 days later directly to the bugs.r-project.org website. As far as I can tell, the bug tracking system hasn't picked this up. Also it looks like the latest "incoming" bug is dated 25 May 2008, so perhaps others are having difficulty as well. (cc: r-bugs)
2008 Aug 07
0
sapply(Date, is.numeric) (PR#12239)
>>>>> "RobMcG" == McGehee, Robert <Robert.McGehee at geodecapital.com> >>>>> on Tue, 29 Jul 2008 15:40:37 -0400 writes: RobMcG> FYI, RobMcG> I've tried posting the below message twice to the bug tracking system, [....... r-bugs problems discussed in a separate thread ....] RobMcG> R-developers, RobMcG> The
2002 Jun 26
0
AW: sapply() and Monte Carlo
What about "Rtips" at http://lark.cc.ukans.edu/~pauljohn/R/statsRus.html ? Regards, Heinrich. > -----Urspr?ngliche Nachricht----- > Von: rossini at blindglobe.net [mailto:rossini at blindglobe.net] > Gesendet: Mittwoch, 26. Juni 2002 14:48 > An: r.hankin at auckland.ac.nz > Cc: r-help at stat.math.ethz.ch > Betreff: Re: [R] sapply() and Monte Carlo > > >