search for: variab

Displaying 20 results from an estimated 25 matches for "variab".

Did you mean: varias
2012 Feb 06
2
Reordering levels of a factor when the factor is part of a data frame
...sers,    I have a data frame whose names of columns I don't know a priori, but the user of my code will know them. The user is supposed to save the name of the column that will need some reordering of the levels of the factor later on. The name of the column will be saved in an object called: variab the data frame is called df. If I try to the do following: df[variab]<-factor(df[variab], levels=c("A2B","B31","C33")) it won't work because df[variab] is a data frame. The reason for reordering the levels of the factor is because once that variable is plot...
2009 Jul 01
2
getOptions("max.print") in R
I am typing the following on the command prompt: >variab = read.csv(file.choose(), header=T) >variab It lists 900,000 ( this is the total number of observations in "variab" ) minus 797124 observations and prompts the following message [ reached getOption("max.print") -- omitted 797124 entries ]] Is there a way to see the entire...
2009 Feb 20
1
Using "rep", but don't know what to put after each =
Hello I have one DF (detheleny1periode), with some variables that mathes, in some way, variables in another DF (y2). The DF named detheleny1periode look like this (i have not included alle variables): CHR_NR diffdatoperiode 11377 29 11377 59 11377 78 with many different CHR_NR's. And the other D...
2005 Jun 29
0
Selecting rows regarding the frequency of a factor variab le.
See if this does what you want: > dat <- data.frame(f=factor(sample(letters[1:10], 100, replace=TRUE)), x=runif(100)) > str(dat) `data.frame': 100 obs. of 2 variables: $ f: Factor w/ 10 levels "a","b","c","d",..: 2 5 10 9 10 3 9 8 3 1 ... $ x: num 0.9162 0.0481 0.3048 0.0938 0.8599 ... > g <- names(which(table(dat$f) > 11)) > g [1] "c" "j" > dat[dat$f %in% g,] f x 3 j 0...
2009 May 20
1
Comparing spatial distributions - permutation test implementation
...ot;) } } else { dat = data.frame(x, y, var1, var2) } # Normalize abundances dat$var1 = dat$var1/sum(dat$var1) dat$var2 = dat$var2/sum(dat$var2) # For each point (each line of dat) # compute the squared difference in gammas from each origin meanSqDiff = apply(dat, 1, function(d, coord, variab) { north = (coord$x>=d[1]) east = (coord$y>=d[2]) south = (coord$x<=d[1]) west = (coord$y<=d[2]) return( mean( c( (diff(sapply(variab[(north & east),], sum)))^2, (diff(sapply(variab[(south & east),], sum)))^2, (diff(sapply(variab[(south & west),], sum)))^2...
2001 Mar 14
0
segmentation fault of unknown cause (PR#877)
...########### ############ strange.R ############### ###################################################### # calling R (v1.2.1 or v1.2.2) without options and # then `source("strange.R")' causes a segmentation fault # Note that before failure MLEtarget is called with # variab=c(1.0501141215486309848e-267, 1.0000000000000000208e-03) # a value that is outside the given bounds, see lb and optim below # (This is something that appears quite frequently, independently (?) # of the segmentation fault I'm interested here!) # The segmentation fault does not appear if R is c...
2006 Sep 25
2
Splitting a character variable into a numeric one and a character one?
Hi All, I have a data with a variable like this: Column 1 "123abc" "12cd34" "1e23" ... Now I want to do an operation that can split it into two variables: Column 1 Column 2 Column 3 "123abc" 123 "abc" "12cd34" 12...
2009 Oct 27
3
Sobre funciones
Un saludo cordial para cada uno. Les agradecería una ayuda con lo siguiente: Debo trabajar con una función de varias variabes, digamos f(x,y,z). ¿Cómo definir la función para usarla luego con ''integrate'' de forma tal que pueda fijar dos valores, ''y'' y ''z'', por ejemplo, e indicar los límites de integración para la variable que queda libre? Ejemplo. La intención es ca...
2013 Jun 10
1
DTLSv1_method on NetBSD
This is the second issue I found while trying to install Asterisk on a NetBSD box. I can't load the rtp module because HAVE_OPENSSL_SRTP seems to be set. Is there some way to simply force this variab;e to be unset from a configuration variable? -- D'Arcy J.M. Cain System Administrator, Vex.Net http://www.Vex.Net/ IM:darcy at Vex.Net Voip: sip:darcy at Vex.Net
2010 Sep 15
3
Skip Busy Agents/Channels from Queue
Is there a way skip / ignore the member whose status is busy in the Queue. I have two channel member in queue and i have set the peer limit 2 for these members. I want to skip those member who are currently on the call (answered to calls) and now their status is busy, if Queue see the busy status caller will not enter in the Queue and go to the next priority. [test-queue] strategy = rrmemory
2004 Sep 21
3
how to take this experiment with R?
How about: x <- data.frame(matrix(rnorm(1550),c(50,31))) model <- step(lm(x[,1] ~ as.matrix(x[,2:31]))) --Matt -----Original Message----- From: r-help-bounces at stat.math.ethz.ch [mailto:r-help-bounces at stat.math.ethz.ch]On Behalf Of rongguiwong Sent: Monday, September 20, 2004 20:52 PM To: r-help at stat.math.ethz.ch Subject: [R] how to take this experiment with R? This message uses
2007 Sep 07
2
R first.id last.id function error
Hi R users, I have a test dataframe ("file1," shown below) for which I am trying to create a flag for the first and last ID record (equivalent to SAS first.id and last.id variables. Dump of file1: > file1 id rx week dv1 1 1 1 1 1 2 1 1 2 1 3 1 1 3 2 4 2 1 1 3 5 2 1 2 4 6 2 1 3 1 7 3 1 1 2 8 3 1 2 3 9 3 1 3 4 10 4 1 1 2 11 4 1 2 6 12 4 1 3 5 13 5 2 1 7 14 5 2 2...
2013 May 11
1
prediction in a loop with only one sample
...edit.Limit.Ratio.1, Dept.Ratio.1, Numb.Dependents.1) X.2[i] <- cbind(NTimes.60DaysLate.2, Credit.Limit.Ratio.2, Dept.Ratio.2, Numb.Dependents.2) } However, I get error massages because R cannot read 1+[i] ... Do you have any idea how I can create 500 different pairs from my one sample where one variabe contains 300 observation and the other the rest? Thank you very much in advance. -- View this message in context: http://r.789695.n4.nabble.com/prediction-in-a-loop-with-only-one-sample-tp4666819.html Sent from the R help mailing list archive at Nabble.com.
2012 Jul 27
2
producing a graph with glm poisson distributed respons count data and categorical independant variables
...C 2 7 119 p2 A 2 8 123 p2 D 1 Thanks, Babs -- View this message in context: http://r.789695.n4.nabble.com/producing-a-graph-with-glm-poisson-distributed-respons-count-data-and-categorical-independant-variabs-tp4638110.html Sent from the R help mailing list archive at Nabble.com.
2012 Dec 18
2
error en un modelo binomial
Hola, estoy heciendo unos analisis viendo los factores que influyen la depredación de pollos. Como la variabe es depredación (SI/NO) pongo un modelo binomial con varios factores. Al final del analiss me sale esto error: "Warning message: glm.fit: fitted probabilities numerically 0 or 1 occurred" ¿que significa, y sobre todo como se resuelve? Muchas gracias Gian [[alternative HTML version delet...
2007 May 06
2
render :action "call method first?"
Hi, I know when I call: render :controller => ''some'', :action => ''thing'' It doesn''t call the method ''thing'' before render the template ''thing.rhtml'', but I need some instance variable which are in the ''thing'' method, how can I let it call the method ''thing'' and then render the template? Regards, Jamal -- Posted via http://www.ruby-forum.com/. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are...
2012 Oct 12
1
/var/run/dovecot/auth-userdb failed
...protocol lda { mail_plugins = $mail_plugins sieve info_log_path = /var/log/dovecot-lda.log } managesieve_notify_capability = mailto managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variab les body enotify environment mailbox date plugin { sieve_dir = /home/vmail/%d/%u/sieve sieve = /home/vmail/%d/%u/sieve/.dovecot.sieve } What did I do wrong? -- View this message in context: http://dovecot.2317879.n4.nabble.com/var-run-dovecot-auth-userdb-failed-tp38093.html Sent from...
2009 Feb 08
0
Modifying forestplot function in rmeta
...ted to set zero as the axis start point). #xrange <- c(max(min(lower, na.rm = TRUE), clip[1]), min(max(upper, na.rm = TRUE), clip[2])) #new line xrange <- c(xlow,xhigh) Now I am trying to modify the text font size for the elements in labeltext and also trying to remove the variability in OR box size, which is some function of the width of the lower and upper confidence interval boundaries or the OR. I am a reasonable programer (other than with R), but have not been able to decipher what I should be modifying. Any suggestions will be appreciated. Thanks, Gerard Smits...
2012 Nov 18
3
users mail folders have to be subscribed
...generic x86_64 Ubuntu 12.10 auth_verbose = yes mail_debug = yes mail_location = maildir:~/Maildir managesieve_notify_capability = mailto managesieve_sieve_capability = fileinto reject envelope encoded-character vacation s ubaddress comparator-i;ascii-numeric relational regex imap4flags copy include variab les body enotify environment mailbox date ihave namespace inbox { inbox = yes list = yes location = prefix = separator = . type = private } passdb { driver = pam } plugin { sieve = ~/.dovecot.sieve sieve_dir = ~/sieve } postmaster_address = postmaster at localhost protocols = imap...
2013 Jun 15
1
access shared mailbox results in error
...hared/%d/%n mail_plugins = quota zlib acl expire virtual mail_uid = 8 mailbox_list_index = yes managesieve_notify_capability = mailto managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variab les body enotify environment mailbox date ihave imapflags notify mdbox_preallocate_space = yes mdbox_rotate_size = 10 M namespace { list = children location = mdbox:/srv/vmail/mail/%%d/%%n:INDEXPVT=/srv/vmail/indexes/private/%d/%n/shared/%%u:INDEX=/srv/vmail/indexes/shared/%d/%n/shared/%%u...