Displaying 20 results from an estimated 20 matches for "elemnt".
Did you mean:
element
2006 Jun 25
0
rubyful_soup replace element
Hi,
well, how do i replace an element with rubyful_soup ??
I tried
soup = BeautifulSoup.new(input)
elemnt = soup.find(''quote'')
elemnt = tag(''<div></div>'')
elemnt = ''<div></div>''
elemnt.replaceWith(''<div></div>'')
elemnt = BeautifulSoup.new(''<div></div>'')
elemnt = tag(...
2011 Jan 06
1
Find and remove elemnts of a data frame
Dear all,
I have a data frame that is created like that
data.frame(x=CRX[-1],y=CRY[-1],z=CRagent[[1]]$sr)
the output looks like
45 116 162 -30.89105988567164
46 128 79 -42.66296679571184
47 180 195 -30.45626175641315
48 114 83 -45.26843476475688
49 118 73 -46.85389245327003
How can I select only the rows that their third column is higher that -45?
This will return the following
116 162
2013 Mar 26
2
Counting various elemnts in a vactor
Dear R forum
I have a vector say as given below
df = c("F", "C", "F", "B", "D", "A", "D", "D", "A", "F", "D", "F", "B", "C")
I need to find
(1) how many times each element occurs? e.g. in above vector F occurs 4 times, C occurs 2 times etc.
(2)
2008 Jul 31
1
combinations with replications
Dear all,
Is there a way to compute and list all combinations with replication of two
elements in sets of 8 elemnts?
For example, I've two elements, 0 and 1, and I would to get all possible
combinations with replication such as, for example, 00000000, 00000001,
00000010, and so on. They are 2^8 and it's very hard to list handly!!
Thank you
Marina
--
View this message in context: http://www.nabble.com/c...
2018 Jul 19
5
[PATCH] v2v: ovf: add firmware and machine type element
Add oVirt specific elemnt to OVF. It represents the combination of
machine type (i440fx/q35) and firmware (BIOS/UEFI).
Signed-off-by: Tomáš Golembiovský <tgolembi@redhat.com>
---
v2v/create_ovf.ml | 20 +++++++++++++++++++-
v2v/create_ovf.mli | 2 +-
v2v/output_rhv.ml...
2011 Oct 01
1
[LLVMdev] Tablegen: RegisterInfoEmitter.cpp
Hi,
I understand the idea behind compare_numeric() is to compare strings containing digits in a special way: Do a normal string-compare up to the point where both string elemnts are numerical. Find then an outcome based on the number of consecutive digits in the strings while disregarding the value of the digits, eg a12b < a123.
I guess then this order should hold: a12 == a22 < a1b, for these strings.
Looking at StringRef::compare_numeric(StringRef RHS), the probl...
2017 Nov 06
2
For each entry type in column?
...weight = c(12.3, 6.8, 10.5, NA, "5.5"))
myDF$type # ... is a vector of factors
for(type in myDF$type) {
print(type)
}
# or (less explicit in the code and will break if the order of columns
# ever changes):
for(type in myDF[ , 1]) {
print(type)
}
# In a matrix, all elemnts have to be of the same type. Let's make a
# matrix of characters:
myMat <- matrix(cbind(as.character(myDF$type),
c("red", "green", "red", "red", "green")),
ncol = 2)
for(type in myMat[ , 1]) {
print...
2017 Nov 06
0
For each entry type in column?
...>
> myDF$type # ... is a vector of factors
>
> for(type in myDF$type) {
> print(type)
> }
>
> # or (less explicit in the code and will break if the order of columns
> # ever changes):
> for(type in myDF[ , 1]) {
> print(type)
> }
>
> # In a matrix, all elemnts have to be of the same type. Let's make a
> # matrix of characters:
>
> myMat <- matrix(cbind(as.character(myDF$type),
> c("red", "green", "red", "red", "green")),
> ncol = 2)
>
> fo...
2018 Jul 19
0
Re: [PATCH] v2v: ovf: add firmware and machine type element
On Thursday, 19 July 2018 15:51:04 CEST Tomáš Golembiovský wrote:
> Add oVirt specific elemnt to OVF. It represents the combination of
> machine type (i440fx/q35) and firmware (BIOS/UEFI).
Other than adding a new element in the OVF, this also enables the
conversion of UEFI guests to oVirt. It is tested? Does it require other
changes?
I'd split the addition of <BiosType> to th...
2008 May 07
1
Aling elmentos into Windows with TK
Hello!!
I would like create a window that has diferent element as:
http://bioinf.wehi.edu.au/~wettenhall/RTclTkExamples/checkboxes.html
http://bioinf.wehi.edu.au/~wettenhall/RTclTkExamples/radiobuttons.html
I know as make it, but I don?t know as I could (align the diferent elemnts
to left, right, top, bottom) or (put in a coordinates into windows).
If anybody know as I could make it, I would like you say me.
Thank you very much, Luismi
A greetings
--
View this message in context: http://www.nabble.com/Aling-elmentos-into-Windows-with-TK-tp17103275p17103275.html
Sent from...
2011 Sep 30
0
[LLVMdev] Tablegen: RegisterInfoEmitter.cpp
On Sep 30, 2011, at 8:29 AM, Jonas Paulsson wrote:
> The conclusion is that the StringRef::compare_numeric() is not deterministic
Thanks for tracking this down.
I believe we have a bug in compare_numeric() causing it to be non-transitive sometimes. It is supposed to provide a total ordering of strings. Can you find the bug?
/jakob
-------------- next part --------------
An HTML attachment
2011 May 18
5
Help needed troubleshooting page fault in wine
I'm trying to troubleshoot a game crash under Wine. Here's a snippet from the log file created under Wine 1.3.20:
Code:
wine: Unhandled page fault on read access to 0x00000000 at address 0x44a179 (thread 0022), starting debugger...
Unhandled exception: page fault on read access to 0x00000000 in 32-bit code (0x0044a179).
Register dump:
CS:0023 SS:002b DS:002b ES:002b FS:0063 GS:006b
2011 Sep 30
3
[LLVMdev] Tablegen: RegisterInfoEmitter.cpp
Hi,
I just bumped into a bug in this code. The problem was as follows:
I have defined a set of registers with rather similar names including digits.
The code section at
RegisterInfoEmitter::run(){
...
// Process sub-register sets.
runs and fills the RegisterAliases map.
then,
...
for (unsigned i = 0, e = Regs.size(); i != e; ++i) {
RegNo[Regs[i].TheDef] = i;
NumAliases +=
2017 Nov 06
0
For each entry type in column?
Hello,
If you want to loop through the columns of a data.frame you can do
for(i in names(df)){
[code]
}
Another way would be
lapply(names(df), function(somecol) class(df[[somecol]]))
where class(df[[somecol]]) is just an example, you would use whatever
fits your needs.
When you say that the column in question holds "levels" do you mean it's
a factor? (factors are R's
2010 Nov 12
3
Partition of a set
Hi
I am new on this forum. I am searching for a function in R which provides
all partitions of a set, say for the set
{1,2,3}
you get
{{1,2,3}}
{1,{2,3}}
{2,{1,3}}
{3,{1,2}}
{{1},{2},{3}}
. The number of partitions of a set is given by Bellsche`s number. The
number of possibilities of length (this is the number of subsets included in
the partition) of the partition is given by the partition
2006 Mar 03
7
Best Practices question regarding views & controllers
Hi List!
I''m reading the Agile book, as many online articles as I can, but
there''s still some things that are just too hard to answer for yourself.
In building my application, I often find myself putting code into my
views of which I am not quite certain it belongs there.
Where do you usually draw the line? Is it okay to, say, loop through an
array of hashes that represents
2018 Oct 10
4
[PATCH v2 0/2] v2v: machine type for oVirt
changes in v2:
- split patch in two
- changed as per suggestions
Tomáš Golembiovský (2):
v2v: ovf: add firmware and machine type element
v2v: enable UEFI for oVirt/RHV outputs
v2v/create_ovf.ml | 12 +++++++++++-
v2v/create_ovf.mli | 2 +-
v2v/output_rhv.ml | 6 ++----
v2v/output_rhv_upload.ml | 4 ++--
2011 Jan 10
2
Calculating Portfolio Standard deviation
Dear R helpers
I have following data
stocks <- c("ABC", "DEF", "GHI", "JKL")
prices_df <- data.frame(ABC = c(17,24,15,22,16,22,17,22,15,19),
DEF = c(22,28,20,20,28,26,29,18,24,21),
GHI = c(32,27,32,36,37,37,34,23,25,32),
2010 Jul 12
6
in continuation with the earlier R puzzle
When I just run a for loop it works. But if I am going to run a for loop
every time for large vectors I might as well use C or any other language.
The reason R is powerful is becasue it can handle large vectors without each
element being manipulated? Please let me know where I am wrong.
for(i in 1:length(news1o)){
+ if(news1o[i]>s2o[i])
+ s[i]<-1
+ else
+ s[i]<--1
+ }
--
2017 Nov 06
4
For each entry type in column?
It?s sometimes faster to ask from someone who has already learnt the syntax.
In this case one has to do e.g.
names(data$somecol)
To get the collection and then iteration through it is almost like in Python:
for(i in names(data$somecol)) {
# do something
}
> Bert Gunter <bgunter.4567 at gmail.com> kirjoitti 6.11.2017 kello 19.55:
>
> Time to go through a tutorial or two! --