Displaying 20 results from an estimated 300 matches similar to: "ave across columns"
2010 Mar 25
1
Problem with reshaping data from wide to long format
Hi,
I have a data.frame in wide format which I would like to reshape into
a long format:
example (nonsense) data:
> dput(perus2)
structure(list(id = c(30L, 38L, 21L, 12L, 22L, 28L, 31L, 44L,
8L, 47L, 23L, 20L, 41L, 42L, 29L, 50L, 5L, 33L, 4L, 17L, 11L,
1L, 18L, 6L, 9L, 32L, 16L, 14L, 39L, 48L, 37L, 43L, 25L, 27L,
35L, 40L, 45L, 49L, 2L, 34L, 10L, 15L, 24L, 26L, 46L, 7L, 13L,
3L, 19L, 36L),
2013 Nov 12
1
How to replace NA's data with some value
Hi all,
I have a data set with missing value. I would like to estimate those
missing value by using normal ratio method.
Below is part of my data:
      AS   BL Serdang  Jhr   Phg  Target station
       0    0.0    12.8      0.0  23.7  0.0
       6    0.0    81.7      0.2  0.0   NA
       0    1.5    60.9      0.0  0.0   15.5
       1   13.0    56.8     17.5 32.8  6.4
       4     3.0    66.4   
2005 Aug 12
2
coercing created variables into a new data frame using na.omit()
Hi,
I am an R newbie and one thing I am having trouble with binding variables that 
I have created within one data frame into a new data frame when using 
na.omit(). To illustrate this problem I will give the example I am working on 
and the approah I have been using:-
data.frame1<-filepath....
attach(data.frame1)
#create a new variable using a function
new.variable<-rep(1,length(weight3))
2010 Jul 16
1
Weighted densityplot?
I'm trying to plot a series of densities using/comparing differing weights.  I see the reference to weights and subscripts, but I don't understand how to implement that.  My data are of the form:
I, J, Actual, Distance, Subset, Weight1, Weight2, ...
I'm trying to see the effect of the distance distribution (Actual by Distance) compared to the various weighted distributions
2003 May 26
3
chan_h323 and extensions.conf
Hi all,
I try to ask helps again about chan_h323 extensions.
I define this in h323.conf:
   [general]
   port = 1720
   bindaddr = 0.0.0.0 
   allow=gsm
   allow=ulaw
   gatekeeper = DISABLE
   
   context=default
   
   [gm1]
   type=friend
   host=192.168.1.20
   context=default
   
   [gm2]
   type=friend
   host=192.168.1.25
   context=default
and I have in extensions.conf :
   [demo]
  
2003 May 23
1
Gnophone no sound
Hello all,
I'am trying to use 2 gnophones on my LAN. But I can't get any sound.
Here is my configuration:
 1. on PC1, I have:
     - Asterisk compiled from CVS (CVS-05/15/03) and it runs.
     - Gnophone binary version from Debian: 0.2.4+cvs.20020624-3
     - a sound card working ( module es1371 for /dev/dsp)
     - I registered it as "alice" in extensions.conf
 2. on PC2, I
2008 May 09
2
K-Means Clustering
Hello,
I am hoping you can help me with a question concerning kmeans clustering
in R. I am working with the following data-set (abbreviated):
        BMW Ford Infiniti Jeep Lexus Chrysler Mercedes Saab Porsche
        Volvo
  [1,]   6    8        2    8     4        5        4    4       7     7
  [2,]   8    7        4    6     4        1        6    7       8     5
  [3,]   8    2        4   
2014 Jun 06
2
does the openSSL security vulnerability (CVE-2014-0224) affect openssh?
Dear openssh developers,
can you please check, whether the vulnerability of openSSL (CVE-2014-0224):
http://www.openssl.org/news/secadv_20140605.txt
openssh affects?
Many thanks
Van Cu   Truong
Tel.: +49 (211) 399 33598
Mobile: +49 (163) 1651728
cu.truongl at atos.net<mailto:cu.truongl at atos.net>
Otto-Hahn-Ring 6
81739 M?nchen, Deutschland
de.atos.net
2004 Jun 17
5
Problem in using rsync
Hi
I use rsync to perform backup on disk on a SunFire 880 with Solaris 8. For 
performance issues, we launch simultaneously 5 rsyncs on 5 different fliesystems 
and about 150-200 "cp -p" commands on as many database files. We have been 
using the same scripts for about 2 months, without problems. The backup is 
performed on the same server (from filesystem to filesystem on the same
2004 Dec 09
3
US 2004 Elections map
even for people who didn't like the outcome of the US elections this  
year, it must have been a joy to see all the nice (and not so nice)  
graphs that were shown. As an exercise, I recreated the map shown on  
the NY-Times website [  
http://www.nytimes.com/packages/khtml/2004/11/03/politics/ 
20041103_px_ELECT_GRAPHIC.html ]
If you're interested,
  
2011 May 12
2
Exporting interactive 3D plots with axes and labels
Hi,
I have a question about exporting interactive 3D plots. I use the following code to plot a contour of a trivariate normal distribution:
library(mvtnorm)
library(rgl)
library(misc3d)
n=25
x=seq(-3,3,length=n)
X=cbind(rep(x,each=n**2),rep(rep(x,each=n),n),rep(x,n**2))
p=array(dmvnorm(X,sigma=diag(3)*0.5+0.5),c(n,n,n))
contour3d(p,x,x,x,level=mean(p))
lim=c(-3,3)
1999 Jan 04
1
Names of data frame columns in an apply
Hi,
[some background]
I have a dataset which describes a number of subjects doing a "scientific
discovery". That is, they have to discover the rules underlying a
particular domain. To do so, they have to set the levels of 5 variables
which leads to a certain outcome.  To identify what kind of "experiments"
the subjects did, I want to combine these levels into one variable
2008 Jun 05
1
nls() newbie convergence problem
I'm sure this must be a nls() newbie question, but I'm stumped.
I'm trying to do the example from Draper
and Yang (1997).  They give this snippet of S-Plus code:
Specify the weight function:
weight < - function(y,x1,x2,b0,b1,b2)
{
pred <-  b0+b1*x1 + b2*x2
parms <- abs(b1*b2)^(1/3)
(y-pred)/parms
}
Fit the model
gmfit < -nls(~weight(y,x1,x2,b0,b1,b2),
2019 Sep 19
3
LLVM 9.0.0 Release
It's my great pleasure to announce that LLVM 9 is now available.
Get it here: https://llvm.org/releases/download.html#9.0.0
This release is the result of the LLVM community's work over the past
six months (up to trunk r366426 plus commits on the branch). Some
highlights include:
- Support for asm goto, enabling for example the mainline Linux kernel
  for x86_64 to build with Clang
- The
2019 Sep 19
3
LLVM 9.0.0 Release
It's my great pleasure to announce that LLVM 9 is now available.
Get it here: https://llvm.org/releases/download.html#9.0.0
This release is the result of the LLVM community's work over the past
six months (up to trunk r366426 plus commits on the branch). Some
highlights include:
- Support for asm goto, enabling for example the mainline Linux kernel
  for x86_64 to build with Clang
- The
2003 Aug 10
1
read.spss doesn't work anymore
A couple of months ago, probably using an older version of R, R used to 
run the following code just fine:
  library("foreign")
  data.exp1 <- as.data.frame(read.spss("dataDef.sav"))
Issuing the same commands now (after starting R using --vanilla), gives 
me the following behavior:
 > library("foreign")
 > x <- read.spss("dataDef.sav")
Error
2002 Dec 20
3
Sweave & xtable
I'm trying to get Sweave running for automatic report generation, and 
it seems to run fine when just using verbatim output. However, I've ran 
into a problem with xtable. I would like to print the following matrix 
using xtable:
 > dim(counts)
[1] 19 15
All columns are filled with real/integer numbers > 0 and < 1000. Just 
typing xtable(counts) gives correct LaTeX output, but
2002 Jan 22
2
ssh-keyscan: xmalloc out of memory error
hi all,
I got "xmalloc: out of memory" when i used
ssh-keyscan to a remote host that is using
SSH protocol 2 and only protocol 2 (no fallback
to SSH protocol 1).
Looks to me more like ssh-keyscan doesn't talk
SSH protocol 2 to the server.
Please help.
Here is the exact error:
# /usr/local/bin/ssh-keyscan -v miad_1
# miad_1 SSH-2.0-OpenSSH_3.0.2p1
xmalloc: out of memory
2003 May 23
1
How to define an extension for chan_h323
Hello all,
Encouraged by the successful "demo", I'am getting on with Asterisk CVS.
I added 2 H.323 extensions in extensions.conf
[default]
include => demo
exten => 701,1,Dial(H323/gm2@192.168.1.20/s)
exten => 702,1,Dial(H323/gm2@192.168.1.25/s)
With:
  - [demo] is defined by default in sample.extensions.conf
  - Asterisk server is running on host 192.168.1.20, on the
2005 Sep 10
2
Samba + OpenLDAP: LDAP server is running but could not respond to a search request
Hi, all. I am trying to set up SAMBA PDC with OpenLDAP using smbldap-tools 
from IDEALX. This is on a SLES 9 and I had run the latest online update as 
well as SP1 and SP2 for it. 
At this point smb is off and ldap is running.
I have gotten up to where I needed to test for:
ldapsearch -x -b "dc=sample,dc=com" "(ObjectClass=*)"
# extended LDIF
#
# LDAPv3
# base