Displaying 20 results from an estimated 100 matches similar to: "Vector of matrix"
2006 Apr 20
3
The contrary of command %in%
Dear r-list,
I've got a data base:
> HData[1:10,]
NumTree Site Species Date Age DBH H IdentTree
1 1 Queige Spruce 2002 184 49 33.5 Queige 1
2 2 Queige Fir 2002 NA 5 4.6 Queige 2
3 3 Queige Fir 2002 25 8 6.6 Queige 3
4 4 Queige Spruce 2002 198 47 32.5 Queige 4
5 5 Queige Fir 2002 200 59 35.3 Queige 5
6 6 Queige
2007 Jul 06
3
?replace characters within vector data
Hi List,
I want replace characters within a vector. Outside R I could use sed,
but I'd like to automate it in R. For example
vectorx
xxxyyz
xxxyyza
xxxyyzzb
I want to change to:
vectorx
aaayyz
aaayyza
aaayyzzb
The obvious replace command only deals with whole data entries?
Any hints would be appreciated.
Thanks
Herry
2004 Dec 31
2
Supressing empty sections with Sweave
Dear useRs,
I'm writing regular survey reports using Sweave. Each
report has several sections along the lines of:
\section*{Disease X}
<<MapX,fig=TRUE,echo=FALSE>>=
image(vectorx,vectory,matrixz)
@
Notes with or without Sexpr{a}.
\vfill
\pagebreak
\section*{Disease Y}
<<MapY,fig=TRUE,echo=FALSE>>=
...etc.
Often one or more of the diseases is not observed (all
2007 Apr 20
3
Hi
Please add me to mailing list.
regards
Astha
************************************** See what's free at http://www.aol.com.
[[alternative HTML version deleted]]
2007 Apr 19
4
hello
ok how can I do to cancel le function factor for the moment ican't do this and I'm stuck with my problem for exemple
Id_Rep Id_Geno Val_O Id_TrT1
1 1 64238 145 2
2 1 64238 1 1
3 1 64238 2 1
4 1 64238 1 1
5 1 64238 1 1
6 1 64238 2 1
7 1 64238 1 1
8 2
2005 Jul 06
2
Plotting confidence intervals for lme
Hello and sorry to disturb.
I'm trying to plot the confidence intervals for the fixed effects of a lme.
I want to obtain graphically, if it is possible, a bar with Estimate, upper
and lower CI for each level of the factors.
I know how to do for a lm model but for a lme one, I tried with
plot(intervals(...)) and plot(ci(...)) from the gmodels package but it
doesn't work well.
Thanks
2005 Jul 13
1
Name for factor's levels with contr.sum
Good morning,
I used in R contr.sum for the contrast in a lme model:
> options(contrasts=c("contr.sum","contr.poly"))
> Septo5.lme<-lme(Septo~Variete+DateSemi,Data4.Iso,random=~1|LieuDit)
> intervals(Septo5.lme)$fixed
lower est. upper
(Intercept) 17.0644033 23.106110 29.147816
Variete1 9.5819873 17.335324 25.088661
Variete2 -3.3794907 6.816101 17.011692
Variete3
2010 May 28
3
how to create automatically names for vectors in a loop?
Hi,
I want to generate a number of vectors and store them with different names, like this:
x=1
while (x<100)
{
vector#x# = rnorm(100)
x=x+1
}
where each vector has, at its hand, instead of #x# a number which goes from 1 to 99.
How can I do this?
Thanks
Gabriele Zoppoli, MD
Ph.D. Fellow, Experimental and Clinical Oncology and Hematology, University of Genova, Genova, Italy
Guest
2005 Jun 30
2
Linear Models with mean as Intercept.
Dear advanced statisticians,
*******Objectif********
I try to set up linear models with mean as intercept:
Answer: y
Variable: x, as factor of two modalities: x(1), x(2).
I would like to have a model as:
y = mean(y)+A(i)+residuals,
with i in (1,2) and A(1) coefficient for x(1) and A(2) coefficient for x(2).
*******Trials in R*******
## Firstly:
I write in R:
>Model<-lm(y~x,Data)
2006 May 26
2
Try to debbug R script
Hi,
I have a bug and I don't find it. Can u help me please.
In attachement :
- My script file : CPU_study.txt
- My data sample file : a.txt
When I use it, the error message is :
> source("H:/R/_workspace/CPU_study_1.R")
Erreur dans "[<-"(`*tmp*`, i, k, value = numeric(0)) : rien ? remplacer
(= error in ... nothing to replace)
I try a lot of thing but it
2005 Jul 27
1
Question on glm for Poisson distribution.
Good afternoon,
I REALLY try to answer to my question as an autonomous student searching in
the huge pile of papers on my desk and on the Internet but I can't find out
the solution.
Would you mind giving me some help? Please.
#########################################
I'm trying to use glm with factors:
> Pyr.1.glm<-glm(Pyrale~Trait,DataRav,family=poisson)
If I have correctly
2017 Jul 27
2
Error in `[[<-.data.frame`(`*tmp*`, alt.name, value = integer(0)) with mlogit
Hi,
Please help about the error I am getting after the h1.dat<- line :
this line worked with much more independant variables and bigger data.
This time I want to work with just 2 variables cteD & cteTh.
What is wrong ?
> setwd("C:/Rstudio/Trot")
> library(mlogit)
> horse1.data<-read.csv("cte2.csv")
>
2017 Jul 27
3
Error in `[[<-.data.frame`(`*tmp*`, alt.name, value = integer(0)) with mlogit
> On 27 Jul 2017, at 18:03 , Jeff Newmiller <jdnewmil at dcn.davis.ca.us> wrote:
>
> Looks like you need to pay attention to how you read in your data. In general, you should always execute one statement at a time until you know your script is working. All the errors after the first one are unhelpful to you or us.
>
> If you actually pay attention to what is in your
2008 Jan 12
1
Problem with strptime
Dear R-list,
I'm experiencing some problems while using "strptime", which I don't understand.
> str(natver)
'data.frame': 154 obs. of 8 variables:
$ ID : Factor w/ 14 levels "AC","ALS","FA",..: 10 11 9 1 4 8 13 3 14 12 ...
$ CdBMin : int 22 22 26 26 28 23 27 23 25 26 ...
$ CdBMax : int 22 24 27 26 32 26 29 30 29 28 ...
$
2017 Jul 27
0
Error in `[[<-.data.frame`(`*tmp*`, alt.name, value = integer(0)) with mlogit
Looks like you need to pay attention to how you read in your data. In general, you should always execute one statement at a time until you know your script is working. All the errors after the first one are unhelpful to you or us.
If you actually pay attention to what is in your horse.data data frame after you have read it in, the columns did not get separated out. The "csv" in in
2008 Mar 08
1
Installing odesolve package of R under Ubuntu (Debian) Linux
Bonjour,
Je cherche à installer le package odesolve du logiciel de statistique R sous
Ubuntu Linux.
C'est un package qui contient des fonctions appelant du code en Fortran.
A l'installation sous R via le shell, j'obtiens l'erreur suivante:
Hi,
I tried to install odesolve package of R under Ubuntu Linux.
But I got the following error:
ghislain@ghislain-laptop:~$ sudo R
[sudo]
2007 Apr 19
1
Error with strptime
Dear All,
I am trying to convert to POSIXct after pasting a date and a time in
character format with strptime.
It is probably obvious but I don't understand why I get an error message
after
bsamp$spltime<-strptime(test,format="%d-%B-%y %H:%M")
whereas I can get what I want if I do it in 2 steps and rbinding ?
Thanks and best regards, Jean-Louis
This is the R console output
2005 Aug 17
1
error with rd /s in windows 2000 shell
Hi all,
We are running a samba (3.0.14a-3 / sarge) server with windows 2000
Client. (recent remplacement of a NT server)
The problem his that when I try to recursivly remove a folder on a samba
share with "rd /s" on the windows shell, the command return an error and
stop deletting subfile when the number of subfile exceed (exactly) 130.
At the end of the command only 130 are deleted
2017 Jul 27
0
Error in `[[<-.data.frame`(`*tmp*`, alt.name, value = integer(0)) with mlogit
Hello,
Inline.
Em 27-07-2017 20:36, peter dalgaard escreveu:
>
>> On 27 Jul 2017, at 18:03 , Jeff Newmiller <jdnewmil at dcn.davis.ca.us> wrote:
>>
>> Looks like you need to pay attention to how you read in your data. In general, you should always execute one statement at a time until you know your script is working. All the errors after the first one are unhelpful
2002 Aug 14
1
ACL in Linux and AIX
Hi,
As I can see in the last mailing list I am not the only one to get problems
with ACL support in Linux.
Whatever the samba version (2.2.4, 2.2.5) the main problem is how acl and
extended attributes can be implemented fine in linux.
I've installed samba on AIX systems where acl is implemented (native) and NT
ACL works fine at each time (the only difficulty there is that nsswitch is
not