Displaying 20 results from an estimated 10000 matches similar to: "factor levels on import"
2004 Aug 19
5
column names in data.frame
Dear R-help,
Please can someone explain how to put a column name on an output data.frame.
##Starting with a data.frame with 3 columns (d$Year, d$NoIndiv, d$wtd_tl)
yr_ind <- split (d$NoIndiv, d$Year)
yr_tl <- split (d$wtd_tl, d$Year)
ann_ind <- sapply (yr_ind, sum)
ann_tl <- sapply (yr_tl, sum)
av_tl <- ann_tl/ann_ind
d2<- data.frame (av_tl)
##This gives me a data.frame
2011 Oct 25
2
extract data for specific levels factor
Dear all,
I'm trying to analyze data with the following structure:
ind cat tx age
40.2 por fol peq vh 35
41.9 por fol med vh 35
68.9 por fol preov vh 35
71.5 por fol peq ser 37
67.5 por fol med ser 37
76.9 por fol preov ser 37
78.7 por fol peq otr 37
78.3 por fol med otr 37
82.1 por fol
2009 Jun 09
3
Splicing factors without losing levels
Hi list!
An operation that I often need is splicing two vectors:
> splice(1:3, 4:6)
[1] 1 4 2 5 3 6
For numeric vectors I use this hack:
splice <- function(x, y) {
xy <- cbind(x, y)
xy <- t(xy)
dim(xy) <- length(x) * 2
return(xy)
}
So far, so good (?). But I also need splicing for factors and I tried
this:
splice <- function(x, y) {
xy <-
2011 Feb 20
2
Same color key for multiple lattice contour plots
Hi all,
I'm trying to make multiple lattice contour plots which have the same color
key, to allow good comparisons. However, I run into some problems when
fitting the plots to the color key. Basically my strategy to tackle this
problem was:
1) define a color key for all plots;
2) calculate the variable range for each plot;
3) calculate the range of colors from the color key that correspond
2011 Mar 17
4
Help with plotting a line that is multicoloured based on levels of a factor
Hi All,
I'm trying to plot data that is a time series of flows that are associated
with a specific level, and I would like each level to represent a colour
in a line plot. Here is some data that approximates what I'm using:
date=c(1:300)
flow=sin(2*pi/53*c(1:300))
levels=c(rep(c("high","med","low"),100))
data=cbind.data.frame(date, flow, levels)
2010 Apr 02
1
Selecting the first row based on a factor
Hello there,
I have a situation where I would like to select the first row of a
particular factor for a data frame (data example below). So that is, I would
like to select the first entry when the factor1 =A and then the first row
when factor1=B etc. I have thousands of entries so I need some general way
of doing this. I have a minimal example that should illustrate what I am
trying to do. I am
2017 Jan 17
2
Git Transition status?
> On Jan 17, 2017, at 3:01 PM, Robinson, Paul <paul.robinson at sony.com> wrote:
>
> - As Medhi says, according to surveys and discussions in forums like the LLVM Dev Meeting BoF, most people who care are in favor of mono-repo.
>
> From the online surveys, I think the split was roughly 50:50.
>
> I don’t know on what data you’re basis this on. I looked very closely
2003 Mar 10
1
Problem with example(medpolish) in R-devel
Today's R-devel has a problem in `example(medpolish)'. It appears that
the `plot.medpolish' method is not available. Here is the output and
traceback() after starting `R --vanilla':
> library(eda)
> example(medpolish)
mdplsh> deaths <- rbind(c(14, 15, 14), c(7, 4, 7), c(8, 2,
10), c(15, 9, 10), c(0, 2, 0))
mdplsh> dimnames(deaths) <-
2017 Jan 17
4
Git Transition status?
> On Jan 17, 2017, at 7:24 AM, David Chisnall <David.Chisnall at cl.cam.ac.uk> wrote:
>
> On 17 Jan 2017, at 01:17, Chris Lattner via llvm-dev <llvm-dev at lists.llvm.org> wrote:
>>
>> - Monorepo is the “natural” way to use git. Submodules are possible to use, but add significant complexity.
>
> Having used submodules in a couple of projects, I’ve not
2015 Dec 14
2
[GlobalISel][RFC] New verifier stages
Hi Medhi,
> On Dec 11, 2015, at 6:18 PM, Mehdi Amini <mehdi.amini at apple.com> wrote:
>
> Hi,
>
> Side note: shouldn’t RFCs rather go to llvm-dev?
You’re right!
I could have sworn I have sent it to llvm-dev!
Moving it now.
>
>> On Dec 11, 2015, at 5:44 PM, Quentin Colombet via llvm-commits <llvm-commits at lists.llvm.org> wrote:
>>
>> Hi,
2016 Feb 09
2
CloneFunction during LTO leads to seg fault?
Hi Medhi,
Thanks for you reply. Here is the full output of -print-after-all [1]
and just the module itself after my pass[2].
I've looked over the IR, but I can't see anything obviously wrong.
I'm not sure what you meant by:
> You may want to try to add it at the end of the pipeline
My pass is the last one added inside populateLTOPassManager. Should I
add it to the
2006 Apr 11
3
ext3 filesystem corruption
Hi -
We have had 3 rather major occurances of ext3 filesystem corruption
lately,
i.e. so bad we couldn't event mount, and fsck didn't help.
I am looking for pointers, that could help us investigate the root
cause.
In general...
We are running RedHat WS 3 Update 6, 2.4.21-40.2.ELsmp or
2.4.21-37.ELsmp
We have a small SAN system that looks like this
2006 Nov 09
4
Plotting symbols with two positions?
Thanks a lot to Demitris for a prompt answer some minutes ago on another
tread (see below). To avoid excess mails on the list, I move onto next
question:
I have another small plotting problem that confuses me. I want to plot
results from a field trial series, using the numbers of the trials as
symbols in the plot.
pch = as.character(trial_no)
works fine, but truncates the trial number to the
2017 Jan 11
2
bug with strptime, %OS, and "."
On Tue, Jan 10, 2017 at 08:13:21PM -0600, Dirk Eddelbuettel wrote:
>
> On 10 January 2017 at 17:48, frederik at ofb.net wrote:
> | Hi R Devel,
> |
> | I just ran into a corner case with 'strptime'. Recall that the "%OS"
> | conversion accepts fractional seconds:
> |
> | > strptime("17_35_14.01234.mp3","%H_%M_%OS.mp3")$sec
> |
2009 Aug 09
3
SymWriter Crash
I've been trying to install Communicate: SymWriter into Wine 1.1.27.
The installation goes well, but when launching the program, it crashes
starting the speech engine.
There is a downloadable demo at
http://www.widgit.com/support/symwriter/download/
Has anyone got any ideas?
Thanks
Darren
2016 Dec 13
2
LLD status update and performance chart
On Tue, Dec 13, 2016 at 11:02 AM, Mehdi Amini <mehdi.amini at apple.com> wrote:
>
> On Dec 13, 2016, at 10:06 AM, Rui Ueyama <ruiu at google.com> wrote:
>
> On Tue, Dec 13, 2016 at 9:28 AM, Mehdi Amini <mehdi.amini at apple.com>
> wrote:
>
>>
>> > On Dec 13, 2016, at 5:55 AM, Rafael Avila de Espindola via llvm-dev <
>> llvm-dev at
2016 Aug 18
5
fenv.h vs the optimizer
Howdy all,
I've been playing around with programs that use the C11 fenv.h.
It seems that, currently, the LLVM compiler does not regard to the
exception-flag side-effects of floating point operations?
When run on my macbook, the example code on
http://en.cppreference.com/w/c/numeric/fenv/FE_exceptions does not print
all the expected exceptions.
Other examples:
void foo() {
2017 Jan 17
5
Git Transition status?
On Jan 13, 2017, at 1:37 PM, Mehdi Amini via llvm-dev <llvm-dev at lists.llvm.org> wrote:
> The main outcome of the BoF had the dev meeting was that we agree’d that moving to GitHub was the best choice forward for LLVM (IIRC only one person in the room expressed concerned about GitHub, but he said he had personal grief with them and nothing specific for LLVM).
>
> The unknown that
2013 Oct 03
2
SSweibull() : problems with step factor and singular gradient
SSweibull() : problems with step factor and singular gradient
Hello
I am working with growth data of ~4000 tree seedlings and trying to fit non-linear Weibull growth curves through the data of each plant. Since they differ a lot in their shape, initial parameters cannot be set for all plants. That’s why I use the self-starting function SSweibull().
However, I often got two error messages:
2016 Dec 13
0
LLD status update and performance chart
> On Dec 13, 2016, at 11:08 AM, Rui Ueyama <ruiu at google.com> wrote:
>
> On Tue, Dec 13, 2016 at 11:02 AM, Mehdi Amini <mehdi.amini at apple.com <mailto:mehdi.amini at apple.com>> wrote:
>
>> On Dec 13, 2016, at 10:06 AM, Rui Ueyama <ruiu at google.com <mailto:ruiu at google.com>> wrote:
>>
>> On Tue, Dec 13, 2016 at 9:28 AM, Mehdi