Displaying 20 results from an estimated 300 matches similar to: "Dataframes: conditional calculations per row ."
2009 Feb 10
1
Calculating variables
Dear fellows: This is the problem: I have 5 variables A, B, C, D and E
with a range from 1 to 100 with 0.1 steps. Depending on the different
values these have, the results of the formula change:
alitemp <- ((Abase/llmcc$Clase)*PClase)+(((1/llmcc
$Categoria)*Abase)*PCategoria)+((Abase*llmcc$Phi)*PPhi)+((Abase*llmcc
$Rf)*PRf)
So, alitemp (a 283 element series) changes if any of the P**
2009 Feb 10
0
Dataframes: conditional calculations per row [SOLVED].
> Thank you very much Jorge, Phil and David: I was finally able to
> perform the operations I needed. I changed the function in order to
> adapt it to the simplest form like the following:
> ali <- function(Abase) {
> alitemp <- ((Abase/llmcc$Clase)*PClase)+(((1/llmcc
> $Categoria)*Abase)*PCategoria)+((Abase*llmcc$Phi)*PPhi)+((Abase*llmcc
> $Rf)*PRf)
>
2009 Feb 13
1
Add columns to data frame automatically
Hello fellows: I've een trying to set up a function that performs 100
loops producing the coresponding 100 series. I want to save all those
datasets in a dataframe, so I wrote this...
prep <- function()
# Clase[1]/Categoria[2]/Phi[3]/Rf[4]
peso <- c(.0,.03,.3,.6)
# Extension del calculo
for (i in 1:100)
{
# Calculos de todas las curvas
# Variables (Valor Base)
abase
2009 Nov 05
1
stepAIC(coxph) forward selection
Dear R-Help,
I am trying to perform forward selection on the following coxph model:
>my.bpfs <- Surv(bcox$pfsdays, bcox$pfscensor)
> b.cox <- coxph(my.bpfs ~ Cbase + Abase + Cbave + CbSD + KPS + gender +
as.factor(eor) + Age)>stepAIC(b.cox, scope=list(upper =~ Cbase + Abase +
Cbave + CbSD + KPS + gender + as.factor(eor) + Age, lower=~1), direction=
c("forward"))
However
2009 Feb 15
0
Porcentual separation
Dear Fellows: Thanks you all for your great help. Without your
guidance I'd not have been able to get this far. So this is the
current problem: I have a series (dataframe with 1 column and 283
rows, all with numbers (no NA's) that go from 0 to 3 or 4 with up to
14 decimals. They indicate a percentage. I have to apply a formula to
that dataframe that uses 4 variables I have
2001 Nov 17
1
rsync hangs or exists without copying anything
I am trying to mirror a file system using rsync. The command I am using
is of the form:
rsync -a /fs/home/6/ /usr/fs/home/6
/fs/home/6/ is an NFS file system, /usr/fs/home/6 is a local disk.
With versions 2.4.6 and 2.4.7pre1, rsync hangs at random places during
the building file list phase. I tried with and without -v option(s) and
tried breaking the file system down into smaller chunks with no
2012 Jul 17
1
FW: rsync hanging after working reliably for years on one of my shares
Thanks for the suggestions - I have done my best to follow them.
I inserted the debug shim script and changed the rsync executable in rsync so that it called that instead, and got the same results. Here is the tail from that:
21381 0.000108 open("www.athenshousing.org/xmlrpc.php", O_RDONLY|O_LARGEFILE) = 3
21381 0.000122 fstat64(3, {st_mode=S_IFREG|0644, st_size=294, ...}) =
2009 Jul 13
2
transfer option and pressing #
Hi
I have setup forwarding - xfering - where you press # and then the
extension. I add t to the dial cmd.
My problem is that when you call something like internet banking they
want #, but when # is pressed asterisk gets it instead. is there a way
around this ?
I haven't been able to get asterisk to listen to flash either
Alex
--
Why is it there are so many more horses' asses than
2009 Feb 05
3
impossible packet length ...
Hi,
on 2 different servers, running 7.1-stable + zfs, I get this
error rather frequently:
Feb 5 17:01:03 warhol-00 kernel: impossible packet length (543383918) from
nfs server sunfire:/dist
Feb 5 17:01:03 warhol-00 kernel: impossible packet length (1936028704) from
nfs server sunfire:/dist
Feb 5 17:01:03 warhol-00 kernel: impossible packet length (1869363744) from
nfs server sunfire:/dist
2006 Apr 25
0
Processes freezing and monopolising the CPU
HP-UX 11.00
Samba 3.0.21a PDC
OpenLDAP backend
When we log on to an XP box, the smbd process freezes for one to two
minutes, while taking up almost 100% CPU. However, this does NOT
happen when logging on to an NT box.
We use no roaming profiles, so it's not that XP is copying files or
something. In fact the pc seems to do nothing but wait.
Moreover we often have the same effect when using
2000 Jun 30
1
I have a dream of creating a program on statistical analyses.
2007 Jan 19
6
Stopping DRb after using BackgrounDRb::MiddleManDRbObject.init
Hi,
I''m having a problem where connections started through
BackgrounDRb::MiddleManDRbObject.init are not stopped, resulting in an
ever growing established connections between my Mongrels and remote
backgroundrbs
I added DRb.stop_service to my code executed after requests that init
MiddleManDRbObjects but that does not help.
Any ideas?
Thanks,
Robert Bjarnason
2005 Mar 23
0
Question on class 1, 2 output for RandomForest
The `1' and `2' columns are the error rates within those classes. E.g., the
last row of the `1' column should correspond to the class.error for "-", and
the last row of the `2' column to the class.error for "+". (I would
have thought that that should be fairly obvious, but I guess not. It mimics
what Breiman and Cutler's Fortran code does.) I suspect
2015 Jan 01
2
Problem with ups-dummy driver (repeater mode)
Hi,
I have a NUT client that requires the UPS it monitors to be named "ups".
The client (a Synology NAS) does not provide a method to change this
configuration. My setup consists of multiple UPSes monitored by a single
master and I'd rather not have 1/4 UPSes named `ups` while the other 3/4
are named something descriptive and helpful for administration.
I think I should be able
2005 Dec 14
4
unable to force the vector format
Dear all,
I am so ashamed to pollute the list with a trivial question, but it is a
long time I have not used R, and I need a result in the next one or two
hour...
I have a table which I have loaded with read.table, and I want to make
the mean of its columns.
> slides <- read.table("slides.txt")
> slides [1:5,]
V1 V2 V3 V4 V5 V6 V7 V8
1
2018 Mar 07
5
Más filtrado de variables
Buenas. A ver si a alguien se le ocurre cómo hacer este filtrado. Quiero seleccionar para cada GRUPO el numero de ORDEN más pequeño (que podría ser con wich.min(ORDEN)), pero sin que se repita la CLASE, de modo que si la CLASE-01 salió en el primer GRUPO ya no salga más.
GRUPO ORDEN CLASE A 1 CLASE-01 A 2 CLASE-02 A 5 CLASE-03 B
2018 Mar 07
2
Más filtrado de variables
Hola,
Aquí, tienes otra forma que es bastante sencilla de leer/entender...
Lines <- " GRUPO ORDEN CLASE
1 A 1 CLASE-01
2 A 2 CLASE-02
3 A 5 CLASE-03
4 B 1 CLASE-01
5 B 2 CLASE-02
6 B 5 CLASE-03
7 B 7 CLASE-04
8 C 2 CLASE-02
9 C 5 CLASE-03
10 C 7 CLASE-04
11 D 5 CLASE-03
12 D 7
2010 May 20
1
ERROR: cannot allocate vector of size?
I've looked through all of the posts about this issue (and there are
plenty!) but I am still unable to solve the error. ERROR: cannot allocate
vector of size 455 Mb
I am using R 2.6.2 - x86_64 on a Linux x86_64 Redhat cluster system. When I
log in, based on the specs I provide [qsub -I -X -l arch=x86_64] I am
randomly assigned to a x86_64 node.
I am using package GenABEL. My data (~ 650,000
2012 Oct 04
4
Class for time series
Dear all,
I have a time serie dataset such as the following with data acquired
every 15 minutes:
Date Heure Profondeur Temp?rature Salinit? Turbidit? Chloration
1 2012-07-06 08:47:22 -0.144 22.469 0.011 0.000 0
2 2012-07-06 09:02:21 -0.147 22.476 0.011 0.000 0
3 2012-07-06 09:17:21 -0.139 22.498 0.011 19.323 0
4 2012-07-06
2020 Jul 04
2
Sumar valores dentro de una clase
Va ejemplo:
data <- Ejemplo_List
cl<-round(seq(0,max(data$h),10),2) # seq para clases
df<-data.frame(min.h=cl[-length(cl)],max.h=cl[-1]) # Data frame con las
clases
df$class<-paste(df$min.h,df$max.h,sep="-") # Armo las Clases
df$Largo <-NA # Variable nueva
# Completo la columna "Largo" con la cantidad de observaciones que están
entre el mínimo y el máximo de