On 04/10/2012 04:40 AM, Jason Rodriguez wrote:
Hello, I have a graphics-related question:
I was wondering if anyone knows of a way to create a bar chart that is colored
with a three-part gradient that changes at fixed y-values. Each bar needs to
fade green-to-yellow at Y=.10 and from yellow-to
On 04/09/2012 06:55 PM, bobo wrote:
Could anyone please direct me on how to make a nicer table in R? THANKS FOR
ALL THE HELP!
I would like to make a table with the following in it: estimate, t value,
significance, beta, standard errors, adjusted r squared, and residual
standard error (3 decimal
OK!
Thank you for your generous help.
I'll try to change the code by myself.
--
View this message in context:
http://r.789695.n4.nabble.com/How-to-get-the-SS-and-MS-from-oneway-test-tp4544417p4544741.html
Sent from the R help mailing list archive at Nabble.com.
__
Hi Experts,
This may be simple question, I want to create new variable "seg" and assign
values to it based on some conditions satisfied by each observation.
Here is the example:
##Below are the conditions
##if variable x2 gt 0 and x3 gt 200 then seg should take value 1,
##if variable x2 gt 100
I have got solution using within function as below
dd$Seg <- 1
dd <- within(dd, Seg[x2> 0 & x3> 200] <- 1)
dd <- within(dd, Seg[x2> 100 & x3> 300] <- 2)
dd <- within(dd, Seg[x2> 200 & x3> 400] <- 3)
dd <- within(dd, Seg[x2> 300 & x3> 500] <- 4)
I sthere any better way of doing it!!
--
View th
This was really a topic for R-devel rather than R-help.
It depends on the fine details of your build of gcc. R's configure sets
SHLIB_LDFLAGS=-shared for the GNU linker and SHLIB_LDFLAGS=-G for the
Solaris linker. That used to work on Opteron and still does on Sparc.
If the setting is wrong,
On 10-04-2012, at 08:44, aajit75 wrote:
> Hi Experts,
>
> This may be simple question, I want to create new variable "seg" and assign
> values to it based on some conditions satisfied by each observation.
>
> Here is the example:
> ##Below are the conditions
>
> ##if variable x2 gt 0 and x3 gt
Dear Members,
I have two estimated transition matrices and I want to compare them.
In fact I want to check the hypothesis if they come from the same process.
I tried to look for some test but all I found was independence test of
contingency tables.
The following code shows that the usual chi-squ
How do i make rpanel print the value of a calculation in the rpanel itself
- in a space just below the submit button?
The calculation uses user inputs (using rp.textentry) and takes the values
entered as input to the function via function (myRpanel)
e.g.
myfunction <- function(myRpanel){
z<- my
Hi
>
> You might want to re-read the "Intro to R" and the section on
> dataframes. Your spreadsheet is read into R as a dataframe which is
> very similar to an Excel spreadsheet. Exactly what problem are you
> having with it? Is it trying to access the data?
>
> 2012/4/6 Pedro Henrique :
> >
i have a matrix like
x1 x2 x3
y1 2 34 5656
y2 34 434 342
y3 234 43 34
i want to plot these values like here
http://www.almob.org/content/2/1/12/figure/F5?highres=y
The rainbow function could calculate a colour for each value.
But how van i generate the square pattern?
Kind regar
On 04/08/2012 02:11 AM, Jonas Stein wrote:
i have a matrix like
x1 x2 x3
y1 2 34 5656
y2 34 434 342
y3 234 43 34
i want to plot these values like here
http://www.almob.org/content/2/1/12/figure/F5?highres=y
The rainbow function could calculate a colour for each value.
But how va
Hi
>
> i have a matrix like
>
> x1 x2 x3
> y1 2 34 5656
> y2 34 434 342
> y3 234 43 34
>
> i want to plot these values like here
> http://www.almob.org/content/2/1/12/figure/F5?highres=y
>
> The rainbow function could calculate a colour for each value.
> But how van i generate t
Dear all, Does R use double precision for calculation as default?
If not, how to enforce double precision calculation in R for my
current calculation session?
I Use R-2.14.0 with windows XP.
Thanks,
__
R-help@r-project.org mailing list
https://stat.eth
Hi,
I think that any web search engine is your friend:
http://rwiki.sciviews.org/doku.php?id=misc:r_accuracy
Regards,
Pascal
De : Christofer Bogaso
À : r-help@r-project.org
Envoyé le : Mardi 10 avril 2012 18h18
Objet : [R] Double precision calculation
Dea
Dear community,
I have a question regarding the standard error of "marginal hazard ratio"
estimates from a cox proportional hazard model with an interaction term.
I have to dichotomous variables ADMA and ALA (both low/high) where I have
divided the continuous variables at a certain level.
I am aw
How do I remove a "$" character from a string sub() and gsub() with "$" or
"\$" as pattern do not work.
> sub("$","","ABC$DEF")
[1] "ABC$DEF"
> sub("\$","","ABC$DEF")
Error: '\$' is an unrecognized escape in character string starting "\$"
> sub(\$,"","ABC$DEF")
Error: unexpected input in "sub(\"
T
Hi guys,
I have a question. I am running 3 R sessions simultaneously for
different analysis. I found out that when R quit, only objects in one of
these sessions was saved in the work space. How can I save objects of
all 3 R sessions?
Thank you very much.
YA
Dear Nevil,
You have the escape the backslash:
> sub("\\$", "", "ABC$DEF")
[1] "ABCDEF"
I hope this helps,
John
John Fox
Sen. William McMaster Prof. of Social Statistics
Department of Sociology
McMaster University
Hamilton, Ontario, Canada
http:
On 10-Apr-2012 11:34:13 Nevil Amos wrote:
> How do I remove a "$" character from a string sub() and gsub() with "$" or
> "\$" as pattern do not work.
>> sub("$","","ABC$DEF")
> [1] "ABC$DEF"
>> sub("\$","","ABC$DEF")
> Error: '\$' is an unrecognized escape in character string starting "\$"
>> sub(\
Hi,
Try with a double back slash:
sub("\\$","","ABC$DEF")
HTH,
Ivan
--
Ivan CALANDRA
Université de Bourgogne
UMR CNRS/uB 6282 Biogéosciences
6 Boulevard Gabriel
21000 Dijon, FRANCE
+33(0)3.80.39.63.06
ivan.calan...@u-bourgogne.fr
http://biogeosciences.u-bourgogne.fr/calandra
Le 10/04/12 13:34
You'll need to save them manually to avoid name conflicts -- save.image() is
the function to do so but you need to give a file name.
Michael
On Apr 10, 2012, at 7:41 AM, ya wrote:
> Hi guys,
>
> I have a question. I am running 3 R sessions simultaneously for different
> analysis. I found ou
Best I understand it yes: I'm not sure if there's an easy way to
combine sessions beyond loading them all into a single session and
then saving that.
Michael
On Tue, Apr 10, 2012 at 8:01 AM, ya wrote:
> so, objects in 3 different sessions would be saved separately into 3
> different R image file
Hi
>
> You'll need to save them manually to avoid name conflicts --
save.image()
> is the function to do so but you need to give a file name.
Or it is necessary have separate folder for each R session.
Regards
Petr
>
> Michael
>
> On Apr 10, 2012, at 7:41 AM, ya wrote:
>
> > Hi guys,
>
Hey all,
I need some help with a cross validation. I'm new with R and as well with
statistics. I had a group work to create a tool for remote sensing class
that extracts the best bands of hyperspectral satellite images that describe
vegetation. Its a regression between a linear function of using a
“Within is working or not in loop”
for(j in 1:10){
card_bal <- as.numeric(segment_cuts$card_bal[[j]])
insurance_bal <- as.numeric(segment_cuts$insurance_bal[[j]])
data$segment_rank <-
within(data,segment_rank[ data$Total_Balance >= total_bal &
data$Insurance_Balance >= insurance_bal] <-
Hello,
vioravis wrote
>
> I have a sentence like the following:
>
> sentence <- "Part 1 is working, Part 2 is not working and Part 3 is
> working"
>
> I would like th get the total count of working and not working as Working
> = 2 and Not Working = 1.
>
> Can someone help with how can this b
I have a sentence like the following:
sentence <- "Part 1 is working, Part 2 is not working and Part 3 is working"
I would like th get the total count of working and not working as Working =
2 and Not Working = 1.
Can someone help with how can this be done in R??? Thank you.
Ravi
--
View thi
On Tue, Apr 10, 2012 at 7:34 AM, Nevil Amos wrote:
> How do I remove a "$" character from a string sub() and gsub() with "$" or
> "\$" as pattern do not work.
>> sub("$","","ABC$DEF")
> [1] "ABC$DEF"
>> sub("\$","","ABC$DEF")
> Error: '\$' is an unrecognized escape in character string starting "\$
On Apr 10, 2012, at 3:16 AM, aajit75 wrote:
I have got solution using within function as below
dd$Seg <- 1
dd <- within(dd, Seg[x2> 0 & x3> 200] <- 1)
In this instance the first of your assignments appears superfluous.
dd <- within(dd, Seg[x2> 100 & x3> 300] <- 2)
dd <- within(dd, Seg[x2>
On Apr 10, 2012, at 8:59 AM, David Winsemius wrote:
On Apr 10, 2012, at 3:16 AM, aajit75 wrote:
I have got solution using within function as below
dd$Seg <- 1
dd <- within(dd, Seg[x2> 0 & x3> 200] <- 1)
In this instance the first of your assignments appears superfluous.
dd <- within(dd,
Deae R helpers,
the problem I'm facing today is related to the manipulation of a string.
The string is coming from a a porosimeter, whose control is under a
complicate set-up of two computers
One (running on DOS) is controlling directly the hardware, while the
other (running on win XP) which proc
Hi,
I run R on a unix server and login from a Mac with ssh -X. When I want to run a
graphics function like hist, I get the following x11 message:
Error in X11(d$display, d$width, d$height, d$pointsize, d$gamma, d$colortype,
:
unable to start device X11cairo
In addition: Warning message:
In f
On Apr 10, 2012, at 9:44 AM, ottorino wrote:
Deae R helpers,
the problem I'm facing today is related to the manipulation of a
string.
The string is coming from a a porosimeter, whose control is under a
complicate set-up of two computers
One (running on DOS) is controlling directly the hard
Hi
I have four sets of datas
x1, x2, x3,y
I want to sactter plot between (x1,y) and line chart between (x2 ,y) and
(x3,y)
all these should come in a single graph
Can anyone help
-
Thanks in Advance
Arun
--
View this message in context:
http://r.789695.n4.nabble.com/plotting-mul
Is there a way to access the numeric results (standard deviation and
correlation) obtained with the taylor.diagram ?
--
View this message in context:
http://r.789695.n4.nabble.com/taylor-diagram-from-plotrix-package-tp4545669p4545669.html
Sent from the R help mailing list archive at Nabble.com.
I am working under R2.11.1 Windows and I was wondering why there is a
difference between
seq.int(0,1,by=0.1)[4]-0.3
seq.int(0,1,length.out=11)[4]-0.3
there is also the fact that
seq(0,1,by=0.1)[4]-0.3
seq(0,1,length.out=11)[4]-0.3
but I think this can be explained by floating precision...
A
Il giorno mar, 10/04/2012 alle 09.54 -0400, David Winsemius ha scritto:
> Perhaps, modulo encoding issues I'm not expert in, one more
> backslash
> than you tried:
>
> > gsub( "\\\xb2" , "2",
> "(MPa)\t(mm3)\t(nM)\t(mm3/g)\t(mm3/g)\t(%)\t(m
> \xb2/g)\t")
> [1] "(MPa)\t(mm3)\t(nM)\t(mm3/g)\t(mm
Hello Arunkamar!
Basically:
plot(x1,y)
lines(x2,y)
lines(x3,y)
You might need to adjust the first plot so all data is shown. For that you
could use something like
plot(c(min(x),max(x)) , c(min(y),max(y)),type="n")
x is all data from x1,x2,x3. type="n" says that these points won't be shown in
t
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 ca
R 2.14.1
OS X
Colleagues,
I am making a graphic with two y-axes. I create the label for the right-side
axis with:
mtext(side=4, line=1, "Some text")
The label is rotated 90° counterclockwise. I would prefer that it be rotated
90° clockwise. However, srt is not supported for mtext and
On 10-04-2012, at 15:54, Alexander wrote:
> I am working under R2.11.1 Windows and I was wondering why there is a
> difference between
>
> seq.int(0,1,by=0.1)[4]-0.3
> seq.int(0,1,length.out=11)[4]-0.3
>
> there is also the fact that
>
> seq(0,1,by=0.1)[4]-0.3
> seq(0,1,length.out=11)[4]-0.3
On Apr 10, 2012, at 10:21 AM, Dennis Fisher wrote:
R 2.14.1
OS X
Colleagues,
I am making a graphic with two y-axes. I create the label for the
right-side axis with:
mtext(side=4, line=1, "Some text")
The label is rotated 90° counterclockwise. I would prefer that it
be rotated 9
Dear all
Is it possible to set globally the option .progress = "text" to all
the apply functions in 'plyr'. For example, current default is
daply(..., .progress = "none"). I would like to set it to daply(...,
.progress = "text"), so as to avoid writing the argument every time I
call such a function
I've got the strange problem with clock24.plot that only the first data
point (phase = 23.38, size = 0.44) from the phases/sizes numeric vectors
is plotted.
Does anyone have an idea why this could be?
library(plotrix)
phases <- c(23.38, 22.29, 22.71)
sizes <- c(0.44, 0.30, 0.30)
clock24.plot(sizes
A slightly easier formulation of the second proposal from Jessica:
plot(c(0,0) , xlim = range(x1, x2, x3), ylim = range(y), type = "n")
will set the canvas correctly.
On Tue, Apr 10, 2012 at 10:10 AM, Jessica Streicher
wrote:
> Hello Arunkamar!
>
> Basically:
>
> plot(x1,y)
> lines(x2,y)
> line
Everyone,
I'm very new to R, especially when it comes to loops and functions, so
please bear with me if this is an elementary question. I cannot seem to
figure out how to construct a loop which runs a function until a certain
value is computed. For example, say I have the following:
num = numer
People, help me please!
How to use lm() function to defind a cofficient for 7-polinom, and what
expression should I put in /formula/
--
View this message in context:
http://r.789695.n4.nabble.com/lm-tp4545740p4545740.html
Sent from the R help mailing list archive at Nabble.com.
_
Dear All,
I have just uploaded a new version of the QCA (Qualitative Comparative
Analysis) on CRAN, and it will be propagated in a couple of days.
This is version 1.0-0 ("Easter edition") of the package, straight from
the previous version 0.6-5, and it represent a major re-write of the
package in
Complete newbie to R -- struggling with something which should be pretty
basic. Trying to create a simple data set (which I gather R refers to as a
data.frame). So
> a <- c(1,2,3,4,5);
> b <- c(0.3,0.4,0.5,0,6,0.7);
Stick the two together into a data frame (call test) using cbind
> test <- dat
Greetings:
rockchalk is a collection of functions to facilitate presentation of regression
models.
It includes some functions that I have been circulating for quite some time
(such as
"outreg") as well as several others. The main aim is to allow people who do not
understand very much R to surviv
Hello,
To use the octal code works with me.
# I've created a file with that byte only.
x <- readLines("ascii0178")
y <- c(as.character(1:4), x, as.character(6:10))
y
grep("\262", y) # should return 5
gsub("\262", "HERE", y)
Hope this helps,
Rui Barradas
--
View this message in context:
htt
Hello:
While running R doing the analysis of my data I (using packages such as
BIOMOD or e1071) get the following error as a result of several of my
analysis:
Error: cannot allocate vector of size 998.5 Mb
In addition: Warning messages:
1: In array(c(rep.int(c(1, numeric(n)), n - 1L), 1),
A few days ago I responded to Ramiro with a suggestion that turns out to be
incorrect.
> Ramiro
> >
> > I think the problem is the loop - R doesn't release memory allocated
> inside
> > an expression until the expression completes. A for loop is an
> expression,
> > so it duplicates fit and datase
P.S. : "\xb2" works but must be used with perl = TRUE.
# 'y' defined as above.
grep("\xb2", y, perl = TRUE)
gsub("\xb2", "HERE", y, perl = TRUE)
Rui Barradas
--
View this message in context:
http://r.789695.n4.nabble.com/substitution-of-the-ASCII-character-squared-AKA-2-AKA-alt-0178-with-a-tr
Berend Hasselman wrote
>
> On 10-04-2012, at 15:54, Alexander wrote:
>
>> I am working under R2.11.1 Windows and I was wondering why there is a
>> difference between
>>
>> seq.int(0,1,by=0.1)[4]-0.3
>> seq.int(0,1,length.out=11)[4]-0.3
>>
>> there is also the fact that
>>
>> seq(0,1,by=0.1)[
You might try the Defaults package.
Michael
On Tue, Apr 10, 2012 at 10:54 AM, Liviu Andronic wrote:
> Dear all
> Is it possible to set globally the option .progress = "text" to all
> the apply functions in 'plyr'. For example, current default is
> daply(..., .progress = "none"). I would like to
You might want to use a while loop instead, something like:
while(TRUE){
# Do things
# Test: if your condition has occured
if(conditionHappened) break # break will end loop.
}
Michael
On Tue, Apr 10, 2012 at 10:48 AM, Steve Lavrenz
wrote:
> Everyone,
>
> I'm very new to R, especially when
Hi Mariam,
Check out the ?poly function.
Best,
Jorge.-
On Tue, Apr 10, 2012 at 10:12 AM, Mariam <> wrote:
> People, help me please!
> How to use lm() function to defind a cofficient for 7-polinom, and what
> expression should I put in /formula/
>
> --
> View this message in context:
> http://r
Don't use cbind() -- it forces everything into a single type, here
string, which in turn becomes factor.
Simply,
data.frame(a, b, c)
Like David mentioned a few days ago, I have no idea who is promoting
this data.frame(cbind(...)) idiom, but it's a terrible idea (albeit
one that seems to be very
http://cran.r-project.org/doc/manuals/R-lang.html#while
i<-2
while(value <=100){
num[i] <- num[i-1] +5
value <- num[i]
i <- i+1
}
something like this?
greetings Jessi
Am 10.04.2012 um 16:48 schrieb Steve Lavrenz:
> Everyone,
>
> I'm very new to R, especially when it c
You probably have more objects in your workspace than you did
previously. Clean them out (or just use a new R session) and things
should go back to normal.
You might also want to follow up on the help(memory.size) hint though
-- doesn't Windows impose a memory limit unless you ask it for more?
Mi
Here are a couple of constructions that work.
albyn
===
num <- rep(0,10)
for (i in 2:10) {
num[i] <- num[i-1] + 5
if(num[i] > 20) break
}
> num
[1] 0 5 10 15 20 25 0 0 0 0
or
num <- rep(0,10)
done <- FALSE
i <- 2
while(!done){
What difference is it you are worried about:?
identical(seq.int(0,1,length.out = 11), seq.int(0,1, by = 0.1)) # TRUE
Though that may be OS dependent.
M
On Tue, Apr 10, 2012 at 10:51 AM, Alexander wrote:
>
> Berend Hasselman wrote
>>
>> On 10-04-2012, at 15:54, Alexander wrote:
>>
>>> I am work
Incoherent. Please read the posting guide . Also, no homework.
Bert
Sent from my iPhone -- please excuse typos.
On Apr 10, 2012, at 7:12 AM, Mariam wrote:
> People, help me please!
> How to use lm() function to defind a cofficient for 7-polinom, and what
> expression should I put in /formula/
Albyn,
Thanks for your help. This however, still assumes that I have to define an
array of length 10. Is there a way that I can construct this so that my
array is exactly as long as the number of spots I need to reach my threshold
value?
Thanks,
-Steve
-Original Message-
From: Albyn Jon
Still didn't work for me without cbind , although you really don't need it ;)
worked after i set options(stringsAsFactors=F).
> options(stringsAsFactors=F)
> df<-data.frame(intVec,chaVec)
> df
intVec chaVec
1 1 a
2 2 b
3 3 c
> df$chaVec
[1] "a" "b" "c"
documentat
cbind() works as well, but only if c is attached to the existing test variable:
> tst <- cbind( test, c )
>
> tst
>
ab
> x<-numeric(1)
> x
[1] 0
> x[2]<-2
> x
[1] 0 2
you don't really need to define the length?
Am 10.04.2012 um 17:45 schrieb Albyn Jones:
> Here are a couple of constructions that work.
>
> albyn
> ===
>
> num <- rep(0,10)
> for (i in 2:10) {
>
Hello everyone,
I'm trying to parallelize an R script I have written. To do this, I am
first trying to use the multicore package, because I've had some previous
success with that.
The function I'm trying to parallelize is illumqc. I'd like to create a
separate process for each of 8 files,
The key to using cv.glm is that you have to have a fitted model object with
all the data to validate. In your case, that would appear to be a model
like this:
lm(base[,ncol(base)]~NDI)
where NDI is calculated from two bands in the dataframe base. However, if
the ground truth data is independently c
Hi,
?sd
?cor.test
...
Regards,
Pascal
De : anaraster
À : r-help@r-project.org
Envoyé le : Mardi 10 avril 2012 22h50
Objet : [R] taylor.diagram from plotrix package
Is there a way to access the numeric results (standard deviation and
correlation) obtained with
As the error message suggests, see ?memory.size, and you'll find that the
problem is arising because R is running out of memory. If you were able to
run this analysis before, then one possible reason why it now fails is that
the workspace has increased in size in the interim - more objects and
resu
On Tue, Apr 10, 2012 at 5:32 PM, R. Michael Weylandt
wrote:
> You might try the Defaults package.
>
Thanks for the hint. Unfortunately
> library(Defaults)
> setDefaults('create_progress_bar', name = "text")
doesn't do the trick. But one can set defaults for each *ply()
function individually:
> s
Sorry, I missed that the OP's real question was in character/factor,
not in the "why are these all factors" bit...good catch.
Rant about cbind() still stands though. :-) [Your way with cbind()
would give him all characters, not some characters and some numerics
since cbind() gives a matrix by de
I don't know the multicore package, but if possible, it might be
easier to upgrade to 2.15 and use the new built-in parallel package
that was introduced in R 2.14.
Then your syntax would be something like
mclapply(files, illumqc)
Michael
On Tue, Apr 10, 2012 at 11:33 AM, Wyatt McMahon wrote:
>
On Apr 10, 2012, at 11:58 AM, Rainer Schuermann wrote:
cbind() works as well, but only if c is attached to the existing
test variable:
tst <- cbind( test, c )
tst
ab c
1 1 0.3 y1
2 2 0.4 y2
3 3 0.5 y3
4 4 0.6 y4
5 5 0.7 y5
str( tst )
'data.frame': 5 obs. of 3 va
On Apr 10, 2012, at 11:53 AM, Steve Lavrenz wrote:
Albyn,
Thanks for your help. This however, still assumes that I have to
define an
array of length 10. Is there a way that I can construct this so that
my
array is exactly as long as the number of spots I need to reach my
threshold
value
On Apr 10, 2012, at 12:19 PM, David Winsemius wrote:
On Apr 10, 2012, at 11:58 AM, Rainer Schuermann wrote:
cbind() works as well, but only if c is attached to the existing
test variable:
tst <- cbind( test, c )
tst
ab c
1 1 0.3 y1
2 2 0.4 y2
3 3 0.5 y3
4 4 0.6 y4
5
What's wrong with
num <- rep(0,10)
done <- FALSE
i <- 2
while(!done){
num[i] <- num[i-1] + 5
if(num[i] > 20) done <- TRUE
i <- i + 1
}
num <- num[1:(i-1)]
You can delete the unused tail when you finish. It
Do you need a loop at all?
Will this do the trick?
seq(from=0, to=100, by=5)
Jean
Steve Lavrenz wrote on 04/10/2012 09:48:34 AM:
> Everyone,
>
> I'm very new to R, especially when it comes to loops and functions, so
> please bear with me if this is an elementary question. I cannot seem to
>
I definitely need a loop - the example I gave was only a simple one. Say I
want to do more complex calculations in each step, such that the numeric
difference between consecutive terms is not constant.
I will try out some of the methods that have been shared so far. Thank you!
-Steve
Fr
Thank you Michael
It is indeed the OS
identical(seq.int(0,1,length.out = 11), seq.int(0,1, by = 0.1)) # FALSE
Michael Weylandt wrote
>
> What difference is it you are worried about:?
>
> identical(seq.int(0,1,length.out = 11), seq.int(0,1, by = 0.1)) # TRUE
>
> Though that may be OS dependen
Hi,
Sorry, I am bad with regular expression and a beginner with R. How do I get
only the numbers 0009987 from the following entry?
GO:0009987~cellular process
Thanks a lot,
Stella
--
View this message in context:
http://r.789695.n4.nabble.com/Get-part-of-a-GO-term-tp4546125p4546125.html
Sent f
While you can build up a vector like this in a for loop, this is exactly
the sort of construction that leads to excessive memory growth because on
each iteration of the loop R creates a new copy of the vector x - old
copies have no references to them, but are not deallocated until the next
automati
Is mgcv and particularly its gam available for Splus? I've been using it
happily in R and need to implement something in Splus for which the
automatic smoothing parameter selection is needed.
Thanks for any guidance,
David Katz
da...@davidkatzconsulting.com
--
View this message in context:
htt
Hello,
>
> In Reply To
> compare two matrices
> Apr 10, 2012; 9:26am — by Kehl Dániel Kehl Dániel
> Dear Members,
>
> I have two estimated transition matrices and I want to compare them.
> In fact I want to check the hypothesis if they come from the same process.
> I tried to look for some test
On Apr 10, 2012, at 1:08 PM, Steve Lavrenz wrote:
I definitely need a loop - the example I gave was only a simple one.
Say I
want to do more complex calculations in each step, such that the
numeric
difference between consecutive terms is not constant.
You can always use:
for( i in seq(0,
On 04/10/2012 09:11 AM, stella wrote:
Hi,
Sorry, I am bad with regular expression and a beginner with R. How do I get
only the numbers 0009987 from the following entry?
GO:0009987~cellular process
sub(".*:(.*)~.*", "\\1", "GO:009987~cellular process")
but you might also be interested in
s
Hi everyone,
Thank you so much for your help. I see that one can use tricks, such as double
brackets, and sparing use of gc() to help with memory usage in R, the fact is
that a new copy of the object is made every time a named object is assigned,
and R's garbage collection should take care of
On Apr 10, 2012, at 1:08 PM, Steve Lavrenz wrote:
I definitely need a loop - the example I gave was only a simple
one. Say I
want to do more complex calculations in each step, such that the
numeric
difference between consecutive terms is not constant.
I will try out some of the methods th
So it's a machine/OS issue: if you really want to trace it down, take
a look here: http://svn.r-project.org/R/trunk/src/main/seq.c
seq.int() in R goes to do_seq() in C, but at this point it's probably
best to identify it as floating-point gremlins and to work around.
Michael
On Tue, Apr 10, 2012
Hi,
I am very new to R and the stats world. I have enjoyed working with R so far
but I have come across an error message in a very simple command that I am
unable to resolve.
I bring data in through excel .csv files and check them to be sure R reads
them correctly and has everything assigned as
I am attempting to build a customized R installer on Windows, using the Inno
Setup installer.
I am following the instructions in Section 3.1.8 of the R Installation and
Administration Manual ("Building the Inno Setup installer"), which includes
the following passage:
An alternative way to c
How many levels can the the nlme function in nlme library handle when a
multilevel dataset is fitted? It will be greatly appreciated if any examples
with 3 or 4 levels can be shared. Thanks for your attention.
Hua
[[alternative HTML version deleted]]
_
If you brought the data in from Excel, it is probably a dataframe.
You probably need to read the "Intro to R" on how to access
information in a dataframe.
You should at least show what you did. most likely VIQ is a column in
your Excel file and depending on how you read it in, you would
probably
Hi All,
I have a self-cooked package and save it to a zip file after
running make, say named xxx.zip. After installing it to R by running "Install
packages from local zip files" under Packages menu in R (Windows), I realized I
needed to change some source codes and re-make it. My q
you need to re-install it.
---
Jeff NewmillerThe . . Go Live...
DCN:Basics: ##.#. ##.#. Live Go...
Live: OO#.. Dead: OO#.. Playi
Hi,
I've got the following data:
x<-c(1,3,5,7)
y<-c(37.98,11.68,3.65,3.93)
penetrationks28<-dataframe(x=x,y=y)
now I need to fit a non linear function so I did:
fit <- nls(y ~ I(a+b*exp(1)^(-c * x)), data = penetrationks28, start =
list(a=0,b = 1,c=1), trace = T)
The error message I get is:
Er
On Apr 10, 2012, at 4:03 PM, nerak13 wrote:
Hi,
I've got the following data:
x<-c(1,3,5,7)
y<-c(37.98,11.68,3.65,3.93)
penetrationks28<-dataframe(x=x,y=y)
now I need to fit a non linear function so I did:
fit <- nls(y ~ I(a+b*exp(1)^(-c * x)), data = penetrationks28, start =
list(a=0,b = 1,
1 - 100 of 130 matches
Mail list logo