Displaying 20 results from an estimated 25 matches for "bdata".
Did you mean:
data
2011 Aug 26
1
R.oo data members / inheritance
...A;
extend(Object(), "ClassA",
.size = A,
.x=x
)
})
setMethodS3("getSize", "ClassA", function(this,...) {
this$.size;
})
setMethodS3("getX", "ClassA", function(this,...) {
this$.x;
})
setConstructorS3("ClassB", function(A,x,bData) {
if(missing(bData))bData = NA;
extend(ClassA(), "ClassB",
.bData = bData
)
})
setMethodS3("getBData", "ClassB", function(this,...) {
this$.bData;
})
Usage:
> b = ClassB(13,100,6)
> b$getSize() # I expected to get 13.
[1] 15
> b$getBData...
2007 Feb 26
1
2 data frames - list in one out put , matrix in another ??
...ne subset of
variables. I know that I assembled the 2 dataframes
slightly differently but I don't see why I am getting
this result because one set of variables are labelled
and the other is not. Variable names are the same,
etc. as far as I can acertain. The only diffference
seems to be that bdata variables are labelled.
About now I really don't care which I get but I would
like them to be the same. Can anyone suggest what I
am doing wrong or should be looking at?
Windows XP , R 2.4.1 Using Hmisc and gtools as well as
the basic R installation.
Problem
load(adata)
fn1 <- funct...
2012 Apr 12
3
writing spdiags function for R
Dear R-list,
I am in the process of translating a long function written in Matlab
into R (mainly because I am a big of fan of R, and folks will not
have to pay to use it :). In the translation of this function
I got stack because they use spdiags, which, as far as I can tell
it is not available in R. I have explored the Matrix package, from
which I borrowed some of the functions (e.g.,
2010 Jul 16
3
Help with Sink Function
iterations <- 100
nvars <- 4
combined <- rbind(scaleMiceTrain, scaleMiceTest)
reducedSample <- combined
reducedSample <- subset(reducedSample, select = -pID50)
reducedSample <- subset(reducedSample, select = -id)
for (i in 1:iterations)
{
miceSample <- sample(combined[,-c(1,2)],nvars, replace=FALSE)
miceSample$pID50 <- combined$pID50
miceTestSample <-
2011 Jul 20
2
Bootstrap
Hi all,
I am facing difficulty on how to use bootstrap sampling and
below is my example of function.
Read a data , use some functions and use iteration to find the solution(
ie, convergence is reached). I want to use bootstrap approach to do it
several times (200 or 300 times) this whole process and see the
distribution of parameter of interest.
Below is a small example that resembles my
2011 Aug 25
1
how to compare two dataset with same sampling
...15
2010 04 12 57
2010 07 24 32
2010 08 23 15
As you see,dataset A and B have several observation data but their obs data
is not same everyday.
Now I want to compare the data from two dataset in the same time.
How could I write the R script?
errdata<-subset(A,A$V11==Bdata$V11 & A$V12==B$V12)
this command seems failed.How could I?
--
[[alternative HTML version deleted]]
2011 Oct 26
6
sometimes removing NAs from code
Sometimes I have NA values within specific columns of a dataframe (in this
example, the first two columns can have NAs). If there are NA values, I
would like them to be removed.
I have been using the code:
y<-c(NA,5,4,2,5,6,NA)
z<-c(NA,3,4,NA,1,3,7)
x<-1:7
adata<-data.frame(y,z,x)
adata<-adata[-which(apply(adata[,1:2],1,function(x)any(is.na(x)))),]
This works well if there are NA
2017 Nov 16
0
Re: [Qemu-devel] [qemu-img] support for XVA
...#print "offset =3D $offset, bnum =3D $bnum, boffs =3D $boffs\n";=0A=0A =
# n =3D number of bytes that can be read from this block.=0A m=
y $n =3D $block_size - $boffs;=0A $n =3D $count if $n > $count;=0A=
=0A if (exists $block{$bnum}) {=0A my $bdata =3D read_blo=
ck ($h, $bnum);=0A $buf .=3D substr $bdata, $boffs, $n;=0A =
}=0A else {=0A # Virtual zero block.=0A $buf=
.=3D "\0" x $n;=0A }=0A=0A $count -=3D $n;=0A }=0A=0A =
return $buf;=0A}=0A
--7AUc2qLy4jB3hD7Z--
2014 Mar 19
0
[PATCH 2/2] Make the arm2gnu.pl converter handle apple specific details
...3,7 @@ while (<>) {
my $proc;
s/\bENDP\b/@ $&/;
$proc = pop(@proc_stack);
- $_ = "\t.size $proc, .-$proc".$_ if ($proc);
+ $_ = "\t.size $proc, .-$proc".$_ if ($proc && !$apple);
}
s/\bSUBT\b/@ $&/;
s/\bDATA\b/@ $&/; # DATA directive is deprecated -- Asm guide, p.7-25
@@ -337,6 +348,6 @@ while (<>) {
}
#If we had a code section, mark that this object doesn't need an executable
# stack.
-if ($nxstack) {
+if ($nxstack && !$apple) {
printf (" .section\t.note.GNU-sta...
2014 Mar 19
3
[PATCH 1/2] Add separate labels for the start of public functions
This avoids having to use the public symbol name when jumping here,
on platforms where the public symbols have an underscore prefix.
---
This avoids having to add heuristics for adding prefixes to symbols
in jumps to local labels as well.
---
celt/arm/celt_pitch_xcorr_arm.s | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/celt/arm/celt_pitch_xcorr_arm.s
2007 Apr 18
1
[PATCH 0/7] Using %gs for per-cpu areas on x86
OK, here it is. Benchmarks still coming. This is against Andi's
2.6.18-rc7-git3 tree, and replaces the patches between (and not
including) i386-pda-asm-offsets and i386-early-fault.
One patch is identical, one is mildly modified, the rest are
re-implemented but inspired by Jeremy's PDA work.
Thanks,
Rusty.
--
Help! Save Australia from the worst of the DMCA: http://linux.org.au/law
2007 Apr 18
1
[PATCH 0/7] Using %gs for per-cpu areas on x86
OK, here it is. Benchmarks still coming. This is against Andi's
2.6.18-rc7-git3 tree, and replaces the patches between (and not
including) i386-pda-asm-offsets and i386-early-fault.
One patch is identical, one is mildly modified, the rest are
re-implemented but inspired by Jeremy's PDA work.
Thanks,
Rusty.
--
Help! Save Australia from the worst of the DMCA: http://linux.org.au/law
2003 May 16
2
make installworld fails : touch not found ?
...p l
n make makewhatis mkdir mtree mv perl pwd_mkdb rm sed sh sysctl test true
uname
wc zic; do cp `which $prog` /tmp/install.466; done
cd /usr/src; MAKEOBJDIRPREFIX=/usr/obj MACHINE_ARCH=i386 MACHINE=i386
OBJFORM
AT_PATH=/usr/obj/usr/src/i386/usr/libexec
PERL5LIB=/usr/obj/usr/src/i386/usr/li
bdata/perl/5.00503 GROFF_BIN_PATH=/usr/obj/usr/src/i386/usr/bin
GROFF_FONT_PAT
H=/usr/obj/usr/src/i386/usr/share/groff_font
GROFF_TMAC_PATH=/usr/obj/usr/src/i
386/usr/share/tmac
PATH=/usr/obj/usr/src/i386/usr/sbin:/usr/obj/usr/src/i386/us
r/bin:/usr/obj/usr/src/i386/usr/games:/tmp/install.466 make -f Ma...
2017 Nov 15
10
Re: [Qemu-devel] [qemu-img] support for XVA
2017-11-15 21:29 GMT+01:00 Richard W.M. Jones <rjones@redhat.com>:
> Gandalf, is there an XVA file publically available (pref. not
> too big) that we can look at?
I can try to provide one, but it's simple:
# tar tvf 20160630_124823_aa72_.xva.gz | head -n 50
---------- 0/0 42353 1970-01-01 01:00 ova.xml
---------- 0/0 1048576 1970-01-01 01:00 Ref:175/00000000
2005 Aug 04
0
[PATCH 6/11] Xenstore watch rework
...turn i;
}
-/* Returns "false", meaning "connection is not blocked". */
-bool send_reply(struct connection *conn, enum xsd_sockmsg_type type,
+void send_reply(struct connection *conn, enum xsd_sockmsg_type type,
const void *data, unsigned int len)
{
struct buffered_data *bdata;
@@ -493,16 +492,15 @@
conn->waiting_reply = bdata;
} else
conn->out = bdata;
- return false;
}
/* Some routines (write, mkdir, etc) just need a non-error return */
-bool send_ack(struct connection *conn, enum xsd_sockmsg_type type)
-{
- return send_reply(conn, type, "OK"...
2011 Jan 20
1
[PATCH] change acquire/release_console_sem() to console_lock/unlock()
...tive:
/* Disable IO-PAD and IO-CHAIN wakeup */
diff --git a/arch/arm/mach-omap2/serial.c b/arch/arm/mach-omap2/serial.c
index 302da74..32e91a9 100644
--- a/arch/arm/mach-omap2/serial.c
+++ b/arch/arm/mach-omap2/serial.c
@@ -812,7 +812,7 @@ void __init omap_serial_init_port(struct omap_board_data *bdata)
oh->dev_attr = uart;
- acquire_console_sem(); /* in case the earlycon is on the UART */
+ console_lock(); /* in case the earlycon is on the UART */
/*
* Because of early UART probing, UART did not get idled
@@ -838,7 +838,7 @@ void __init omap_serial_init_port(struct omap_board_dat...
2011 Jan 20
1
[PATCH] change acquire/release_console_sem() to console_lock/unlock()
...tive:
/* Disable IO-PAD and IO-CHAIN wakeup */
diff --git a/arch/arm/mach-omap2/serial.c b/arch/arm/mach-omap2/serial.c
index 302da74..32e91a9 100644
--- a/arch/arm/mach-omap2/serial.c
+++ b/arch/arm/mach-omap2/serial.c
@@ -812,7 +812,7 @@ void __init omap_serial_init_port(struct omap_board_data *bdata)
oh->dev_attr = uart;
- acquire_console_sem(); /* in case the earlycon is on the UART */
+ console_lock(); /* in case the earlycon is on the UART */
/*
* Because of early UART probing, UART did not get idled
@@ -838,7 +838,7 @@ void __init omap_serial_init_port(struct omap_board_dat...
2011 Jan 20
1
[PATCH] change acquire/release_console_sem() to console_lock/unlock()
...tive:
/* Disable IO-PAD and IO-CHAIN wakeup */
diff --git a/arch/arm/mach-omap2/serial.c b/arch/arm/mach-omap2/serial.c
index 302da74..32e91a9 100644
--- a/arch/arm/mach-omap2/serial.c
+++ b/arch/arm/mach-omap2/serial.c
@@ -812,7 +812,7 @@ void __init omap_serial_init_port(struct omap_board_data *bdata)
oh->dev_attr = uart;
- acquire_console_sem(); /* in case the earlycon is on the UART */
+ console_lock(); /* in case the earlycon is on the UART */
/*
* Because of early UART probing, UART did not get idled
@@ -838,7 +838,7 @@ void __init omap_serial_init_port(struct omap_board_dat...
2007 Apr 18
3
Per-cpu patches on top of PDA stuff...
Hi Jeremy, all,
Sorry this took so long, spent last week in Japan at OSDL conf then
netconf. After several false starts, I ended up with a very simple
implementation, which clashes significantly with your work since then
8(. I've pushed the patches anyway, but it's going to be significant
work for me to re-merge them, so I wanted your feedback first.
The first patch simply changes
2007 Apr 18
3
Per-cpu patches on top of PDA stuff...
Hi Jeremy, all,
Sorry this took so long, spent last week in Japan at OSDL conf then
netconf. After several false starts, I ended up with a very simple
implementation, which clashes significantly with your work since then
8(. I've pushed the patches anyway, but it's going to be significant
work for me to re-merge them, so I wanted your feedback first.
The first patch simply changes