Displaying 20 results from an estimated 10000 matches similar to: "Extracting tolerance in R?"
2007 Jul 04
10
A More efficient method?
Dear Rhelpers,
Is there a faster way than below to set a vector based on values from
another vector? I'd like to call a pre-existing function for this, but one
which can also handle an arbitrarily large number of categories. Any ideas?
Cat=c('a','a','a','b','b','b','a','a','b') # Categorical variable
2006 Mar 25
1
MenuRead() Question
Dear List-mates,
I'm trying to read a tk window menu from a file using {svWidgets} and
'menus.txt' but am receiving Warnings without seeing the desired
consequences of the call.
library(svWidgets)
tkWinAdd("KSesnMain",title="kLab Session Manager for R", pos="+0+0")
MenuRead(file="menus.txt")
Warning messages:
1: Unrecognized menu type for
2006 Jan 24
3
R-help Digest, Vol 35, Issue 24
Dear Prof Ripley,
First of all, unless you are an english professor, then I do not think you have
any business policing language. I'm still very much a student, both in R, and
regarding signal analysis. My competence on the subject as compared too your
own level of expertise, or my spelling for that matter, may be a contension for
you, but it would have been better had you kept that opinion
2008 Apr 10
2
Relational Databases or XML?
Dear R-Help,
I am working on a paper in an R course for large file support in R using scan(), relational databases, and XML. I have never used SQL or heirarchical document formats such as XML (except where it occurs without user interaction), and knowledge in RDBs and XML is lacking in my program. I have tried finding a working example for the novices-novice on the topic, read many postings, the
2006 Mar 09
1
Trellis - setting xlim or ylim by data range in whole column or row
Dear List-mates,
I have been trying to set up a 4x8 trellis plot (that is, 4 columns, 8
rows), and would like to have the axis limits set based on the data range of
rows (for ylim) and columns (for xlim). I've been using the call:
foo<-xyplot(y~x|Epoch+Subject,
type=c("l","r"),
par.strip.text=list(cex=0.5),
...)
and updating to see different effects of scale
2008 Apr 19
1
Inverse transform after applying function in frequency domain?
Dear R-Help,
I wish to simulate a process so that it has certain properties in the
frequency domain. What I attempted was to generate a random time-series
signal, use spec-pgram(), apply a function in the frequency domain, and then
inverse transform back to the time-domain. This idea does not seem as
straight forward in practice as I anticipated.
e.g.
x<-ts(rnorm(1000, 0,1), frequency=256)
2006 Mar 20
1
Platform independent dialogs & menus?
Dear list mates,
Are {utils} dialog box functions, and winMenuAdd... functions used to change
(e.g. Console) menus, platform dependent?
I'm writing a script loaded with .First that provides first time users in a
lab course with the ability to select, load, and change between what I
called a 'session' (more specific save that focuses on the session object I
defined rather than the
2005 Dec 06
1
extend.series not zero padding
Dear List,
I was trying to verify that I could use extend.series in the wavelets
package and kept getting an error when trying to use method="zero". I'm not
seeing where my syntax has gone awry.
According to the documentation, [see ?extend.series]
" method: A character string indicating which extension method to use.
Possible values are
2006 Jan 24
1
spec.pgram() normalized too what?
Dear list,
What on earth is spec.pgram() normalized too? If you would like to skip my
proof as to why it's not normed too the mean squared or sum squared
amplitude of the discrete function a[], feel free too skip the rest of the
message. If it is, but you know why it's not exact in spec.pgram() when it
should be, skip the rest of this message. The issue I refer herein refers
only too a
2007 Jan 17
2
Repeated measures
I am having a hard time understanding how to perform a "repeated
measures" type of ANOVA with R. When reading the document found here:
http://cran.r-project.org/doc/contrib/Lemon-kickstart/kr_repms.html
I find that there is a reference to a function make.rm () that is
supposed to rearrange a "one row per person" type of frame to a "one
row per observation" type
2010 Feb 13
2
lm function in R
Hello,
I am trying to learn how to perform Multiple Regression Analysis in R. I
decided to take a simple example given in this PDF:
http://www.utdallas.edu/~herve/abdi-prc-pretty.pdf
I created a small CSV called, students.csv that contains the following data:
s1 14 4 1
s2 23 4 2
s3 30 7 2
s4 50 7 4
s5 39 10 3
s6 67 10 6
Col headers: Student id, Memory span(Y), age(X1), speech rate(X2)
Now
2008 Dec 05
3
Logical inconsistency
Dear colleagues
Please could someone kindly explain the following inconsistencies I've discovered when performing logical calculations in R:
8.8 - 7.8 > 1
> TRUE
8.3 - 7.3 > 1
> TRUE
Thank you,
Emma Jane
[[alternative HTML version deleted]]
2006 Oct 19
5
binom.test
R-experts:
A quick question, please.
>From a lab exp, I got 12 positives out of 50.
To get 90% CI for this , I think binom.test might be the one to be used.
Is there a better way or function to calculate this?
> binom.test(x=12, n=50, p=12/50, conf.level = 0.90)
Exact binomial test
data: 12 and 50
number of successes = 12, number of trials = 50, p-value = 1
alternative
2009 Nov 27
2
matching and extracting data
Dear all,
I have querry on how to extract the data by matching between two data set where one has the same elements multiple times?
For example, I have two matrix X and Y.
> X
[,1] [,2] [,3]
1 A 5 P
2 B 6 P
3 C 7 P
4 D 5 Q
5 E 6 Q
6 F 7 Q
7 G 5 R
8 H 6 R
9 I 7
2007 Jan 27
3
how to handle a longitudinal data
i have a data set with repeated measures on same people, structure like
below:
id x1 x2 ...
001 10 20 ...
001 8 45 ...
001 4 2 ...
002 ....
002 ...
002 ....
002 ....
003 ....
.......
what is the easist way to show how many observations for each subject id?
[[alternative HTML version deleted]]
2010 May 13
3
How ls() only functions or anything else but functions?
Hello,
How ls() only functions or only data objects (basically anything other than
functions) such as data.frame, numeric ...?
John
[[alternative HTML version deleted]]
2008 Apr 14
3
Power curves
Hi,
I am trying to create a power curve to show how the power of a t-test varies depending on the mean. Any ideas how I should go about this?
Louisa
_________________________________________________________________
[[alternative HTML version deleted]]
2007 Jun 20
2
Extracting t-tests on coefficients in lm
I am writing a resampling program for multiple regression using lm(). I
resample the data 10,000 times, each time extracting the regression
coefficients. At present I extract the individual regression
coefficients using
brg = lm(Newdv~Teach + Exam + Knowledge + Grade + Enroll)
bcoef[i,] = brg$coef
This works fine.
But now I want to extract the t tests on these coefficients. I cannot
2007 Dec 19
3
median of binned values
Dear list,
I have a vector (array, table row, whatever is best) of frequency values
for categories (or bins), and I need to find the median category.
Trivial to do by hand, but I was wondering if there is a means to do it
in R in an elegant way.
The obvious medioan(vector) returns the median frequency for the binns,
and that is not what I want. i.e,:
freq
cat1 1
cat2 10
2009 Jun 12
3
Replacing 0s with NA
Hello
I have a dataset in which I would like to replace 0s with NAs. There is a
lot of information on how to replace NAs with 0, but I have struggled to
find anything with regards to doing the reverse. Any recommendations would
be great.
Cheers
Christine