Displaying 20 results from an estimated 60 matches for "regroup".
2012 Nov 08
3
Regrouping dataframe
Hi @ all,
I hope for some help of you.
I have a dataframe and I want to regroup it.
examp4.csv <http://r.789695.n4.nabble.com/file/n4648927/examp4.csv>
I need the arguments of "VAL" as table heads and the "TYPE " only in
individual expression.
The result should look like in the example pic.
exp4.png <http://r.789695.n4.nabble.com/file/n4648927/...
2009 May 22
1
regrouping factor levels
Hi all,
I had some trouble in?regrouping factor levels for a variable. After some experiments, I have figured out how I can recode to modify the factor levels. I would now like some help to understand why some methods work and others don't.
Here's my code :
rm(list=ls())
###some trials in recoding factor levels
char<-letter...
2011 Dec 15
1
Reordering a numeric variable
I'm running a linear model in R using the car package.
I have a variable education, which i have recoded and regrouped to my
wishes.
However, R seems to place each element of that variable in alphabetical
order.
When I am running the model, don't I need the model order from lowest to
highest to make an inference that
a one unit change in one variable produced a one unit change in another.
levels(educ)
educ2...
2018 Jun 01
0
Regroup and create new dataframe
...te one with a similar structure. Is the data I sent reasonably close? What should it look like after it is transformed?
David C
From: nguy2952 University of Minnesota <nguy2952 at umn.edu>
Sent: Friday, June 1, 2018 1:57 PM
To: David L Carlson <dcarlson at tamu.edu>
Subject: Re: [R] Regroup and create new dataframe
Hi,
This is not an assignment for school.
This is a project at WORK.?
I am not allowed to reveal the dataset.
Thanks!
On Fri, Jun 1, 2018 at 1:55 PM, David L Carlson <mailto:dcarlson at tamu.edu> wrote:
Your question raises several issues. First, we do not do homew...
2018 Jun 01
0
Regroup and create new dataframe
...the list using Reply-All.
The data frame group_PrivateLabel does not contain variables called Product_Name or Region.
David C
From: nguy2952 University of Minnesota <nguy2952 at umn.edu>
Sent: Friday, June 1, 2018 2:13 PM
To: David L Carlson <dcarlson at tamu.edu>
Subject: Re: [R] Regroup and create new dataframe
Hi David,
your example is perfect!
I am still learning so please stay with me.
So, I am running a regression model:
model1 = lm(MarginDollars ~ Region + Product_Name, group_PrivateLabel)
I have an error message:?
Error in `contrasts<-`(`*tmp*`, value = contr.funs[1 + is...
2011 Apr 07
2
Regrouping data
Dear R forum
I have just started my venture with R. While I am trying to learn R through the tutorials, I think the current problem I need to address to is beyond my knowledge about R.
I have a dataframe as defined below -
rat_dat = data.frame(name = c("A", "A", "A", "B", "B", "B", "C", "C", "C",
2018 Jun 01
4
Regroup and create new dataframe
Hello folks,
I have a big project to work on and the dataset is classified so I am just
going to use my own example so everyone can understand what I am targeting.
Let's take Target as an example: We consider three brands of tape: Target
brand, 3M and Avery. The original data frame has 4 columns: Year of Record,
Product_Name(which contains three brands of tape), Sales, and Region. I
want to
2003 Sep 12
3
factor creation
Another newbie question....
I want to create a factor (say cT)from a numerical variable (sy temp) by
regrouping the values in classes (say cT <390, [390,400[,[400,409[...>=550)
Is there a simple way of doing that using the factor function?
AND I do not find how to manipulate strings (I want to concatenete characters
strings ("abkdas","chjw") into something like ("abkdas;c...
2010 Jul 08
2
transformation of data.frame
Hello all R users,
I have a problems transforming (or maybe better regrouping) a data.frame.
I have a big data.frame, which I would like to sum up according to a
specific column.
This is an example of my matrix:
ID gen
0042787 gen2
0016070 gen2
0016070 gen3
0007409 Gen1
0007409 gen3
0006511 gen2
0006417 gen3
0016070 gen4
0006511 gen4
I wan...
2013 Apr 17
2
Mancova with R
Dear all,
I'm trying to compare two sets of variables, the first set is composed exclusively of numerical variables and the second regroups factors and numerical variables. I can't use a Manova because of this inclusion of numerical variables in the second set. The solution should be to perform a Mancova, but I didn't find any package that allow this type of test.
I've already looked in this forum and on the net to find a...
2005 Jan 19
2
recoding large number of categories (select in SAS)
Hi,
I have data on stomach contents. Possible prey species are in the
hundreds, so a list of prey codes has been in used in many labs doing
this kind of work.
When comes time to do analyses on these data one often wants to regroup
prey in broader categories, especially for rare prey.
In SAS you can nest a large number of "if-else", or do this more
cleanly with "select" like this:
select;
when (149 <= prey <=150) preyGr= 150;
when (186 <= prey <= 187) preyGr= 187;
when (prey= 438...
2014 Jan 13
4
[LLVMdev] test suite 'owner'
...argc for main is 'int'.
In the XCore tool chain, 'int32_t' equates to long (IIRC) and hence is not acceptable in the type signature for main.
Should this change be only for the XCore target or all targets?
When I know the policy for the test-suite, I'll alter as necessary & regroup the changes into patches containing the same type of change and submit for approval.
One more question:
On patch I need to address is how to make deterministic the order of stdout & stderr.
Ideally, applications would use either stdout or stderr but not both.
Would a patch to change to only st...
2012 Oct 28
2
Syslinux docs for core variants and installers
...I've never heard of someone
using Syslinx older than 3.00). My thought here is that if someone is
accustomed to older behavior, this would facilitate them updating to
the new behavior.
Looking at doc/syslinux.txt, there are numerous basic sections. My
main question is: Should any of these be regrouped into different
documents? Aspects specific to the installers don't necessarily
concern those using PXELINUX/ISOLINUX.
Aside from the information specific to the command line of the
installers, I see the following sections:
- Name convention
- Config file syntax in subsections (global, labe...
2008 Jul 19
1
Discretize continous variables....
Hi R helpers,
I'm preparing dataset to fir logistic regression model with lrm(). I
have various cointinous and discrete variables and I would like to:
1. Optimaly discretize continous variables (Optimaly means, maximizing
information value - IV for example)
2. Regroup discrete variables to achieve perhaps smaller number of
level and better information value...
Please suggest if there is some package providing this or same
functionality for discretization...
if there is no package plese suggest how to achieve this.
Many thanks helpers.
2017 Jan 31
0
Linking Linux kernel with LLD
...okenizing on very basic
rules. What is a number, what is a single symbolor a whole Identifier, and
what to skip(like spaces). Each token has metadata like relative offset to
the previous one. A Parser on top uses the lexer to process the Tokens. My
approach of storing the relative offsets allows to regroup tokens to single
symbols respecting whitespaces at a later time.
Let's say we have(without quotes ofcourse)
"2 * 3"
The lexer always produces 3 tokens, 2 with the content and identification
for a numeraical value(for 2 and 3) and one for an operator token. I can
now either go for it...
2017 Jan 31
2
Linking Linux kernel with LLD
>> I have a question also. You added -m elf_i386 to workaround emulation conflict issue in LLD, do you know
>> does output produced by BFD boot fine after that change ?
>Doesn't seem to affect BFD at all.
Thanks !
?George.
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2011 Oct 25
2
[LLVMdev] [RFC] What options should be hidden/not-hidden for opt command
...be
needed by developers. I thought it will be a good idea to mention the
existence of "-help-hidden" on the web page, but the patch I sent brought
some discussion on llvm-commits [2][3]. Duncan suggested that there are
options should be not-hidden but hidden, and vice versa. And we should
regroup those options into hidden/not-hidden.
Any idea? Thanks!
[1] http://lists.cs.uiuc.edu/pipermail/llvmdev/2011-October/044484.html
[2] http://comments.gmane.org/gmane.comp.compilers.llvm.cvs/101547
[3] http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20111024/130575.html
Regards,
che...
2020 Sep 09
1
[PATCH v2 2/7] kernel/resource: move and rename IORESOURCE_MEM_DRIVER_MANAGED
...autiful (and confusing),
> and the bit only applies to SYSRAM. So let's move it out of the
> bus-specific (PnP) defined bits.
>
> We'll add another SYSRAM specific bit soon. If we ever need more bits for
> other purposes, we can steal some from "desc", or reshuffle/regroup what we
> have.
>
> Cc: Andrew Morton <akpm at linux-foundation.org>
> Cc: Michal Hocko <mhocko at suse.com>
> Cc: Dan Williams <dan.j.williams at intel.com>
> Cc: Jason Gunthorpe <jgg at ziepe.ca>
> Cc: Kees Cook <keescook at chromium.org>
> C...
2006 Oct 10
2
rarefy a matrix of counts
...s for each
sample. I could do the tedious looping task of making a list of all objects
(with its associated identifier) in each sample and then use the wonderful
"sampling" package to select a sub-sample of 100 for each sample and thereby
get a logical vector of inclusions. I would then regroup the resulting
logical vector into a vector of counts by object, rinse and repeat several
times for each sample.
Alternately, using the same list, I could create a random index of integers
between 1 and the number of objects for a sample (without repeats) and then
select those objects from the list...
2010 Jul 08
1
Query about using timestamps returned by SQL as 'factor' for split
...rom last year (the system is non-autonomous). And then I need to
use lapply to apply fitdistr to each subsample.
Obviously, I can handle all this data in either a data.frame or in a
data.table.
There are two aspects of the question.
1) Is there a function (or package) that will let me group (or regroup) time
series data into the week in which the data apply, properly taking into
account the year that applies, in a single call passing sale_date as the
argument? If I can, then I can reduce the amount of data I draw from my
MySQL server and the computational load it bears.
2) The example provided...