Displaying 20 results from an estimated 175 matches for "aq".
Did you mean:
qa
2017 Apr 12
3
"table(droplevels(aq)$Month)" in manual page of droplevels
The last line of the example in droplevels' manual page seems to be incorrect to me. I think it should read: "table(droplevels(aq$Month))". Amazingly (I don't understand) both variants seem to produce the same result (R 3.3.3):
---
> aq <- transform(airquality, Month = factor(Month, labels = month.abb[5:9]))
> aq <- subset(aq, Month != "Jul")
> table(aq$Month)
May Jun Jul Aug Sep
31 30...
2017 Apr 12
2
"table(droplevels(aq)$Month)" in manual page of droplevels
...bb8d-f00d-87e5-553f866d57e0 at gmail.com>:
>>> On 2017-04-12 14:40, Ulrich Windl wrote:
>>>
>>>> The last line of the example in droplevels' manual page seems to
>>>> be incorrect to me. I think it should read:
>>>> "table(droplevels(aq$Month))". Amazingly (I don't understand)
>>>> both variants seem to produce the same result (R 3.3.3): ---
>>>
>>> The manual says that "The function 'droplevels' is used to drop
>>> unused levels from a 'factor' or, more commonly...
2017 Jun 26
2
Odd behaviour in within.list() when deleting 2+ variables
...()
anywhere... so we will have them now.
I've hade an idea that seems to work and even simplify the
code.... will get back to the issue later in the evening.
Martin
> The crux of the matter seems to be that both the following
> constructions work for data frames
>> aq <- head(airquality)
>> names(aq)
> [1] "Ozone" "Solar.R" "Wind" "Temp" "Month" "Day"
>> aq[c("Wind","Temp")] <- NULL
>> aq
> Ozone Solar.R Month Day
&g...
2017 Jun 26
2
Odd behaviour in within.list() when deleting 2+ variables
The behaviour of within() with list input changes if you delete 2 or more variables, compared to deleting one:
l <- list(x=1, y=2, z=3)
within(l,
{
rm(z)
})
#$x
#[1] 1
#
#$y
#[1] 2
within(l, {
rm(y)
rm(z)
})
#$x
#[1] 1
#
#$y
#NULL
#
#$z
#NULL
When 2 or more variables are deleted, the list entries are instead set to NULL. Is this intended?
2017 Apr 13
0
"table(droplevels(aq)$Month)" in manual page of droplevels
...gt;:
>>>> On 2017-04-12 14:40, Ulrich Windl wrote:
>>>>
>>>>> The last line of the example in droplevels' manual
>>>>> page seems to be incorrect to me. I think it should
>>>>> read: "table(droplevels(aq$Month))". Amazingly (I
>>>>> don't understand) both variants seem to produce the
>>>>> same result (R 3.3.3): ---
>>>>
>>>> The manual says that "The function 'droplevels' is used
>>>> to dr...
2017 Apr 12
0
"table(droplevels(aq)$Month)" in manual page of droplevels
...icht <b66fe849-bb8d-f00d-87e5-553f866d57e0 at gmail.com>:
>> On 2017-04-12 14:40, Ulrich Windl wrote:
>>
>>> The last line of the example in droplevels' manual page seems to
>>> be incorrect to me. I think it should read:
>>> "table(droplevels(aq$Month))". Amazingly (I don't understand)
>>> both variants seem to produce the same result (R 3.3.3): ---
>>
>> The manual says that "The function 'droplevels' is used to drop
>> unused levels from a 'factor' or, more commonly, from factors...
2009 Sep 06
1
IVT SCD support status
Rainer, Arjen
I was wandering around the code, and found that few things are missing
around the IVT code:
- no manpage,
- no entry in driver.list
- no device{mfr,model,type} in the code.
I was about to submit a patch to address the above (ready to commit), but
wanted first to get an update on the status. looking at the last thread,
it's a bit unclear... I'm also interested an upsc
2017 Jun 26
0
Odd behaviour in within.list() when deleting 2+ variables
...fixed something, but it escapes my memory.
However, it seems to have broken the equivalence between within.list and within.data.frame, so now
within.list <- within.data.frame
does not suffice.
The crux of the matter seems to be that both the following constructions work for data frames
> aq <- head(airquality)
> names(aq)
[1] "Ozone" "Solar.R" "Wind" "Temp" "Month" "Day"
> aq[c("Wind","Temp")] <- NULL
> aq
Ozone Solar.R Month Day
1 41 190 5 1
2 36 118...
2017 Jun 26
0
Odd behaviour in within.list() when deleting 2+ variables
...>
> I've hade an idea that seems to work and even simplify the
> code.... will get back to the issue later in the evening.
>
> Martin
>
>
>> The crux of the matter seems to be that both the following
>> constructions work for data frames
>
>>> aq <- head(airquality)
>>> names(aq)
>> [1] "Ozone" "Solar.R" "Wind" "Temp" "Month" "Day"
>>> aq[c("Wind","Temp")] <- NULL
>>> aq
>> Ozone Solar.R Month Day
>&g...
2017 Jun 26
1
Odd behaviour in within.list() when deleting 2+ variables
...he code.... will get back to the issue later in the
>> evening.
>>
>> Martin
>>
>>
>>> The crux of the matter seems to be that both the
>>> following constructions work for data frames
>>
>>>> aq <- head(airquality) names(aq)
>>> [1] "Ozone" "Solar.R" "Wind" "Temp" "Month" "Day"
>>>> aq[c("Wind","Temp")] <- NULL aq
>>> Ozone Solar.R Month Day 1 41 190 5 1 2 36 118...
2009 Jun 05
3
help with duplicates
I have a large dataset that contain duplicate records. How do I identify and remove duplicate records?
Chris Anderson
707.315.8486
www.sassydeals4u.com
____________________________________________________________
Free info for small business owners. Click here to find great products geared for your business.
2012 Dec 05
0
AQ-R 0.2 // realtime messaging.
Hi there,
I am glad to announce AQ-R 0.2 has been successfully built and is
available via install.packages("aqr",
repos="http://R-Forge.R-project.org").
The most important new feature is real-time messaging from within R.
AQ-R 0.2 enables you to send and receive byte[] messages within R
through a STOMP comp...
2012 Dec 05
0
AQ-R 0.2 // realtime messaging.
Hi there,
I am glad to announce AQ-R 0.2 has been successfully built and is
available via install.packages("aqr",
repos="http://R-Forge.R-project.org").
The most important new feature is real-time messaging from within R.
AQ-R 0.2 enables you to send and receive byte[] messages within R
through a STOMP comp...
2009 Jun 23
5
Merging Irregular Time Series With NAs
...time that they both
span, they should have the same values, but the values may occur at
slightly different time intervals. I am trying to "line up" the identical
values and reconcile them. I have merged the two series into a zoo object
which looks like the following:
> head(m)
aq$mid d2$mid
2009-06-22 16:25:40.044 NA 1.63755
2009-06-22 16:25:40.909 1.63760 NA
2009-06-22 16:25:40.987 NA 1.63760
2009-06-22 16:25:41.657 1.63755 NA
2009-06-22 16:25:41.738 NA 1.63755
2009-06-22 16:25:41.909 1.63760 NA
What I would like to do is merge the series column-wise : ie where one
colu...
2006 Feb 01
6
[XM-TEST][PATCH] hvm network test fixes
The following patch allows the network tests to pass with hvm support enabled.
More specifically:
02_network_local_ping_pos.py
REASON: ping loopback failed for size 65507. ping eth0 failed for size 65507.
(but all other size pings work)
05_network_dom0_ping_pos.py
REASON: Ping to dom0 failed for size 65507.
(but all other size pings work)
11_network_domU_ping_pos.py
passes 100% (even the large
2005 Jul 03
11
[PATCH] xm info
...: #2 Sun Jul 3 15:39:31 EST 2005
machine : i686
logical_cpus : 1
sockets : 1
cores_per_socket : 1
hyperthreads_per_core : 1
cpu_mhz : 1094
memory : 511
free_memory : 122
--
Signed-off-by: Nguyen Anh Quynh <aquynh@gmail.com>
# diffstat xminfo8.patch
tools/libxc/xc.h | 20 +++++++++++++
tools/libxc/xc_misc.c | 40 +++++++++++++++++++++++++++
tools/python/xen/lowlevel/xc/xc.c | 55 +++++++++++++++++++++++++++++++++++++-
tools/python/xen/xend/XendNode.py | 16 ++++...
2005 Nov 27
1
segfault on write.dcf with gzfile connection
....
Index: connections.c
===================================================================
--- connections.c (revision 36434)
+++ connections.c (working copy)
@@ -186,8 +186,11 @@
{
char buf[BUFSIZE], *b = buf, *vmax = vmaxget();
int res, usedRalloc = FALSE;
+ va_list aq;
- res = vsnprintf(buf, BUFSIZE, format, ap);
+ va_copy(aq, ap);
+ res = vsnprintf(buf, BUFSIZE, format, aq);
+ va_end(aq);
if(res >= BUFSIZE) { /* res is the desired output length */
usedRalloc = TRUE;
b = R_alloc(res + 1, sizeof(char));
And here is a...
1997 Apr 29
0
R-alpha: frametools v.0.0000001
...are definitely not portable to S because
they rely on R's scoping rules. Not that difficult to fix, though: The
nm vector and the "parsing" functions need to get assigned to
(evaluation) frame 1 (the "expression frame" of S), and preferably
removed at exit.
data(airquality)
aq<-airquality[1:10,]
select.frame(aq,Ozone:Temp)
subset.frame(aq,Ozone>20)
modify.frame(aq,ratio=Ozone/Temp)
Notice that in modify.frame(), any *new* variable must appear as a
tag, not as the result of an assignment, i.e.:
modify.frame(aq,Ozone<-log(Ozone)) works as expected
modify.frame(a...
2009 Nov 09
1
Using something like the "by" command, but on rows instead of columns
Hello R Forum users,
I was hoping someone could help me with the following problem. Consider the following "toy" dataset:
Accession SNP_CRY2 SNP_FLC Phenotype
1 NA A 0.783143079
2 BQ A 0.881714811
3 BQ A 0.886619488
4 AQ B 0.416893034
5 AQ B 0.621392903
6 AS B 0.031719125
7 AS NA 0.652375037
"Accession" = individual plants, arbitrarily identified by unique numbers
"SNP_" = individual genes.
"SNP_CRY2" = the CRY2 gene. The plants either have the BQ, AQ...
2010 May 12
1
exact the variables used in tree construction
...<leaf> <leaf> <leaf> CT <leaf> FC <leaf> YG QT <leaf>
[21] <leaf> <leaf> NW DP DY <leaf> SK <leaf> <leaf> <leaf>
[31] <leaf>
401 Levels: <leaf> AA AC AD AE AF AG AH AI AK AL AM AN AP AQ AR AS AT AV ...
YY
>
> at<-grep("<leaf>", fit.dimer$frame[, "var"], value=FALSE,
ignore.case=TRUE)
>
> fit.dimer$frame[-at, "var"]
[1] NE WC TA WG WD WW WC CT FC YG QT NW DP DY SK
401 Levels: <leaf> AA AC AD AE AF AG AH AI AK AL AM AN AP AQ...