similar to: Omitting repeated occurrence in a string

Displaying 20 results from an estimated 300 matches similar to: "Omitting repeated occurrence in a string"

2008 May 07
6
help with the unique function
Hi, The unique function is easy to understand and use. Beyond that, I want to get also the frequency of repetition of each individual row in a data frame Let me explain with an example : x<-data.frame(a=c(1,2,3,1,2),b=c(2,3,4,2,3),c=c(10,20,30,10,20)) xu<-unique(x) We have, > x ? a b? c 1 1 2 10 2 2 3 20 3 3 4 30 4 1 2 10 5 2 3 20 > xu ? a b? c 1 1 2 10 2 2 3 20 3 3 4 30 I want to get
2004 May 09
1
need help: regression models
hello, I am working with some data which i would like to find the best fit model for them. First, this data are in a matrix. Each of the columns are treatments and the raws are repetions for the each tratment. So, i've already maden one chart with all the boxplot graphic, for each treatment. Now, i need to find the best fit model for them, i know that exponetial or log model would be perfect
2010 Jul 01
2
Sweave function
Dear list, I have a question about the interaction between R code and Latex language trough the Sweave function in the package "utils". What I'm trying to do is to write a report. Contrary to the examples shown in the Sweave Manual in which table already constructed by R are "exported" on Latex files, what I would like to do is to build a table in which I combine text and
2005 May 16
1
Omitting NAs in aggregate.ts()
I have a time series vector (not necessarily ts class) that has NAs in it. How can I omit the NAs when using aggregate.ts() to compute a function on each window? If there is at least one non-NA value in each window, I'd like to proceed with evaluating the function; otherwise, I would like NA returned. I'm not wedded to aggregate.ts and don't need ts class if there is another fast,
2006 Apr 24
1
omitting coefficients in summary.lm()
Hi, I'm running a regression using lm(), in which one of the right-hand side variables is factor with many levels (say, 80). I am not intersted in the estimates of the resulting dummies, but I have to include them in my regression equation. So, I don't want the estimates associated with theses dummies to be printed by summary.lm( ). Is there an easy way to do this? Thank you, Dimitri
2024 Feb 19
1
Samba omitting the user group setting, might be a bug
Mandi! Fyodor Kravchenko via samba In chel di` si favelave... > Thank you, nesting is set to 1. Is there anything else we could check? AFAIK, no. Next step is use a privileged container, but really in this vase better using a VM. -- Berlusconi: "Da oggi sono a dieta" Il Paese lo ? gi? da 4 anni (Il Ruggito del Coniglio)
2010 Feb 19
3
Omitting members of a sequence
Hello, this is just a point of curiosity with me. I want a sequence of numbers from 64 to 70, omitting the 2nd and 4th numbers. I can do it these ways: > seq(64, 70)[-c(2, 4)] [1] 64 66 68 69 70 > foo <- 64:70 > foo[-c(2, 4)] [1] 64 66 68 69 70 But how come this doesn't work? > 64:70[-c(2, 4)] [1] 64 65 66 67 68 69 70 Just wondering. -- Stuart Luppescu -=- slu .at.
2005 Jan 17
2
Omitting constant in ols() from Design
Hi! I need to run ols regressions with Huber-White sandwich estimators and the correponding standard errors, without an intercept. What I'm trying to do is create an ols object and then use the robcov() function, on the order of: f <- ols(depvar ~ ind1 + ind2, x=TRUE) robcov(f) However, when I go f <- ols(depvar ~ ind1 + ind2 -1, x=TRUE) I get the following error: Error in
2018 Jun 06
2
AMI manager logins - omitting from logging output?
Hi. Is there any way to eliminate AMI manager logins from the logging output (without just turning the log level down and thereby losing lots of other stuff as well)? I'm running Asterisk 13.14.1 as a backend service to LVS/IPVS, and using the AMI login as the "service alive" check to see which backend servers are available to take new commands. This results in lots of [Jun
2003 Sep 23
1
Omitting blank lines with read.table
Say we have a tab delimited file called bug.txt Part Rep Cage Hb pupae 1 1 S 32 1 M 34 L 42 2 S 36 M 28 L 36 read.delim("bug.txt") Part Rep Cage Hb.pupae 1 1 1 S 32 2 NA 1 M 34 3 NA NA L 42 4 NA NA NA 5 NA NA NA 6 NA 2 S 36 7 NA NA M 28 8 NA NA L 36 >
2024 Feb 06
3
Samba omitting the user group setting, might be a bug
Hello Marco, On 05.02.2024 16:44, Marco Gaiarin wrote: > Mandi! Fyodor Kravchenko via samba > In chel di` si favelave... > >> Have to add about the environment - this is an unprivileged TurnKey >> Fileserver Linux container run under Proxmox. The extensive googling for >> the problem suggests Samba will not work in such environment because of >> ACL and such,
2011 Jan 14
9
Selecting the first occurrence of a value after an occurrence of a different value
Hello everyone, I am currently working with some data where I need to select the first occurrence of a value after the occurrence of another value. The data has two columns, one with a time and one with occurence of certain events. The column of data I want to select from looks like this (and each of these events have a corresponding time in another column). Stat71 OutMag FirstResp InMag
2009 Mar 10
1
Odd occurrence
Greetings listers, I am running Asterisk 1.4.21.2 on Suse 11.0 on a Dual Processor Dell Poweredge 1650. I recently attempted to update the BIOS and now have this happen: When the machine starts up, Asterisk runs fine. When I do a large wget or scp, the local SIP to SIP quality goes to heck in a handbasket. The only resolution I've found so far is to completely
2009 Jun 19
1
Alternate ways of finding number of occurrence of an element in a vector.
Hi, I have a vector "v" and would like to find the number of occurrence of element "x" in the same. Is there a way other than, sum(as.integer(v==x)) or length(which(x==v)) to do the this. I have a huge file to process and do this. Both the above described methods are pretty slow while dealing with a large vector. Please have your comments. Praveen
2016 Mar 31
0
Filtering based on the occurrence
Hi Jim,? Thank you tons for your help. The code worked perfectly :)?Best,Farnoosh On Wednesday, March 30, 2016 1:13 AM, Jim Lemon <drjimlemon at gmail.com> wrote: Hi Farnoosh, Despite my deep suspicion that this answer will solve a useless problem, try this: last_subject<-0 keep_deps<-c("B","D","F") keep_rows<-NULL for(rowindex in
2009 Mar 11
1
update on Odd occurrence
Hi gang, I upgraded the E1000 driver on my machine from 7.3.20-k2-NAPI to 8.0.9-NAPI. This unfortunately did nothing to resolve the problem. The best workarounds I've come up with are: 1. use -l on scp and ftp 2. install wondershaper QOS and limit throughput to 32K. These are workarounds, but I'd really like a solution. -------------- next part -------------- An HTML
2010 Dec 30
1
recursively count the words occurrence in the text files
I just can't google for it: I'm searching for a "bash" "one liner" (awk, perl, or anything) for this: there are text files, in several directories: mkdir one mkdir two mkdir three echo "word1 word2 word3" > one/asf.txt echo "word2 word4, word5" > one/asfcxv saf.txt echo "word1. word2" > one/dsgsdg.txt echo "word6,
2006 Sep 07
0
Strange occurrence
Hi Dick, I suspect the Linux systems are running a nightly or weekly cron job they weren't running before causing an excessive load on CPU or network which caused the clients to disconnect. The nightly cron jobs are generally located in /etc/cron.daily and run a 4am!. Check for any changes in the nightly cron jobs. Hope this helps. Regards, KJ Dick Trump schreef: > I had something
2006 Sep 07
0
Strange occurrence
Hi Dick, See my comments below: Dick Trump schreef: > Maarten makes some poses some valid questions: > >> Did you check the Linux machines for system and/or update logs at the >> given time? >> > > I'm afraid I don't know all the places to look for logs that might tell me something. My script that keeps MPG123 running keeps a log of all reboots
2010 Apr 05
1
Co-occurrence
Hello together! I was searching through and different R sites, however I did not find any useful site for my problem. Is there any co-occurrence program in R which could work with text strings? Thanks for any help or hint, best regards, Georg