Displaying 20 results from an estimated 6000 matches similar to: "to modify a matrix"
2003 Feb 08
3
to modify a vector
Hi All.
I am quite a newbie to R.
This is a basic question.
I like to modify elements of a vector.
For Example:
a1 <- c(1,2,3,4,3,5)
TThe following program sentence does not work but the intention is;
if (a1==3) a1*3 .
3 in the vector should be changed to 9, and
the resulted vector is (1,2,9,4,9,5).
How can I get the result?
Thanks in advance for help.
-------========--------
mitsu5
2003 May 20
1
How to use pakcage SEM
Hi.
I have tried to use Package "SEM".
As a learning, I try to convert a program running well of EQS
which is as follows to SEM:
### EQS ###
/SPECIFICATION
CAS=100; VAR=5 MAT=COR; ANA=COR;
/EQUATIONS
V1=*F1+E1; V2=*F1+E2; V3=*F1+*F2+E3; V4=**F1+*F2*E4;
V5=*F2+E5;
/VAR
E1 TO E5=*; F1*1.0; F2=1.0;
/COV
E1,E2=*; F1,F2=*:
/PRINT
FIT ALL;
/MATRIX ......
/END
This is the converted SEM
2003 May 24
1
Can Package SEM do mean structural analysis?
Hi.
I am wondering whether Package SEM can do with intercepts and
means in its structural analysis.
If it can not calculate, how can I make a supplemental function
in R?
Many thanks in advance.
--------========----------
Mitsuo Igarashi
mitsu5 at ruby.famille.ne.jp
2003 Feb 09
0
to modify a matrix : Summary
I truly thank for evrybody to give me many very
good answers and suggestions.
I like to summarize the replies with their results
when excuted on R and with my comments.
My question is
> x <- matrix(1:10.,5)
> x
[,1] [,2]
[1,] 1 6
[2,] 2 7
[3,] 3 8
[4,] 4 9
[5,] 5 10
there is a matrix. On condition x[? ,1]=3, how to modify the
appropriate location to be
2013 Jan 08
4
Logical operator and lists
Hello R-Helpers,
I have a slight problem with the expresion data[data==""] <- NA which works
well for a data.frame. But now i must use the same for a list of
data.frames.
My idea is data[[]][data==""] but it don´t work.
Thanks!!
Dominic
[[alternative HTML version deleted]]
2009 Dec 07
3
Regular expression help
Hi there
I have a string like this i want to extract 9831019 from this string i used
a regular expresion \d+ by which i can only make it to see 7 and returns.
This type of number(9831019) appears in any part of the string and is
definitely more than 5 digits all the time and i want to give that as a
condition
UV7C11-F9-E1 MCS#9831019
MCS Lot #9512516"
how do i go abt it
Ramya
--
View
2013 Jan 31
2
evaluar una exprseion
Hola a todos,
Me gustaria saber como puedo evaluar / obtener el resultado guardado en un
objeto
cuando este se ejecuta. Quiero decir, el resultado de la siguiente
expresion:
> paste("res_UP_sep_dec_","16_17_18",sep="")
[1] "res_UP_sep_dec_16_17_18"
es un objeto (una lista) cuyo nombre es precisamente res_UP_sep_dec_16_17_18
>
2013 Dec 03
1
caracteres como argumentos
r-help-es,
en muchas situaciones me encuentro con la necesidad de pasar
el nobre de un objeto como argumento a una función:
for (i in 1:3)
cat(paste( "avglrss",i," <- ", "scan(\"","avgl",i,".rep","\"",",skip=7",")"
,sep=""))
en este ejemplo estoy creando objetos "avglrss1",
2009 Jul 31
1
asterisk 1.6 call forwarding
Dear All,
I'n trying to make a simple call forwarding, however I have small
problem when evaluating an expresion.
Here is my extensions.conf
...
; Unconditional Call Forward
exten => _#21*X.,1,Set(DB(CFIM/${CALLERID(num)})=${EXTEN:4})
exten => _#21*X.,2,Hangup()
exten => #21#,1,Set(ignored=${DB_DELETE(CFIM/${CALLERID(num)})})
exten => #21#,2,Hangup()
...
exten =>
2009 Dec 11
1
ANNOUNCE: New version of Activa TAPI driver
hello,
there is new version of the best open source TAPI driver for Asterisk -
Activa 1.6.1
* NEW: Asterisk 1.6 compatibility (partially sponsored by IPEX a.s. http://www.ipex.cz)
* NEW: FEATURE_CODES standardization for AgentACD integration login, logout, ready, notReady.
* NEW: ActivaTSP x64 version.
* New: Windows 2008 Server compatibility.
* CHANGE: Some performance optimization.
* FIX:
2007 Dec 07
1
Internal functions
I've complex problem and this's idealization of it:
v=1:10
fx<-function(x){
v[x]=v[x]*2}
fy<-function(y){
fx(y)}
for(i in 1:10){
fy(i)}
How to modife expresion (and only that):
{v[x]=v[x]^2}
to achive the redefinetion of the values of vector v, the result should
be: v=(1:10)*2. I think, that could be done with using of internal
functions, but I'm not the programmer.
2012 Oct 04
1
(no subject)
producing a multi-figure plot, i am try to add beta_1, beta_2,.. beta_9 to
ylab using expression or substitution, but cannot work out like
for (i in 1:9){
plot(seq(1/m, 1-1/m, 1/m), beta.q[,i], type="l", col=1,
ylim=range(beta.q),
xlab="quantile", ylab=expresion(beta[i]))
}
any suggestions will be greatly appreciated.
DL
[[alternative HTML version deleted]]
2008 Feb 22
1
Calling R_PreserveObject from embedded R
Hello. This is my first post to the list, so first I'd like to thank
everybody for making and mantaining such a great product as R.
I'm writting a native binding to R from Dolphin Smalltalk. I've followed up
the examples of the documentation showing how to run R embedded, and I got
it partially working. However, I have a problem with the reference handling
of the R objects.
2009 Jan 29
1
a large file available?
I need to deal with a large file (about more than 2G [byte]) with
eventmachine.
I wrote a simple program with using "stream_file_data" as send a large file
from client to server. But It didn''t work.
Applying below a quick fix patch, I think it works well.
Could you go over this patch?
Regards,
--
Kuroishi Mitsuo
diff -rup
2016 Aug 18
2
Porcentajes por grupos
Hola Eric.
Muchas gracias por tu respuesta.
Intenté hacer lo mismo sobre una variable agregada a datos, de modo:
datos$p_Valores <- datos[, Valores/sum(Valores), by=MesAño]
pero no funciona, porque pega un data.table en una única variable:
In `[<-.data.table`(x, j = name, value = value) :
Supplied 2 items to be assigned to 5849 items of column 'pValores'
(recycled leaving remainder
2003 Apr 08
3
Multilevel Analyses in R
I am new to R and would like to get some practice analyzing multilevel data. I wonder if anyone can point me to a sample data set and command lines that I might replicate for a sample session. I would then compare my output with HLM output.
Any help is appreciated.
------
Harold C. Doran
Director of Research and Evaluation
New American Schools
675 N. Washington Street, Suite 220
Alexandria,
2001 Apr 28
9
two new packages
I've prepared preliminary versions of two packages that I plan eventually
to contribute to CRAN:
car (for "Companion to Applied Regression") is a package that provides a
variety of functions in support of linear and generalized linear models,
including regression diagnostics (e.g., studentized residuals, hat-values,
Cook's distances, dfbeta, dfbetas, added-variable plots,
2001 Apr 28
9
two new packages
I've prepared preliminary versions of two packages that I plan eventually
to contribute to CRAN:
car (for "Companion to Applied Regression") is a package that provides a
variety of functions in support of linear and generalized linear models,
including regression diagnostics (e.g., studentized residuals, hat-values,
Cook's distances, dfbeta, dfbetas, added-variable plots,
2001 Apr 28
9
two new packages
I've prepared preliminary versions of two packages that I plan eventually
to contribute to CRAN:
car (for "Companion to Applied Regression") is a package that provides a
variety of functions in support of linear and generalized linear models,
including regression diagnostics (e.g., studentized residuals, hat-values,
Cook's distances, dfbeta, dfbetas, added-variable plots,
2003 Jun 12
1
Problème en R
Bonjour,
Je suis ?tudiant stagiaire ? Paris et je rencontre quelques difficult?s en
programmation R.
J'ai une data frame compos?e de 4 colonnes et 250 lignes et dont chaque
ligne est une famille.
J'ai fait un tirage al?atoire avec remise des familles 250 fois ce qui
m'am?ne ? une nouvelle dataframe.
A cette nouvelle dataframe, j'applique un programme qui calcule 2 param?tre
X1