Displaying 20 results from an estimated 5000 matches similar to: "filtering data frame based on two columns"
2012 Aug 11
1
using eval to handle column names in function calling scatterplot graph function
I am running R version 2.15.1 in Windows XP
I am having problems with a function I'm trying to create to:
1. subset a data.frame based on function arguments (colname & parmname)
2. rename the PARMVALUE column in the data.frame based on function
argument (xvar)
3. generate charts
plotvar <- function(parentdf,colname, parmname,xvar,yvar ){
subdf <-
2006 Feb 22
1
unused factor levels in reshape
When reshaping a dataframe in which there are unused factor levels in the id variable, I get the following error:
Error in if (!all(really.constant)) warning(gettextf("some constant variables (%s) are really varying", :
missing value where TRUE/FALSE needed
For example,
> df <- data.frame(i = factor(rep(1:5, each = 2)), t = factor(rep(1:2, 5)), x = rep(rbinom(5, 1,
2007 Nov 13
7
combine two dataframe
I have two data frame A and B adn want to cross them.
A has format as:
a1 a2 a3
1 2 3
2 3 1
1 3 2
...
B:
b1 b2
1 2
2 1
...
the combine result shall be something like
a1 a2 a3 b1 b2
1 2 3 1 2
1 2 3 2 1
2 3 1 1 2
2 3 1 2 1
1 3 2 1 2
1 3 2 2 1
....
is there a function able of doing this instead of loops?
Thanks,
Sun
2006 Aug 31
6
newbie question about index
Hi,
I am trying to convert a variable a = sample(1:3,100,rep = T) represents choices into a 3X100 dummy varible b with corresponding element set to 1 otherwise 0.
eg.
a: 1 3 2 1 2 3 1 1....
b: 1 0 0 1 0 0 1 1..
0 0 1 0 1 0 0 0...
0 1 0 0 0 1 0 0...
Is there something like b[a] =1 existing? I could not figure this out myself.
---------------------------------
2007 Oct 09
2
AlgDesign--exact and approximate design
Hi
I am trying to generate a design using Algdesign and came across terms of
"exact design" and "approxiamte theory design", I did not find a reference
to explain what they are, could some one shed some light about this on me?
Another question is, I want to measure the main effects and at least two
interactions, variables are factors, how do I ensure this in formula,
2008 Mar 05
3
regex sulotion for seperating number and string
I have strings contain postcode and letters, some seperated with blank, some
with comma, and some hasn't seperated. eg, "2324gz" "2567 HK" "3741,BF"
I want to seperate the number and letters into two new variables.
I know this should be quite basic question, but searched on regex syntax and
that seems a bit scarey to me, any one can shot me a quick solution
2007 Oct 10
2
how to generate and evaluate a design using Algdesign
Hi,
I have some problems when using AlgDesign->optFederov() generating
designs.
I have 6 variables, all factors. 3^2 and 4^4, I want to have a design that
can take care of main effects and two interactions within 2 pair of
variables v3-v4 and v5-v6, the following is the code
################
require(AlgDesign)
set.seed(1)
levels = c(v1=3,v2=3, v3=4,v4=4,v5=4,v6=4)
2015 Aug 21
0
Processed (with 2 errors): user pkg-xen-devel@lists.alioth.debian.org, usertagging 599520, closing 599520, usertagging 605778 ...
Processing commands for control at bugs.debian.org:
> user pkg-xen-devel at lists.alioth.debian.org
Setting user to pkg-xen-devel at lists.alioth.debian.org (was ijc at debian.org).
> usertags 599520 toolstack-xend
There were no usertags set.
Usertags are now: toolstack-xend.
> close 599520 4.4.0-1
Failed to add fixed version '4.4.0-1' to 599520: Not altering archived bugs; see
2010 Dec 03
0
Bug#605778: xen-utils-3.2-1: python-xml dependency isn't satified
Package: xen-utils-3.2-1
Version: 3.2.1-2
Severity: important
Please can you add python-xml as a dependancy for xen-utils-3.2-1 on lenny and above.
Without python-xml a dependancy for "xm new" isn't satified.
Thanks,
Matthew Millar
-- System Information:
Debian Release: 5.0.7
APT prefers stable
APT policy: (500, 'stable')
Architecture: i386 (i686)
Kernel: Linux
2009 Apr 18
5
Dummy (factor) based on a pair of variables
Dear All!
my data is on pairs of countries, i and j, e.g.:
y,i,j
1,AUT,BEL
2,AUT,GER
3,BEL,GER
I would like to create a dummy (indicator) variable for use in regression
(using factor?), such that it takes the value of 1 if the country is in the
pair (i.e. EITHER an i-country OR an j-country).
Thank you for your help,
Serguei
________________________________________
Austrian Institute of
2011 Jun 07
1
extract data features from subsets
I have a large dataset similar to this:
ID time result
A 1 5
A 2 2
A 3 1
A 4 1
A 5 1
A 6 2
A 7 3
A 8 4
B 1 3
B 2 2
B 3 4
B 4 6
B 5 8
I need to extract a number of features for each individual in it (identified by "ID"). These are:
* The lowest result (the nadir)
* The time of the nadir - but if the nadir level is present at >1 time point, I need the minimum and maximum time of nadir
2017 Mar 21
3
Problem with sieve_before[solved]
I did chmod -R 777 /var/lib/dovecot and it worked.
I just need to figure out what the correct setting are.
Thanks everyone
//Ger
----------------original message-----------------
From:Ger Hooton Scoil Chro? ?osa Blarney [ghooton at scins.ie ]
To:Robert Moskowitz [rgm at htt-consult.com ], chaouche yacine
[yacinechaouche at yahoo.com ], dovecot at dovecot.org Date:Tue, 21 Mar 2017
14:05:17
2017 Mar 21
6
Problem with sieve_before
Hi All,
I cannot get the sieve_before to work. I have dovecot & sieve
installed on Debian 7 as follows
/etc/dovecot/conf.d/90-sieve.conf :
plugin {
# The path to the user's main active script. If ManageSieve is used, this the
# location of the symbolic link controlled by ManageSieve.
sieve = ~/.dovecot.sieve
# The default Sieve script when the user has none. This is a path to a
2009 Jun 26
3
Compute correlation matrix for panel data with specific ordering
Hello All,
I have a panel date - here a small-scale example:
df <-
data.frame(cbind(rep(c("AUT","BEL","DEN","GER"),4),cbind(rep(c(1999,2000,2001,2002),4)),sample(10,16,replace=T)))
names(df) <- c("country","year","x")
SORT <- c("GER","BEL","DEN","AUT")
I need to compute the
2012 Sep 28
3
Better way of Grouping?
Hello R users,
This is more of a convenience question that I hope others might find useful
if there is a better answer. I work with large datasets that requires
multiple parsing stages for different analysis. For example, compare group
3 vs. group 4. A more complicated comparison would be time B in group 3 of
group L with B in group 4 of group L. I normally subset each group with
the
2007 Sep 24
3
Trouble using backgroundrb
Hi all,
I''m a newbie to backgroundrb and am having trouble integrating it into
my rails-app. I''m using namespaces to differentiate between the parts of
my app.
When I want to create a new worker, it seems that it cannot find the
worker object. Here''s my code:
-------------------- controller app/passwd/index --------------------
class Passwd::IndexController <
2018 Mar 18
3
Upgrade Centos 6 to Centos 7 32 Bits i686 architecture.
Hi ,
I am running Centos 6 on an old Acer S2000 PC 1Mb memory and i686 32 bits
architecture.
Question : Is there a possibility to upgrade to Centos 7 32 bits ?
Regards ,
Ger van Dijck.
--
Gemaakt met Opera's e-mailprogramma: http://www.opera.com/mail/
2019 Nov 27
7
Upgrade Centos 6 (32 Bits) to Centos 7 (32 Bits)
Hi all ,
I have a very old PC ( Acer2000) 32 Bits. On this machine I am running (Do
not laugh) SCO Unix in an antique version : So Centos6 probes with the
bootloader on this OS and other OS s.
Is there a way to opgrade Centos 6 to Centos 7 in the 32 Bits architecture
?
Any help would be usefull.
Regards.
Ger van Dijck.
--
Using Opera's mail client:
2020 Jan 12
5
Centos 7 32 Bits install.
Hi all,
Question : Can I install Centos7 32 Bits on a computer i386 32 bits little
indian pentium III Copermine Model8 Cpufamily 6 CpuMhz 863.979 (lscpu)
grep -i pae /proc/cpuinfo gives a flag pae .
I am very curieus,
Ger van Dijck.
--
Using Opera's mail client: http://www.opera.com/mail/
2008 Jan 22
9
Cannot connect when spawning new workers on demand
Hi!
I''m using the latest&greatest backgroundrb with rails 2.0.2 on ubuntu
dapper.
I''ve made an app that lets you run a query on several servers at once,
which are selected at runtime. Therefore, for each server that is
selected, I spawn a new worker and assign its work.
After everything is completed, the workers are deleted.
I often get this error: