Displaying 20 results from an estimated 1451 matches for "occurre".
Did you mean:
occurred
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
In...
2010 Jul 20
4
MySQL index question
...erboard
with indexes. Does MySQL usually use only one index per query and simply
match keys on the results of the indexed first part? For example:
DELETE FROM tokens WHERE 6813946236211560448 <= fnv AND fnv < 6818449835838930944 AND updated_at<''2010-06-20 14:08:55'' AND occurrences=0;
If I understand correctly from the output of:
EXPLAIN SELECT * FROM tokens WHERE 6813946236211560448 <= fnv AND fnv < 6818449835838930944 AND updated_at<''2010-06-20 14:08:55'' AND occurrences=0;
only the index on fnv is used (there are indexes on updated_at and
o...
2009 Sep 20
2
how to count occurrences of string?
Hi everyone,
I have an array with a variable called comments. I wish to count the number
of subjects whose post-experiment comments contain a string x and then cross
tab this with other variables of interest, ex. age. Does anyone have any
suggestions on how to count unique occurrences of a string embedded within a
variable and cross-tab it with other variables?
I've looked through the help files, etc. One method I tried was to use
strsplit to split comments. I can use this with table to count the number of
occurrences of x, but I can't cross tab this with other vari...
2013 Jul 23
2
downloading web content
Hello,
I am trying to use R to download a bunch of .csv files such as:
http://biocache.ala.org.au/ws/occurrences/download?q=Banksia+ericifolia
I have tried the following and neither work:
a<- getURL("
http://biocache.ala.org.au/ws/occurrences/download?q=Banksia+ericifolia")
Error in curlPerform(curl = curl, .opts = opts, .encoding = .encoding) :
embedded nul in string:
and
a<-httpPOS...
2012 Sep 18
2
Formula in a data-frame
Hello all,
I'm new in R, and I have a data-frame like this (dput information below):
Specie Fooditem Occurrence Volume
1 Schizodon vegetal 1 0.05
2 Schizodon sediment 1 0.60
3 Schizodon vegetal 1 0.15
4 Schizodon alga 1 0.05
5 Schizodon sediment 1 0.90
6 Schizodon sediment...
2007 Jun 23
3
Counter-Strike with ALSA sound driver
Hi, i get the next problem when i try with Alsa sound Driver.
I get a sound on a lot of parts...
OS: GNU/Linux Ubuntu 6.10
Linux maximi89-desktop 2.6.17-50-386 #2 Tue Jan 23 16:48:16 UTC 2007 i686
GNU/Linux
00:04.0 Multimedia audio controller: nVidia Corporation CK804 AC'97 Audio
Controller (rev a2)
maximi89@maximi89-desktop:~$ WINEDEBUG=err wine
'/home/maximi89/.wine/drive_c/Archivos
2009 Jun 18
3
predict.glm and predict.gam output
Hi all,
I am currently trying to compare different plant occurrence prediction
maps generated in R and exported into GRASS. One of these maps was
generated from a glm fitted to some data, and subsequently applying this
glm model to a wider region using predict.glm. The outcome here was a
probability of occurrence. The second map I generated using a gam
(mgc...
2008 Aug 07
2
List of "occurrence" matrices
...r2,var3,var4
a,b,b,a
b,b,c,b
c,a,a,a
a,b,c,c
b,a,c,a
c,c,b,b
a,c,a,b
b,c,a,c
c,a,b,c"
DF <- read.table(textConnection(x), header=T, sep=",")
DF
and I would like to sum all the combinations/occurences by a factor
(letter in this case) between variables and produce a list of
"occurrence" matrices. For example in this case the "occurrence"
matrix (first element of list) for factor "a" should look like this
>occulist
$a
var1 var2 var3 var4
var1 x 0 1 1
var2 0 x 1 2
var3 1 1 x 1
var4 1 2 1 x
$b
etc.
because there is two rows where var2 and var4 has...
2012 Dec 27
3
Retrieve indexes of the "first occurrence of numbers" in an effective manner
Hi,
That sounds simple but I cannot think of a really fast way of getting
the following:
c(1,1,2,2,3,3,4,4) would give c(1,3,5,7)
i.e., a function that returns the indexes of the first occurrences of numbers.
Note that numbers may have any order e.g., c(3,4,1,2,1,1,2,3,5), can
be very large, and the vectors are also very large (which prohibits
any loop).
The best I could think of is:
tmp = c(1,1,2,2,3,3,4,4)
u = unique(tmp)
sapply(u, function(x){ which(!is.na(match(tmp,x)))[1]} )
But...
2011 Jun 02
2
Counting occurrences in a moving window
Hi list, based on the following data.frame I would like to create a variable
that indicates the number of occurrences of A in the 3 years prior to the
current year:
DF = data.frame(read.table(textConnection(" A B
8025 1995
8026 1995
8029 1995
8026 1996
8025 1997
8026 1997
8025 1997
8027 1997
8026 1999
8027 1999
8028 1995
8029 1998
8025 1997
8027 1997
8026 1999
8027 1999
8028 1995
8029...
2017 Sep 12
2
comparition of occurrence of multiple variables between two dataframes
Hi everyone, I need your help to solve a problem with occurrence and two dataframes.
I have an excel table of 15200 lines. Each line correspond to a tree analyzed for its structures. I have all the structures in columns (48 structures). The occurrence of these structures has been counted on every tree. For example, the tree 12607 has 3 structures CV11, 1 stru...
2013 Jan 11
4
count combined occurrences of categories
Dear all,
i would like to count the number of times where I have combined occurrences of the categories of 2 variables.
For instance, in the dataframe below, i would like to know how many times each author (au1, au2, au3 represent the first, second, third author) is associated with each of the category of the variable 'nam'. The position of the author does not matter....
2009 Aug 26
0
[LLVMdev] Slow jitter.
...king into adding support for that
> instruction to the fast path.
>From a bytecode file that disassembles into a 240K lines LLVM assembly
file, -fast-isel-verbose outputs ~7600 missed instructions.
There are lots of loads/stores of boolean values (i1), bitcasts and
calls.
store i1 : 1802 occurrences (23%)
load i1* : 1076 occurrences (13%)
call : 2590 occurrences (34%)
bitcast : 1848 occurrences (24%)
Almost all the calls have void return value and use the sret attribute.
I can send the bytecode file to anyone interested.
--
Óscar
2011 Oct 19
2
listing all occurrences in a vector
Dear all,
I have a dataframe with two columns, where NUMBER is the number of occurrences of DEPTH:
DEPTH NUMBER
1 2 1
2 3 2
3 2 3
4 5 1
> a<-data.frame(c(2,3,2,5),c(1,2,3,1))
> colnames(a)=c("DEPTH","NUMBER")
I want a column or a vector where all the DEPTHs are listed: 2, 3, 3, 2, 2, 2, 5 (NUMBER=1 in all cases)...
2013 Feb 06
2
Omitting repeated occurrence in a string
Hello again,
I was looking for some way on How to delete repeated appearance in a
String. Let say I have following string:
Text <- "ahsgdvasgAbcabcsdahj"
Here you see "Abc" appears twice. But I want to keep only 1
occurrence. Therefore I need that:
Text_result <- "ahsgdvasgAbcsdahj" (i.e. the first one).
Can somebody help me if it is possible using some R function?
Thanks and regards,
2007 Jun 04
5
Sorting and getting occurrences of search in hit
Is there any way you could get the number of occurrences of the search
in one hit?
In a result I get the ferret_rank and ferret_score but not how many hits
the search generated in the current record.
I would also like to be able to sort after this when I search.
/mattias
--
Posted via http://www.ruby-forum.com/.
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...
2009 Aug 31
4
Offtopic, HT vs. HH in coin flips
...of coin tosses, "Heads then Tails", or "Heads then Heads"?
##generate 2500 strings of random coin flips
ht <- replicate(2500,
paste(sample(c("H", "T"), 100, replace = TRUE),
collapse = ""))
## find first occurrence of HT
mean(regexpr("HT", ht))+1 #mean of HT position, 4
## find first occurrence of HH
mean(regexpr("HH", ht))+1 #mean of HH position, 6
FYI, this is not homework, I have not been in school in years. I saw a similar problem posed in a blog post on the Revolutions R b...
2012 Jan 24
2
Null models of species co-occurrence
I am currently testing species co-occurrence patterns using null models and
the oecosimu() function within the vegan() package. My issue is that none of
the methods appear to be the ones that I want. The methods listed are r0,
r1, r2, r2dtable, swap, tswap. However, I want to know how to go about
implementing fixed row algorithms, as sugge...
2007 Jul 24
7
Obtaining summary of frequencies of value occurrences for a variable in a multivariate dataset.
Hi all,
If the question below as been answered before I
apologize for the posting.
I would like to get the frequencies of occurrence of
all values in a given variable in a multivariate
dataset. In short for each variable (or field) a
summary of values contained with in a value:frequency
pair, there can be many such pairs for a given
variable. I would like to do the same for several such
variables.
I have used table() but am u...