Displaying 20 results from an estimated 8000 matches similar to: "Sweave and license message when loading mclust package"
2009 Nov 25
2
order of panels in xyplots
I'd like do a simple xyplot with customized order of panels and try to
understand how to use index.cond for that. Several attempts didn't
deliver the correct results. Now, I noticed the following:
> p <- xyplot(dur~roi|trial, data)
> p$index.cond
[[1]]
[1] 1 2 3 4 5 6 7 8 9 10
These numbers are "valid indexing vector for the integer vector
2010 Sep 27
7
Regular expressions: offsets of groups
Dear list!
> gregexpr("a+(b+)", "abcdaabbc")
[[1]]
[1] 1 5
attr(,"match.length")
[1] 2 4
What I want is the offsets of the matches for the group (b+), i.e. 2
and 7, not the offsets of the complete matches. Is there a way in R
to get that?
I know about gsubgn and strapply, but they only give me the strings
matched by groups not their offsets.
I could write
2009 Feb 16
3
Applying functions to partitions
Hi list! I have a large matrix which I'd like to partition into blocks
and for each block I'd like to compute the mean. Following a example
where each letter marks a block of the partition:
a a a d g g
a a a d g g
a a a d g g
b b b e h h
b b b e h h
c c c f i i
I'm only interested in the resulting matrix of means. How can this be
done efficiently?
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 <-
2009 Dec 08
6
conditionally merging adjacent rows in a data frame
Hi, I have a data frame and want to merge adjacent rows if some condition is
met. There's an obvious solution using a loop but it is prohibitively slow
because my data frame is large. Is there an efficient canonical solution for
that?
> head(d)
rt dur tid mood roi x
55 5523 200 4 subj 9 5
56 5523 52 4 subj 7 31
57 5523 209 4 subj 4 9
58 5523 188 4 subj 4 7
2009 May 12
3
What's the best way to tell a function about relevant fields in data frames
Hi list,
I have a function that detects saccadic eye movements in a time series
of eye positions sampled at a rate of 250Hz. This function needs
three vectors: x-coordinate, y-coordinate, trial-id. This information
is usually contained in a data frame that also has some other fields.
The names of the fields are not standardized.
> head(eyemovements)
time x y trial
51
2010 Feb 06
3
melt on OSX ignores na.rm=T
Hi list,
I run R on Linux and OSX. On both systems I use R version 2.9.2 (2009-08-24)
and reshape version: 0.8.2 (2008-11-04). When I do a melt with
na.rm=T on a data frame I get different results on these systems:
library(reshape)
x <- read.table(textConnection("char trial wn
p E10I13D0 4
r E10I13D0 4
a E10I13D0 4
c E10I13D0 4
t E10I13D0 4
i E10I13D0 4
c E10I13D0 4
e E10I13D0
2009 Jan 31
1
Splitting a data frame with break points where factor changes value
I have a data frame called s3. This data frame has a column called
saccade which has two levels 1 and -1.
> head(s3$saccade, 100)
[1] NA NA NA NA -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1
[26] -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 1 1 1
[51] 1 1 1 1 1 1 1 1 1 1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1
[76] -1 -1 -1 -1 -1
2012 Feb 10
3
Creating XML document extremely slow
Hi list,
I'm using the package XML to create a simple XML document.
Unfortunately constructing the XML tree is extremely slow. My code
(see below) adds only about 100 nodes per second on an Intel i5
machine. There's clearly something wrong but I don't see what.
Here's a sample of the XML document:
<?xml version="1.0" encoding="utf-8"?>
2012 Feb 03
1
Resume processing after warning handler.
Dear list!
I have a script that processes a large number of data files. When one
file fails to process correctly, I want the script to write a message
and to continue with the next file. I achieved this with tryCatch:
for (f in files)
tryCatch({heavy.lifting(f)}, error=function(e) log.error.to.file(e))
I also want to log warning messages and tried something like this:
for (f in
2009 Jan 22
1
melt stumbles over deleted columns
I have a data frame that is the result of a cast (reshape) operation. I
deleted the variable column and tried to melt the resulting data frame.
Depending on which method I use to delete the column I get different
error messages when melting:
> head(tinfos)
vpn group trial_no item relation trial_type rt variable #
1 102 2 1 4351 diag1 distractor 8471 fix_d 27
2020 Jun 04
2
mclust package installation is preparing for lazy loading and never finishes
Hi,
After loading R 4.0.0 on Ubuntu 20.04.
R version 4.0.0 (2020-04-24) -- "Arbor Day"
Copyright (C) 2020 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()'
2009 Jun 18
1
"Normal" plot and xyplot side by side in one figure?
Hi list,
I want to place a plot (eg "plot(1:10)") and a xyplot side by side in
one figure. The two columns should have different widths. If I'm not
missing something, this rules out the standard way: par(mfcol=n).
I tried layout(), but it doesn't seem to like it when grid scribbles
into its views (the plot works but the view for the xyplot is left empty).
I would
2009 Jan 16
1
installing mclust and flexmix on linux
I've been trying to install some R packages such as mclust and flexmix on linux but have had the following error messages.
> I've been trying to install mclust on my notebook which has linpus linux lite os and I have installed R as well as some packages all right. However, when I tried to install mclust, it gave me the following messages. Any suggestions?
Tim
++++++++++++++++
2001 Oct 31
2
seg fault with mclust
Howdy,
I'm experiencing a segmentation fault when trying to load
mclust.so from mclust-1.1-4. I'm using R-1.3.1 on RedHat 6.2,
and `gcc --version` reports "egcs-2.91.66".
Any ideas?
-Andy
Package install:
> install.packages("mclust")
[stuff omitted]
Installing source package `mclust'
2005 Jan 06
2
Segmentation fault while using Mclust function of mclust library in R-2.0.1
Hi, all;
I got an unusual error while using mclust library 2.1-7 on R 2.0.1.
When I tried to run Mclust(rnorm(100)), I got segmentation fault error.
Does anyone know what causes this problem?
I came across the same problem even when I tried to run the example shown in
Mclust help using iris data.
Thanks in advance,
Tae-Hoon Chung
--------------------------------------------------
Tae-Hoon Chung
2011 Dec 09
1
mclust
While looking at someone's question on this list led me to the mclust
package, and from there to its license.
Excerpts:
Except for strict academic use, use of MCLUST (by itself or through other
packages) requires payment of an annual license fee and completion of a
license agreement found at the following URL:
http://depts.washington.edu/ventures/UW_Technology/Express_Licenses/mclust.php
1.
2004 Aug 06
1
icecast-1.3.12 on SunOS
Thomas,
unfortunately it does slow down the machine. I am working in a chroot
enviroment and there are other users on the same box. Therefore it's of
special importance that I don't consume the cpu by myself.
Titus
Am Sonntag den, 15. September 2002, um 23:37, schrieb Thomas Vander
Stichele:
> Apart from what probably is a bad assumption in the code, does it
> actually
2003 Aug 05
2
Error on mclust
Hi All,
I am trying to cluster a one-dimensional data (see the file attached) using
Mclust() but got an error message like:
>Mclust(x)
Error in rep(1, n) : Object "n" not found
When I do a simulation sometimes it works sometimes doesn't.
>Mclust(c(rnorm(50),rnorm(56,-0.5)))
Error in rep(1, n) : Object "n" not found
>Mclust(c(rnorm(56),rnorm(56,-0.5)))
best
2008 Jul 21
1
Mclust - which cluster is each observation in?
I'm trying to test a method of identifying individuals (birds) based on
measured data (their calls).
I have test data from known individual birds, and I am using the Mclust
package to see if the program can correctly identify which calls come from
different birds.
So far, mclust has correctly ID'd the number of birds in the test data set
(i.e., the correct # of clusters). However I