Displaying 20 results from an estimated 6000 matches similar to: "sample matrix as a new object"
2005 Oct 19
3
npmc package
Hi
Does anyone know where is the package: npmc (Nonparametric Multiple
Comparisons).
I found the reference on R Site Search, but not the package itself on
CRAN as suggested.
Thanks
Mauricio
2006 Sep 20
5
multiple lines and plot
Hi. Please, how can I put together 2 or more lines at the same
scatterplot ? Example: measures of protein intake (quantitative) of 4
children over 30 days, by day. How to plot all children at same graphic:
Protein X Time ? Is there any command like "overlay" ?
Thank you,
Mauricio
2005 Sep 13
11
if() command
Hi everyone !
Could you please help me with this problem ?
I??ve trying to write a code that assign to a variable the content from
another, but all I??ve got is a message error. For example:
if (age <=10) {group == 1}
else if (age > 10 & age <= 20) {group == 2}
else {group == 3}
Syntax error
Or
if (age <=10) {group == 1}
else (age > 10 & age <= 20) {group == 2}
2007 Jan 25
7
filling the area
Please, how to fill the area under the curve?
x <- c(1:10)
y <- c(rnorm(10))
plot(x,y)
lines(x,y)
Thanks,
Mauricio Cardeal
2004 Feb 29
7
Proportions again
Hello.
I asked before and it was great, cause as a beginner I learned a lot. But, if I have this in R (1 and 2 are codes for sex):
> sex<-c(1,2,2,1,1,2,2,2)
> sex
[1] 1 2 2 1 1 2 2 2
I´d like to obtain the proportion according to sex.So I type:
> prop.table(sex)
[1] 0.07692308 0.15384615 0.15384615 0.07692308 0.07692308 0.15384615 0.15384615
[8] 0.15384615
The result is OK, but I
2006 Jul 11
2
new object
Um texto embutido e sem conjunto de caracteres especificado associado...
Nome: n?o dispon?vel
Url: https://stat.ethz.ch/pipermail/r-help/attachments/20060711/1da40382/attachment.pl
2006 May 03
2
mca id numbers
Is it possible to make disappear the id numbers from scatter.dudi (mc
analysis) ?
a <- as.factor(c(1, 2, 3, 2, 1))
b <- as.factor(c(3, 2, 3, 1, 1))
x <- as.factor(c(1, 2, 2, 1, 3))
y <- as.factor(c(2, 2, 3, 1, 1))
dat <- data.frame(a=a, b=b,x=x,y=y)
summary(dat)
dat
require(ade4)
dat.acm <- dudi.acm(dat, scann = FALSE, nf = 2)
scatter.dudi(dat.acm)
Thank you very much !
2004 Feb 11
6
lapply and dynamically linked functions
Hi all,
I'm trying to use lapply on a list with the following command:
out<-lapply(mylist,myfun,par1=p,par2=d) (1)
where
myfun<-function(x,par1,par1) {.....} (2)
now this function is in fact a wrapper for some Fortran code I have
written so I think this might be the problem. When I call lapply() as in
(1) I get the following message:
Error in get(x,
2005 Dec 13
1
sample matrix
Please, I??d like to store this sample matrix as a new object. How can I
do this ?
pulse <- c(67, 67, 68, 68, 68, 69, 69, 69, 69, 69, 70, 70, 70, 70, 71,
71, 72, 72, 73, 74)
m <- NULL
x <- 0
for (i in 1:5)
{
x <- sample(pulse,3)
m <- mean(x)
cat(x,m,"\n")
}
Thanks,
Mauricio
2006 Aug 02
2
missing value
Hi all
# I have this data set and how can I assign NA?s in just one command ?
And why the summary(dat) function preserves the value 9 as real. ?
x <- c(1,2,3,9,4)
y <- c(3,6,9,2,3)
z <- c(9,9,2,2,8)
w <- c(6,5,3,0,9)
dat <- cbind(x,y,z,w)
summary(dat)
x[x==9] <- NA
y[y==9] <- NA
z[z==9] <- NA
w[w==9] <- NA
summary(dat)
summary(x)
summary(y)
summary(z)
summary(w)
2006 May 02
0
factors and mca
Carlos
?mca states that mca works on a dataframe. As you've written it
is.data.frame(de) returns FALSE
Try
de <- data.frame(d,e) instead of de <- factor(c(d,e))
HTH
Peter Alspach
> -----Original Message-----
> From: r-help-bounces at stat.math.ethz.ch
> [mailto:r-help-bounces at stat.math.ethz.ch] On Behalf Of Carlos
> Mauricio Cardeal Mendes
> Sent: Wednesday,
2010 Jun 26
2
Recursive indexing failed at level 2
Dear fellow R users,
I am replacing elements of a list like so:
pulse_subset[[1:20]]=unlist(pulse[i])[1:20]
where pulse is a list of lists, and pulse [i] has >20 values.
This gives the error "Recursive Indexing failed at level 2". But,
interestingly this instruction is part of a loop which has gone through
about 200,000 iterations before giving this error.
Actual code:
>
2011 Mar 29
1
'RQuantLib for 2.12 version
Dear R users,
I have been trying to use RQuantLib in the 2.12.2 R version. I downloaded
the .zip file from
<http://sourceforge.net/projects/quantlib/files/QuantLib/>
http://sourceforge.net/projects/quantlib/files/QuantLib/ which didn't work,
so I
I downloaded the package source from
<http://sourceforge.net/projects/quantlib/files/QuantLib/1.0.1/>
2016 Jun 22
2
Ayuda sencilla (SQL)
Estoy en 3.3.0 y "sqldf" lo instala sin problemas...
El 23 de junio de 2016, 1:23, Mauricio Monsalvo <m.monsalvo en gmail.com>
escribió:
> Malas nuevas para mi:
> package ?sqldb? is not available (for R version 3.3.0)
> ¿Puedo hacer algo más que esperar? No me voy a "bajar" de versión de R.
>
> El 22 de junio de 2016, 20:02, Mauricio Monsalvo
2019 Mar 20
3
Como asignar valores de un archivo a otro
Toda la razon!!!
merge era todo!
Saludos
El mié., 20 mar. 2019 a las 10:57, Carlos Ortega (<cof en qualityexcellence.es>)
escribió:
> Hola Mauricio,
>
> No, creo que no es lo que dices..
>
> Con merge, indicas por qué columna (pueden ser varias) quieres juntar los
> dos dataframes y con los parámetros "all.x", "all.y" y "all" indicas si
2020 Feb 19
2
Problemas con tinytex (base Latex)
Aquí hay una posible solución...
https://tex.stackexchange.com/questions/27138/how-can-i-fix-the-error-gui-framework-cannot-be-initialized-with-texniccenter
El mié., 19 feb. 2020 a las 23:16, MAURICIO MARDONES (<
mauricio.mardones en ifop.cl>) escribió:
> Esto...
>
> 2020-02-19 18:29:50,307-0300 INFO pdflatex - starting with command line:
>
2005 Jun 24
1
Executing custom effect for n seconds
Glad to see this list get going!
I have a custom effect ''Pulse'' that basically does an opacity fade in/
out.
I want to execute this effect with a custom duration.
I''m looking for a consistent approach that is inline with
script.alicio.us and Prototype.
Is there a way to do something like this (pseudo code):
Effect2.Pulse = function(element) {
new
2019 Mar 20
2
Como asignar valores de un archivo a otro
merge sirve pero no para cumplir la condición de si un dato es "x",
buscarlo en el otro data.frame y asignarlo
El mié., 20 mar. 2019 a las 10:23, Carlos J. Gil Bellosta (<
cgb en datanalytics.com>) escribió:
> ?merge
>
> El mié., 20 mar. 2019 a las 14:22, MAURICIO MARDONES (<
> mauricio.mardones en ifop.cl>) escribió:
>
>> Amigos erreros
>>
2008 Feb 14
1
Pulse AO plugin priority
Just a quick note that the priority in the Pulse AO
plugin (ao/src/plugins/pulse/ao_pulse.c) should be
changed from 41 to 50 (in the ao_pulse_info struct).
Since the plugin now ships as part of libao, its
priority should be a factor of 5, as that's how I
designed the plugin priority system. Plugins that
ship with libao should be a factor of 5, so that 3rd
party plugins can fit in between
2009 Aug 17
4
pulseaudio/wine question
When people have audio trouble with programs in wine the first
suggestion is always to remove pulseaudio, I'm not questing that - it
often fixes the problem, but I do wonder if there are plans to make wine
and pulseaudio work better together?
Each new version of the major Linux distros seems to make pulse harder
and harder to remove without messing up the system. Outside of wine
pulse is