Displaying 20 results from an estimated 300 matches similar to: "Generate strings from multiple variables"
2010 Aug 23
3
extracting p-values from Anova objects (from the car library)
Dear all,
is there anyone who can help me extracting p-values from an Anova object
from the car library? I can't seem to locate the p-values using
str(result) or str(summary(result)) in the example below
> A <- factor( rep(1:2,each=3) )
> B <- factor( rep(1:3,times=2) )
> idata <- data.frame(A,B)
> fit <- lm( cbind(a1_b1,a1_b2,a1_b3,a2_b1,a2_b2,a2_b3) ? sex,
2010 Aug 24
0
mlm for within subject design
Thank you for reading. I am trying to get sphericity values, and I understood I need to use mlm, but how do I implement a nested within subject design in mlm? I already read the R newsletter, fox chapter appendix, EZanova, and whatever I could find online.
My original ANOVA
anova(aov(resp ~ sucrose*citral, random =~1 | subject, data = p12bl, subset = exps==1))
Or
anova(aov(resp ~
2012 Jun 08
4
Sort 1-column dataframe with rownames
Hi,
I have a 1-column dataframe with rownames and I want to sort it
based on the single column. The typical procedure that is recommended
in diverse posts is to use order in the index. But that "destroys" my
dataframe structure. Probabaly it is a very simple solution. Here is a
short reproducable example:
x <- c(1,3,51,2,34,44,12,33,2,8)
df <- data.frame(x)
rownames(df) <-
2012 Mar 08
1
Save/Load function()-result to file in a loop
Hi,
I am looking for a way to save the result of a function, e.g the lm()-function to a file and reload it afterwards again. I'd like to do that in order to minimize the used memory when running the function in a loop. The actual function I want to store is the evaluate() from the dismo package.
I tried it with save() and load() but I am not sure if that is the way I should do it as I
2012 May 31
3
Remove columns from dataframe based on their statistics
Hi,
I have a dataframe and want to remove columns from it
that are populated with a similar value (for the total
column) (the variation of that column is 0). Is there an
easier way than to calculate the statistics and then
remove them by hand?
A <- runif(100)
B <- rep(1,100)
C <- rep(2.42,100)
D <- runif(100)
df <- data.frame(A,B,C,D) # if want to conditionally remove column B and
2012 Jun 11
2
question about changing certificate
Good day!
I'm having trouble changing certificate/keys for my dovecot(version 1.2.9).
When I set up the server (unbuntu lts 10.4.4) I did it with a self-signed certificate. I can't remember exactly what I did, just that I followed the wiki and it worked fine =)
Now I have to change the certificate because a friend bought an official one (from thawte) and I'm a bit stumped.
As dovecot
2012 Jun 13
0
High CPU usage
Hi Tanmay,
>Does compiling speex API with DISABLE_FLOAT_API and DISABLE_VBR solve the
>problem?
I remember that this fixed the problem. But at that time I also needed VBR so this was not an option.
As far as I know, it is related to some calculations that involve float denormals that cause the high CPU usage.
Today I'm still using the following code before speex_encoder_init and
2012 Feb 29
2
R newbie: Installation of package reshape exit status not 0
Hello,
sorry i'm an R newbie and wan't to install
ggplot2 on my ubuntu system.
during installation i got the error warning:
Warnmeldung:
In install.packages("reshape") :
Installation des Pakets 'reshape' hatte Exit-Status ungleich 0
Please, give me a idea, how can i fix this error/warning
--
Jetzt informieren: http://mobile.1und1.de/?ac=OM.PW.PW003K20328T7073a
2012 Mar 26
0
Enhance Pairs Scatterplot Matrix
Hi,
I am trying to do plot a scatterplot matrix using pairs() from
the package graphics. There are now a few things I'd like to improve
for a better understanding.
1) My scatterplot uses two log-scaled axis...as I
don't know how to set them in pairs() I calculated the log before but now
the labels are not as I want them. I'd like them as 10^1,10^2 etc.
What is the best way to handle
2012 Apr 02
1
Unwanted page break in Rd2pdf
Hi,
I want to create a pdf of my Man-pages from my package.
Therefore I run in the terminal Rd2pdf on the package and
a pdf of all the pages is created.
After the titlepage there is the general package page, which includes
"Description" and "Details" etc. Unfortunately after the Subtitle "Details" there is a pagebreak (and 3/4 white page) which I did not set
2012 Apr 10
0
Scatterplot matrix with partly transformed axis
Hi,
I am wondering if anybody has experience with
scatterplot matrices where some (but NOT all) axis
are transformed and the labels are nicely plotted.
So far I looked into
1) pairs()
2) scatterplotMatrix() from package 'car'
3) splom() from packagae 'lattice'
4) plotmatrix() from 'ggplot2'
I can see no easy way to get what I want which is:
*) a scatterplot matrix of
2012 May 02
1
Two ecdf with log-scales
Hi,
i want to plot empirical cumulative density functions for two variables in
one plot. For better visualizing the differences in the two cumulative curves I'd like to log-scale the axis.
So far I found 3 possible functions to plot ecdf:
1) ecdf() from the package 'stats'. I don't know how to successfully set the log.scales? Combining two plots is not a problem:
plot(ecdf(x1))
2012 May 04
1
Absolute cumulative curve with ecdf/stepfun?
Hi,
I have two variables ranging both from 0 to 1 (n=500 each).
Now I am interested in plotting them both in one plot (using ggplot2).
So far I used ecdf() (from an example I found with google) to get
values for the cumulatice distribution function which gives a relative
curve. I also want to do the same plot but using absolute cumulative
values instead of relative. Can that be done with ecdf or
2012 Jun 14
0
Complex summary of counts of rank positions over multiple dataframes
Hi,
I've kind of a tricky question, which I don't know how to solve yet:
I get multiple dataframes loaded (readRDS) in a loop function. Each loaded dataframe contains two columns one with a var-name and one with a value. The rownumber (order) is very important as it is a value of the rank (1:x).
A example with a similar looped structure:
df1 <-
2012 Jun 01
1
Redefine multiple columns (using grep) as factor variables
Hi,
I have a dataframe with around 100 columns. Now I want
to redefine some of the columns as factors (using as.factor).
Luckily all the names of the columns I want to redefine start with
"crast". Thus I thought I can use grep() for that purpose...
...I found an example for redefining a single column as factor
but that is not working with multiple columns I get from grep()...
what I
2012 Apr 02
1
Make package out of own function
Hello,
I already posted that on stackoverflow[1], but although it's crossposting,
I think this question can probably easier to be answered by other R-users on this list, which maintain packages etc.
I would like to make a package out of a function. The function
is working in a script, but when I install and load it as library()
I get an error. The example-function is:
#Make generic function
2012 Jun 08
1
dovecot ignores entries in virtual_alias_maps when using dovecot lda
hello list,
i need help. dovecot dont look into my virtual_alias_maps .
i set via postzfixadmin an alias postmaster at domain.tld to
newmail at domainother.tld.
when i send mails to postmaster at domain.tld mails are rejected. dovecot
authworker tells
me in log: user unknown.
but i can request the data via postmap -v -q postmaster at domain.tld
mysql:/etc/postfix/mysql_virtual_alias.cf
and get
2012 Jun 14
1
High CPU usage
Hi Mark,
Code below:
int16_t* samples;
int16_t* fbSilenceFrame;
void *fSpeexState;
float eng(0.f);
int speexFrameSize(0);
speex_encoder_ctl(speexState, SPEEX_GET_FRAME_SIZE, &speexFrameSize);
for (int i = 0; i < speexFrameSize; i++)
{
eng += samples[i] * samples[i];
}
if (eng / speexFrameSize < 3.f)
{
memcpy(samples, silenceFrame, speexFrameSize * sizeof(int16_t));
}
where
2012 Jun 22
6
Definition list as image caption
recently though about image captions, then i realized that this could be achiebed by Markdown Extra's definition list feature:
![alttext](http://exampl.com/img.jpg)
: here goes the *caption*
What do you think?
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2012 Jun 20
2
TINC - sometimes working a bit
Hello everyone!
I'm trying to get tinc running, but couldn't make it until now...
My current situation is: all tincs are connected, but there ist (almost) no traffic: Only two PCs are able to ping to another, but not to itself.
Let me explain, what I'm planning to do:
I've got four networks:
PROM: 10.69.0.0/16
PAN: 192.168.30.0/24 (I'm afraid, I can't change PAN to