Displaying 20 results from an estimated 1000 matches similar to: "NEWBIE QUESTION - recode in Ruby"
2012 Oct 14
3
Pivot Table "like" structure
HI Team,
I am currently working on problem and stumped on "for" loop.
Data:
structure(list(Coutry = structure(c(3L, 3L, 3L, 3L, 2L, 2L, 1L,
1L), .Label = c("J", "M", "U"), class = "factor"), State = structure(c(1L,
1L, 4L, 2L, 5L, 5L, 3L, 6L), .Label = c("A", "C", "K", "O", "S",
2003 Sep 02
3
How to avoid automatic coercion to factor?
I have a function that manipulates a list of numeric and character
components of equal length and wants to return a data.frame.
EG,
f<-function() {
a<-list(Int1=1:5,Char1=letters[1:5],Char2=letters[6:10])
b<-data.frame(a)
}
How can I get the columns Char1, Char2, (...CharN) returned coerced to
character and not factor?
It appears that I could coerce individual columns by
2012 Nov 26
1
error in plot(table(c('a','a')))
Hi all,
there appears to be something strange with the plotting of tables of 1
dimension; if I attempt to make a plot of a table of characters with only
1 value I get an error (Error in xy.coords(x, y, xlabel, ylabel, log) :
'x' and 'y' lengths differ). With more than one value I don't get
errors, neither with integers (even if only 1 value):
tbl.char1 <-
2012 Nov 26
1
error in plot(table(c('a','a')))
Hi all,
there appears to be something strange with the plotting of tables of 1
dimension; if I attempt to make a plot of a table of characters with only
1 value I get an error (Error in xy.coords(x, y, xlabel, ylabel, log) :
'x' and 'y' lengths differ). With more than one value I don't get
errors, neither with integers (even if only 1 value):
tbl.char1 <-
2008 May 15
2
Adding columns to dataframe
Hi,
I have a dataframe SDF1 that looks like this:
Char1 Char2 Char 3 W.2007.02 W.2007.09 W.2007.16 W.2008.13
A C1 F1 F2 F3
A C2
F4
B C3 F5
F6
I have another dataframe SDF2 with 163 cols that has the following column
names
Char1 Char2 Char 3 W.2007.02 W.2007.03 W.2007.04
2002 Aug 14
0
re: using mac-addr for selecting configfile now working
Hi everybody
hacking in the 200-pre4 i found everything i needed, so i gave it a try ...
and it works! But dont blame for the code, its just quick and dirty!
--- ../syslinux-2.00-pre4/pxelinux.asm Sat Jun 15 07:25:51 2002
+++ ./pxelinux.asm Wed Aug 14 10:05:00 2002
@@ -17,6 +17,11 @@
; version; incorporated herein by reference.
;
;
2009 Apr 03
1
Discriminant Analysis - Obtaining Classification Functions
Hello!
I need some help with the linear discriminant analysis in R.
I have some plant samples (divided into several groups) on which I
measured a few quantitative characteristics. Now, I need to infer some
classification rules usable for identifying new samples.
I have used the function lda from the MASS library in a usual fashion:
lda.1 <- lda(groups~char1+char2+char3, data=xxx)
I'd
2003 Mar 07
0
[Bug 62] New: I patched the iptables-restore and liblptulog for string included "," "
https://bugzilla.netfilter.org/cgi-bin/bugzilla/show_bug.cgi?id=62
Summary: I patched the iptables-restore and liblptulog for string
included "," "
Product: iptables userspace
Version: 1.2.7a
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P2
2011 Aug 04
1
[LLVMdev] Multiple one-line bugs in LLVM
On Aug 4, 2011, at 9:03 AM, Duncan Sands wrote:
>>
>> lib/MC/MCParser/AsmLexer.cpp:149
>> while (CurChar != '\n'&& CurChar != '\n'&& CurChar != EOF)
>>
>> There are identical sub-expressions to the left and to the right of the '&&'
>> operator: CurChar != '\n'&& CurChar != '\n'. The
2011 Aug 04
0
[LLVMdev] Multiple one-line bugs in LLVM
Hi Lockal S,
> ----
>
> lib/Target/X86/X86ISelLowering.cpp:11689
> !DAG.isKnownNeverZero(LHS)&& !DAG.isKnownNeverZero(LHS))
>
> Note that there are identical subexpressions '!DAG.isKnownNeverZero (LHS)' to
> the left and to the right of the '&&' operator.
> The second subexpression should probably be !DAG.isKnownNeverZero(RHS)).
a patch
2007 Dec 15
2
[LLVMdev] fix warning with newer g++ compilers
Ok, here is the patch again... I also included fixes for the bits
that originally gave my mailer fits...
Two votes for orange, so I went with orange...
Doing diffs in .:
--- ./lib/AsmParser/LLLexer.cpp.~1~ 2007-12-14 22:09:06.000000000 -0800
+++ ./lib/AsmParser/LLLexer.cpp 2007-12-15 13:02:47.000000000 -0800
@@ -54,7 +54,7 @@ static uint64_t HexIntToVal(const char *
Result +=
2011 Aug 04
3
[LLVMdev] Multiple one-line bugs in LLVM
Hi. There are few one-line bugs Andrey Karpov have found with static analisys.
He wrote a big article in russian on http://habrahabr.ru/blogs/compilers/125626/
for advertising purposes of static analyzer for Visual Studio his company
developed.
Most of the problems are easy to fix, so I list them in here for trunk version.
Also few problems in clang code were found, I don't list them in here.
2011 May 08
3
%in% operator - NOT IN
Hello everyone,
I am attempting to use the %in% operator with the ! to produce a NOT IN type
of operation. Why does this not work? Suggestions?
> data2[data1$char1 %in% c("string1","string2"),1]<-min(data1$x1)
> data2[data1$char1 ! %in% c("string1","string2"),1]<-max(data1$x1)+1000
Error: unexpected '!' in "data2[data1$char1
2008 Dec 19
1
How to write a Surv object to a csv-file?
Dear All,
trying to write a data.frame, containing Surv objects to a csv-file I get
"Error in dimnames(X) <- list(dn[[1L]], unlist(collabs, use.names = FALSE)) :
length of 'dimnames' [2] not equal to array extent".
See example below.
May be, I overlooked something, but I expected
that also data.frames containing Surv objects may be written to csv files.
Is there a
2012 Oct 15
1
How to read XML in UTF-8 format?
How to read xml in UTF-8 format. I have one XML file but i want to read it
in UTF-8 format. How this is possible?
<barplot>
<cd>
<name>?</name>
<value1>3</value1>
<value2>2.9</value2>
</cd>
<cd>
<name>?</name>
2023 Mar 02
1
transform.data.frame() ignores unnamed arguments when no named argument is provided
On Thu, Mar 2, 2023 at 2:02?PM Antoine Fabri <antoine.fabri at gmail.com>
wrote:
> Thanks and good point about unspecified behavior. The way it behaves now
> (when it doesn't ignore) is more consistent with data.frame() though so I
> prefer that to a "warn and ignore" behaviour:
>
> data.frame(a = 1, b = 2, 3)
>
> #> a b X3
>
> #> 1 1 2 3
2010 Sep 07
3
Help with decimal points
Hi
I have found a little problem with an R script. I am trying to merge some data
and am finding something unusual going on. As shown below I am trying to
assign (MatchedValues[Value2,Value]) to (ClusteredData[k,Value]) which are two
separate dataframes.
1) By the following command you can see that the value im transferring
is 481844.03
> MatchedValues[Value2,Value]
[1] 481844.03
6618
2008 May 02
2
Accesing data frame members from within functions
I am writing a simple R program to execute a t-test repeatedly on data
contained in a data frame. My data looks like this:
Category Value1 Value2
1 .5 .8
1 .3 .9
. . . . . . . . .
2
2019 Oct 09
0
Re: [libvirt] Add support for vhost-user-scsi-pci/vhost-user-blk-pci
Sorry for the late reply, and thanks Jano for pointing out elsewhere
that this didn't receive a response.
On 8/12/19 5:56 AM, Li Feng wrote:
> Hi Guys,
>
> And I want to add the vhost-user-scsi-pci/vhost-user-blk-pci support
> for libvirt.
>
> The usage in qemu like this:
>
> Vhost-SCSI
> -chardev socket,id=char0,path=/var/tmp/vhost.0
> -device
2011 Jul 14
2
cbind in aggregate formula - based on an existing object (vector)
Hello!
I am aggregating using a formula in aggregate - of the type:
aggregate(cbind(var1,var2,var3)~factor1+factor2,sum,data=mydata)
However, I actually have an object (vector of my variables to be aggregated):
myvars<-c("var1","var2","var3")
I'd like my aggregate formula (its "cbind" part) to be able to use my
"myvars" object. Is it