I am trying to encode arbitrary S3 objects by recursively looping over the
object and all its attributes. However, there is an unfortunate feature of
the attributes() function that is causing trouble. From the manual for
?attributes:
The names of a pairlist are not stored as attributes, but are re
Hi Jia,
On Mon, Feb 28, 2011 at 6:57 PM, chen jia wrote:
> The .schema of table annual_data3 is
> sqlite> .schema annual_data3
> CREATE TABLE "annual_data3"(
> PERMNO INT,
> DATE INT,
> CUSIP TEXT,
> EXCHCD INT,
> SICCD INT,
> SHROUT INT,
> PRC REAL,
> RET REAL,
> ...
> pret_var,
> pRE
Hi Laura,
May be yo meant:
diet <- matrix(c(24,134,9,52,23,72,12,15), ncol = 2, byrow = TRUE) # note
ncol = 2
rownames(diet) <- c("none", "healthy", "unhealthy", "dangerous")
colnames(diet) <- c('Yes', 'No')
diet
HTH,
Jorge
On Mon, Feb 28, 2011 at 9:17 PM, Laura Clasemann <> wrote:
>
> Hi,
>
Hi Laura,
If you type
diet
you will see that it has 4 columns and 2 rows. Since it has only 2
rows you cannot give it rownames of length 4.
Best,
Ista
On Tue, Mar 1, 2011 at 2:17 AM, Laura Clasemann wrote:
>
> Hi,
>
> I'm having difficulty with getting a table to show with
> multiple rows and
Hi,
I'm having difficulty with getting a table to show with
multiple rows and columns. Below is the commands that I've typed in and
errors that I am getting. Thank you.
Laura
Table trying to enter:
Diet: Binger-yes: Binger-No: Total:
None 24 134 158
Hi Seth,
Thanks for the reply. I provide info from sessionInfo() and about
schema that you ask. Please take a look.
The output from sessionInfo() is
> sessionInfo()
R version 2.12.2 (2011-02-25)
Platform: x86_64-pc-linux-gnu (64-bit)
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
[3] LC_T
Jim,
If repeated measurements on patients are correlated, then resampling all
measurements independently induces an incorrect sampling distribution
(=> incorrect variance) on a statistic of these data. One solution, as
you mention, is the block or cluster bootstrap, which preserves the
correlatio
Dear All
I now realized that it is not simple to deal with realworld problems!
This what I tried without any success:
a <- seq(1, nvar, by = 2)
b <- seq(2, nvar, by = 2)
#df2 <- transform(df2, ima1p1 = df2$x1[df2$Parent1], # Parent 1's
allele 1
#ima2p1 = df2$x2[df2$Parent1],
Hi dear all,
The code like this;
e <- rnorm(n=50, mean=0, sd=sqrt(0.5625))
x0 <- c(rep(1,50))
x1 <- rnorm(n=50,mean=2,sd=1)
x2 <- rnorm(n=50,mean=2,sd=1)
x3 <- rnorm(n=50,mean=2,sd=1)
x4 <- rnorm(n=50,mean=2,sd=1)
y <- 1+ 2*x1+4*x2+3*x3+2*x4+e
x2[1] = 10 #influential observarion
y[1] = 10
Terry, thanks very much!
Professor Langholz used a SAS software trick to estimate absolute risk by
creating a fake variable "entry_time" that is 0.001 less than the variable
"exit_time" (i.e. time to event), and then use both variables in Phreg. Is this
equivalent to your creating a dummy surv
You may try analysis of covariance.
But,as you say"There are no gender differences in age ",then why not combine
2 gender's age and ignore the gender?
2011/3/1 Jonathan DuBois
> Hi,
>
> I am new to R, so I am unsure of the formula to set up this analysis.
> I would like to run a linear model wit
On 2011-02-28 14:14, Schatzi wrote:
I am not sure how you simplified the model to:
y = a + b(1 - exp(kl)) - b exp(-kx)
I tried simplifying it but only got to:
y = a + b - b * exp(kl) * exp(-kx)
I agree that the model must not be identifiable. That makes sense,
especially given that removing eit
Hi Jon,
Just enter it as a predictor in the model. You almost can't go wrong
with this one. Usually I would caution you to convert your categorical
variables to factors and make sure the contrasts are set how you want
them, but in this case it doesn't matter because there are (I assume)
only two le
Hi,
I am new to R, so I am unsure of the formula to set up this analysis.
I would like to run a linear model with a continuous dependent
variable (brain volume) and a continuous independent variable (age)
while controlling for a categorical nuisance variable (gender).
Age and brain volume are cor
I am fitting quantile regression models using data collected from a
sample of 124 patients. When modeling cross-sectional associations, I
have noticed that nonparametric bootstrap estimates of the variances
of parameter estimates are much greater in magnitude than the
empirical Huber estimates der
Hi Jia,
On Mon, Feb 28, 2011 at 12:37 PM, chen jia wrote:
> When I extract data from SQLite to R, the data types (or modes) of the
> extracted data seems to be determined by the value of the first row.
> Please see the following example.
It would help to provide the output of sessionInfo() as we
Dennis,
Thank you,
John
John David Sorkin M.D., Ph.D.
Chief, Biostatistics and Informatics
University of Maryland School of Medicine Division of Gerontology
Baltimore VA Medical Center
10 North Greene Street
GRECC (BT/18/GR)
Baltimore, MD 21201-1524
(Phone) 410-605-7119
(Fax) 410-605-7913 (Plea
On 11-02-28 11:59 AM, Brant Inman wrote:
> Ben,
>
> Thanks for the response. Your method generates an answer that is
> slightly different than what I was looking for. In the Orthodont
> dataset there are 4 age groups (8, 10, 12, 14). I would like to
> calculate the correlation of "distance" for
Thanks for the reply Christian,
> I have never used mmlcr for this, but quite generally when fitting such
> models, the likelihood has often very many local optima. This means that the
> result of the EM (or a similar) algorithm depends on the initialisation,
> which in flexmix (and perhaps also i
I am not sure how you simplified the model to:
y = a + b(1 - exp(kl)) - b exp(-kx)
I tried simplifying it but only got to:
y = a + b - b * exp(kl) * exp(-kx)
I agree that the model must not be identifiable. That makes sense,
especially given that removing either a or l makes the model work. Can
On Feb 28, 2011; 10:33pm Gregory Macfarlane wrote:
>> It seems as though the mlogit.data command tries to reassign my
>> row.names,
>> and doesn't do it right. Is this accurate? How do I move forward?
Take the time to do as the posting guide asks you to do (and maybe consider
the possibility tha
I've been trying with no success to model mixtures of Gamma distributions using
the package flexmix (see examples below). Can anyone help me get it to model
better? Thanks very much.
-Ben
##
## Please help me get flexmix to correctly model mixtures of
## Gamma distributions. See examples below.
On 2011-02-28 12:54, gmacfarlane wrote:
I actually have exactly the same question as Maha, and I wish that Z had
answered the question instead of providing a lesson in streamlined code
(valuable, but not helpful).
I think that Achim answered as best one could, given that Maha
neglected, as you
Thank you for saving my day! Googled around but diden't find anything useful.
This worked :-)
--
View this message in context:
http://r.789695.n4.nabble.com/R-quadreg-tp3328275p3328724.html
Sent from the R help mailing list archive at Nabble.com.
__
R
I actually have exactly the same question as Maha, and I wish that Z had
answered the question instead of providing a lesson in streamlined code
(valuable, but not helpful).
It seems as though mlogit.data repopulates the row.names field, and that
this is where the duplication comes in.
hbwtrips<-
Well, since no one else has replied, let me state the obvious: The
model is nonidentifiable. It is of the form:
y = a + b(1 - exp(kl)) - b exp(-kx)
Suppose you have a solution. Suppose with your solution, a + b(1
-exp(kl)) = C, say. Then a = C - b(1-exp(kl)). Hence you have
generated an infinite
OK, I think I know what is the answer to this question - first I have to
define a rsnns object factory, create a network (specify its architecture)
and only THEN I can use train (this is what I have understood from the RSNNS
manual)
However, for the sake of not being stuck with this one, I used ML
Don't put the name of the dataset in the formula, use the data argument to lm
to provide that. A single period (".") on the right hand side of the formula
will represent all the columns in the data set that are not on the left hand
side (you can then use "-" to remove any other columns that you
On 2011-02-28 12:31, Jannis wrote:
No idea what this dotchart is actually meant to visualize but naming the
columns of the data matrix gives you names for your groups which are
also used to label the plot.
?dimnames
?colnames
HTH
Jannis
I think that David might need to assign row names.
@ Da
Hi:
On Mon, Feb 28, 2011 at 8:42 AM, John Sorkin wrote:
> R 2.10.0
> Windows XP
>
> I am trying to run lme. I receive the following error message:
> My lme code is:
> fitRandom <- lme(values ~ factor(subject),
> data=withindata)
>
Where's the random factor? Perhaps you mean
lme(values ~ 1, rand
I am trying to estimate multinomial logit models off of a .csv table in
IDCASE IDALT format where I have
ROWS HHID PERID CASE ALTNUM NUMALTS CHOSEN IVTT OVTT TVTT COST DIST
WKZONE HMZONE RSPOPDEN RSEMPDEN WKPOPDEN
1 12 11 1 5 1 13.38 2.00 15.38 70.63 7.
Hi,
I am trying use lm() on some data, the code works fine but I would
like to use a more efficient way to do this.
The data looks like this (the data is very sparse with a few 1s, -1s
and the rest 0s):
> head(adj0708)
MARGIN Poss P235 P247 P703 P218 P430 P489 P83 P307 P337
1 64.2857
By the way, sorry about the reposts. I subscribed but wasn't sure what was
happening. Hopefully this worked.
--
View this message in context:
http://r.789695.n4.nabble.com/nls-not-solving-tp3328647p3328659.html
Sent from the R help mailing list archive at Nabble.com.
___
I am running the following nls equation. I tried it with data that excel was
fitting and got the error:
singular gradient matrix at initial parameter estimates
I thought it was due to a low number of points (6), but when I create a
dataset, I get the same problem. If I remove the parameter "a," t
If no one is able to help with this issue, do you have any idea where I can
post this question to receive help? Thank you.
--
View this message in context:
http://r.789695.n4.nabble.com/nls-help-tp3328521p3328611.html
Sent from the R help mailing list archive at Nabble.com.
I am running the following nls equation. I tried it with data that excel was
fitting and got the error:
singular gradient matrix at initial parameter estimates
I thought it was due to a low number of points (6), but when I create a
dataset, I get the same problem. If I remove the parameter "a," th
Ben,
Thanks for the response. Your method generates an answer that is slightly different than what I
was looking for. In the Orthodont dataset there are 4 age groups (8, 10, 12, 14). I would like to
calculate the correlation of "distance" for all combinations of the categorical variable
"ag
Hello,
I would like to find the power of the comparison of two ROC curves (paired
data). Is there an R function that does this?
Thank you,
Alexandra
[[alternative HTML version deleted]]
__
R-help@r-project.org mailing list
https://stat.ethz
I am running the following nls equation. I tried it with data that excel was
fitting and got the error:
singular gradient matrix at initial parameter estimates
I thought it was due to a low number of points (6), but when I create a
dataset, I get the same problem. If I remove the parameter "a," t
Thanks Greg for all the suggestions.
-Abhi
On Sat, Feb 26, 2011 at 2:07 PM, Tal Galili wrote:
> Hello Abhishek,
> Also notice that if you are on windows, then rggobi doesn't work for the
> latest R (with ggobi 2.1.8) because of GTK/dll issues. In such a
> case, Greg's other suggestions are prob
Hey Muzna,
similar answer as to your other post. The R-list is not supposed to make
your homework for you (see posting guide). You should better discuss
this with the person who made the assignment. We will help you when you
have concrete questions.
Jannis
On 02/28/2011 05:25 PM, Muzna Alv
Hi there,
When I extract data from SQLite to R, the data types (or modes) of the
extracted data seems to be determined by the value of the first row.
Please see the following example.
When I put the missing values first, the column extracted is of the
mode character.
> str(dbGetQuery(sql.industry
I would transfer your matrix to a vector.assuming that your dataset
is called data.matrix:
as.vector(t(data.matrix[,-1]))
should give you what you want...
HTH
Jannis
On 02/28/2011 07:19 PM, Chuse chuse wrote:
Dear R user,
How can i plot this data as one time series - notice that it is
On Mon, Feb 28, 2011 at 08:41:02AM -0800, knut-o wrote:
> Hi
> I have a x-list and a y-list and I'm trying to make a line that goes ca.
> through the dots. I want to find a, b and c in ax^2 + bx + c.
> How to do?
Hi.
Try the following
x <- rnorm(100)
y <- 4*x^2 + 3*x + 2 + 0.2*rnorm(100)
z
I'm guessing this has something to do with numerical precision on the two
platforms.
Leo.
- Original Message -
From: Joshua Wiley
To: Axel Urbiz
Cc: R-help@r-project.org ; Ridgeway, Greg
Sent: Fri Feb 25 22:16:02 2011
Subject: Re: [R] Reproducibility issue in gbm (32 vs 64 bit)
Hi Axe
hello,
I'm working with a 4 dimensional NetCDF file, trying to calculate some
summary statistics on a parameter.
The dimensions are number of rows and columns, time and days. The
attribute in question in this case happens
to be a probability of woodstork foraging success. But it could be anythi
No idea what this dotchart is actually meant to visualize but naming the
columns of the data matrix gives you names for your groups which are
also used to label the plot.
?dimnames
?colnames
HTH
Jannis
On 02/28/2011 06:13 PM, David Lyon wrote:
HI everyone
Does anayone know how to add grou
Got it.. thanks to Jorge!
pop[1:which(with(pop, cumsum(cell) == 2)),]
Nico
2/28/2011 12:08 PM, Ista Zahn wrote:
I don't understand the question...
On Mon, Feb 28, 2011 at 2:46 PM, Nicolas Gutierrez wrote:
Hi All,
I have a data.frame:
pop
consumed ind recruits gonad cell
1516.
I don't understand the question...
On Mon, Feb 28, 2011 at 2:46 PM, Nicolas Gutierrez wrote:
> Hi All,
>
> I have a data.frame:
>
>>pop
>
> consumed ind recruits gonad cell
> 1 516.74 1 0.02 20.21 0.25
> 2 1143.20 1 0.02 20.21 0.50
> 3 250.00 1 0.02 20.21 0
Windows XP
R 2.10
I am trying to run lme and get the following error:
> fitRandom <- lme(values ~ subject,
+ data=withindata)
Error in getGroups.data.frame(dataMix, groups) :
Invalid formula for groups
my data follows, below which is a copy of all my code
>
> print(withindata)
subject
Hi All,
I have a data.frame:
>pop
consumed ind recruits gonad cell
1516.74 1 0.0220.21 0.25
2 1143.20 1 0.0220.21 0.50
3250.00 1 0.0220.21 0.25
4251.98 1 0.0218.69 0.25
5598.08 1 0.0218.69 0.25
6437.38 1 0.02
syngenta.com> writes:
> James,
> It seems the 2*mean(x) term is irrelevant if you are seeking to
> minimize sd. Then you want to sort the distances from smallest to
> largest. Then it seems clear that your five values will be adjacent in
> the list, since if you have a set of five adjacent value
You can debug this sort of thing yourself by altering
your function to tell you what its inputs are when
things go wrong. E.g., change your original
foo <- function(x) {
unlist(lapply(x, FUN = function(z) cumsum(z) - z))
}
to
foo <- function(x) {
retval <- unlist(lapply(x, FUN=
Hi,
This is not an official announcement, I just discovered that a new IDE
for R named RStudio was released today. Looks very very promising to
me!
http://www.rstudio.org
-J
__
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-
ok, third try. This is a repost of a message never made it
past mod as I cancelled while it was waiting to clean up some
code to at least make it close to working.
I think this does more or less what you want,
> library("VecStatGraphs2D")
>
> DrawDensityMap(x1,x2,PaintPoint=TRUE)
but if not
Dear R user,
How can i plot this data as one time series - notice that it is not column wise.
V1V2 V3 V4 V5 V6 V7
[1,] 1950.01 1.07 1.12 1.12 1.25 1.16 1.15
[2,] 1950.07 1.16 1.20 1.30 1.31 1.36 1.34
[3,] 1951.01 1.34 1.36 1.40 1.47 1.55 1.45
[4,] 1951.07 1.56 1.62 1
James,
It seems the 2*mean(x) term is irrelevant if you are seeking to minimize sd.
Then you want to sort the distances from smallest to largest. Then it seems
clear that your five values will be adjacent in the list, since if you have a
set of five adjacent values, exchanging any of them for
Hi,
I have uploaded a new version of the ascii package, it should be availble on
CRAN soon.
Major new features are:
- pandoc support (http://johnmacfarlane.net/pandoc/)
- an alternative to the Sweave "way" to create reports: see ?Report. This
feature needs a working installation of asciidoc, tx
I have to agree that it's pretty hard to take something that works and figure
out why it doesn't work :)
The only other suggestion is that sometimes I find that this sort of error goes
away if I add "drop=FALSE" to the subsetting, and, if so, that usually lets me
figure out why.
-Original
Hi
I have a x-list and a y-list and I'm trying to make a line that goes ca.
through the dots. I want to find a, b and c in ax^2 + bx + c.
How to do?
Thanks, Knut
--
View this message in context:
http://r.789695.n4.nabble.com/R-quadreg-tp3328275p3328275.html
Sent from the R help mailing list arc
Generally, you can save your excel spreadsheet as comma-separated values, and
then read with read.csv function: ?read.csv
Or, tab-separated values and use read.delim.
Then look at ?barplot
Possibly you would like to read the Intro to R on the CRAN website. Go to
www.r-project.org , find Docume
I have this assignment to do and after ten hours of constant trying my eyes
ache and i give up..
all i'm able to get is this plot
please help me
these are the commands i have used till now
read.table(file.choose(), sep=";", header=T)
read.table(file.choose(), sep=";", header=T)->areas
melt(area
Hi,
I apologize for sending this again but realized that the data I had originally
sent in my first email did not show correctly and wanted to send it again to
give a better idea of how I am trying to show my data within R. Thanks!
Laura
Diet: Binger-yes:
HI everyone
Does anayone know how to add group labels to dot charts
>From the R code below
a<-read.table("test2", sep="\t", header=TRUE)
dotchart(as.matrix(t()), main="test")
it generates from the datafile input below,
file test2 containing:
A B C D E
1 1
Hi Muzna,
how about you getting first familiar with the basics of R?
Have a look at the manuals on the CRAN webpage
(http://cran.r-project.org/) or get an introductive textbook. Your
questions are very basic so it will not be too hard for you to get
started. In case you get stuck with a partic
As said on CRAN@ before:
Run
update.packages(checkBuilt=TRUE)
and try again.
Uwe Ligges
On 28.02.2011 17:20, Matteo Pettinari wrote:
Dear R team
I have a problem with the installation of the RCOR package; any time I try to
install it I get the error message: Error: package 'ROCR' was bu
On 27.02.2011 22:59, Daniel Stahl wrote:
Dear all, I am trying to do a n-fold cross-validation for a regularized
discrimant function analysis using rda from the package klaR. However, I have
problems to predict the groups from the test/validation sample. The exmaples of
the R documantation a
John,
as.data.frame is a generic function that will call different methods
depending on what class of object you pass to it. The different
methods may have different arguments that they expect or honor.
The stringsAsFactors parameter is only used in certain methods of
as.data.frame. When you p
Hi John,
Use factor():
aframe2$x <- factor(aframe2$x)
Or, for all columns at once (there might be an easier solution):
aframe2 <- as.data.frame(lapply(aframe1, factor))
see ?factor
HTH,
Ivan
Le 2/28/2011 18:13, John Edwards a écrit :
Dear All,
I'm not sure if I understand the parameter stri
Dear All,
I'm not sure if I understand the parameter stringsAsFactors correctly. I'm
trying to convert the string columns in aframe1 to factors. But it
seems stringsAsFactors=T in as.data.frame() doesn't do anything. Could
anybody let know what is the correct way to converting strings to factors?
R 2.10.0
Windows XP
I am trying to run lme. I receive the following error message:
My lme code is:
fitRandom <- lme(values ~ factor(subject),
data=withindata)
Below I have printed the console output, and at the bottom of this message, I
have printed my code.
I hope someone can tell my what I a
Dear R team
I have a problem with the installation of the RCOR package; any time I try to
install it I get the error message: Error: package 'ROCR' was built before R
2.10.0: please re-install it.
What can I do to solve this problem?
Thank you
Kind regards
Dr. Matteo Pettinari
Senior Assistant
Thank you for your quick reply. The change in transparency makes a big
difference. I will have a look at the other packages to see if i can do
multiple colors.
--
View this message in context:
http://r.789695.n4.nabble.com/re-arranging-data-to-create-an-image-or-heatmap-tp3327986p3328227.html
On 28-Feb-11 15:51:17, JonC wrote:
> Hi, I am trying to simultaneously remove duplicate variables from two
> or more
> variables in a small R data.frame. I am trying to reproduce the SAS
> statements from a Proc Sort with Nodupkey for those familiar with SAS.
>
> Here's my example data :
>
> te
Dear Carson,
I have never used mmlcr for this, but quite generally when fitting such
models, the likelihood has often very many local optima. This means that
the result of the EM (or a similar) algorithm depends on the
initialisation, which in flexmix (and perhaps also in mmlcr) is done in a
Jon,
you need to combine the conditions into one logical value, e.g. cond1 & cond2,
e.g. !duplicated(test$date) & !duplicated(test$var2)
However, I doubt that this is what you want: you remove too many rows (rows
whose single values appeared already, even if the combination is unique).
Have
Hi Jon,
I think you made a mistake in your desired output.
If it is indeed a mistake, then this should do:
test[!duplicated(test[,c("date","var2")]),]
HTH,
Ivan
PS: think about dput() when you want to share objects, in this case
dput(test)
Le 2/28/2011 16:51, JonC a écrit :
Hi, I am tryin
Hi again,
It seems the problem can be solved by using the new package indicspecies,
function multipatt (setting duleg=T).
Good luck
Hans H.
--
View this message in context:
http://r.789695.n4.nabble.com/Trouble-using-duleg-from-labdsv-tp3306061p3328167.html
Sent from the R help mailing list ar
Hi, I am trying to simultaneously remove duplicate variables from two or more
variables in a small R data.frame. I am trying to reproduce the SAS
statements from a Proc Sort with Nodupkey for those familiar with SAS.
Here's my example data :
test <- read.csv("test.csv", sep=",", as.is=TRUE)
> t
Hi Michelle,
I experience exactly the same annoying problem. Have you come to a solution
since you posted your request for help?
Hans H.
--
View this message in context:
http://r.789695.n4.nabble.com/Trouble-using-duleg-from-labdsv-tp3306061p3328123.html
Sent from the R help mailing list archi
Hi,
It's hard (for me) to parse how the data you listed below is meant to
be structured.
There's a rather large document explaining different methods of
import/exporting data to/from R:
http://cran.r-project.org/doc/manuals/R-data.pdf
In short, though, if your data well structured in excel, you
Hi,
I was wondering if anyone could provide me with help in entering the dataset
below into R? I've been having a hard time in trying to figure out how to
assemble it into both a frequency table and a bar graph within R. I've been
trying to present the way I had the data arranged, as below,
> Hi, I am wondering if there is a package for doing conditional
logistic
> regression for nested case-control study as described in "Estimation
of
> absolute
> risk from nested case-control data" by Langholz and Borgan (1997)
where
> Horvitz-Thompson sampling weight (log of (number in the risk set
Hi,
After dozens of hours of testing, I have managed to prevent those run time
differences by set save.object in lattice.options to FALSE. I'm still not
sure how this option impacts my functions but setting it to FALSE
definitively solved the problem.
Sebastien
On Tue, Feb 22, 2011 at 1:20 PM,
On Mon, Feb 28, 2011 at 5:03 AM, zbynek.jano...@gmail.com
wrote:
> Thanks,
> Your advice solved the problem for one substitution, but I needed to
> substitute twice: first s = (a+b+c)/2
> and than c = sqrt(a^2 + b^2 -2*a*b*cos(gamma)) and I hoped I can do it
> simultaneously
There is no limitatio
Pierz,
- easy approximation: use coulours with alpha value for plotting points
> x <- runif (1000)
> y <- runif (1000) * x + x
> plot (x, y)
> plot (x, y, pch = 20, col = "#FF20")
- more sophisticated:
have a look at hexbin (package hexbin), levelplot (package lattice), package
ggplot2 wit
Dear list,
I have been comparing the outputs of two packages for latent class
regression, namely 'flexmix', and 'mmlcr'. What I have noticed is that
the flexmix package appears to come up with a much better fit than the
mmlcr package (based on logLik, AIC, BIC, and visual inspection). Has
anyone e
Let me start by introducing myself as a biologist with only a little
knowledge about programming in matlab and R. In the past I have succesfully
created my figures in matlab using the hist3d command, but I have not access
to matlab right now and would like to switch to R.
I have used the plot comm
Dear Vincy,
Try this:
C[is.nan(C)] <- 0
HTH,
Ivan
Le 2/28/2011 13:10, Vincy Pyne a écrit :
Dear R helpers
I seem to have one trivial problem but can't find solution to it.
Suppose I have following input.
A = c(1, 3, 0, 5, 8) # 3rd element is 0
B = c(100, 30, 0, 25, 4
Taylor Arnold and I have developed a package ks.test (available on R-Forge
in beta version) that modifies stats::ks.test to handle discrete null
distributions
for one-sample tests. We also have a draft of a paper we could provide (email
us). The package uses methodology of Conover (1972) and Gles
Dear R helpers
I seem to have one trivial problem but can't find solution to it.
Suppose I have following input.
A = c(1, 3, 0, 5, 8) # 3rd element is 0
B = c(100, 30, 0, 25, 40) # 3rd element is 0
C = A/B
> C
[1] 0.01 0.10 NaN 0.20 0.20
Obviously, I can't di
Dear R-community members.
I am really appreciate R-help group. Dennis has been extrremely helpful to
solve some of my questions. I am following Dennis recommendation in the
following email, yet I am stuck at another point (hope this will took me to
end of this project.
Ind <- c(1:5)
Parent1 <
Many thanks for the info
Nick Riches
On 28 February 2011 12:05, Sarah Goslee wrote:
> Hi Nick,
>
> You want:
> cbind(mydataframe, newvar)
>
> and possibly also a quick read of one of the intro to R documents available
> online.
>
> Sarah
>
> On Mon, Feb 28, 2011 at 6:55 AM, Nick Riches
> wrote
Hello,
Am 28.02.2011 um 12:57 schrieb Sarah Goslee:
> Stefan,
>
> I'm not entirely certain what you're doing. Providing a working example would
> make it much easier for us to offer suggestions. The graphics system you're
> using matters, for instance.
>
> Sarah
Thank you for your replay, Sara
> Date: Sun, 27 Feb 2011 14:31:57 -0800
[[elided Hotmail spam]]
> From: jwiley.ps...@gmail.com
> To: marchy...@hotmail.com
> CC: r-help@r-project.org
>
> On Sun, Feb 27, 2011 at 9:16 AM, Mike Marchywka wrote:
> > I can probably find more "negative" o
Hi Nick,
You want:
cbind(mydataframe, newvar)
and possibly also a quick read of one of the intro to R documents available
online.
Sarah
On Mon, Feb 28, 2011 at 6:55 AM, Nick Riches wrote:
> Hi
>
> I'm an R newbie. I can't seem to add new variables to data frames. Here are
> the stages
>
> (1)
Hi
I'm an R newbie. I can't seem to add new variables to data frames. Here are
the stages
(1) I import the data using read.csv.
(2) I fix it using fix(data)
(3) I create a new variable using
spos<-tagPOS(stim,language="en",model=NULL,tagdict=NULL).
(tagPOS is a function in the OpenNLP toolkit, w
Stefan,
I'm not entirely certain what you're doing. Providing a working example would
make it much easier for us to offer suggestions. The graphics system you're
using matters, for instance.
Sarah
On Mon, Feb 28, 2011 at 6:32 AM, Stefan Richter wrote:
> Hello,
>
> i have a plot with a horizonta
Hello,
i have a plot with a horizontal legend, and the legend entries are like:
c("A","B","ABCABCABC","D")
Then all entries in the legend get the width of "ABCABCABC". Is there a
possibility to change this so that all entries get only the width they need?
Thank you!
Stefan Richter
Dear Phil,
The sapply statement made it work. The function indeed needed evaluation
before plotting. Many thanks for the useful hint!
Lucas
--
View this message in context:
http://r.789695.n4.nabble.com/typecasting-a-function-from-character-to-double-tp3327555p3327755.html
Sent from the R help
1 - 100 of 120 matches
Mail list logo