Displaying 20 results from an estimated 10000 matches similar to: "replacing NA's with various numbers"
2007 Oct 28
1
maximizing a function
See
http://mayin.nfshost.com/ajayshah/KB/R/documents/mle/mle.html
--
Ajay Shah http://www.mayin.org/ajayshah
ajayshah at mayin.org http://ajayshahblog.blogspot.com
<*(:-? - wizard who doesn't know the answer.
2006 Aug 30
1
Samba over IPX - various sites say it works?
Hi,
I know this question was posted back in 2002/2003, just wondering if the
answer has changed since then :)
There are various sites which say its possible to run Samba using
NetBIOS over IPX:
http://samba.anu.edu.au/cifs/docs/what-is-smb.html
http://nlug.org/mail/nlug__1999_05/0057.html
I've tried everything I know to (which admittedly isn't much) and can't
get it to work (I
2013 Oct 10
1
Replacing the Random Number Generator in Stand Alone Library
Hi R-Developers,
I had a question about the random number generator used in the R StandAlone
Math Library. The stand-alone library depends on the unif_rand() function
for most simulated values, and this function is provided in the sunif.c file
in the relevant directory. At present, this program implements the
"Marsaglia-Multicarry" algorithm, which is described throughout the R
2012 Jul 19
1
problem replacing NA's in a dataset (10% remain after removal attempt)
Hi all,
I'm attempting to gap-fill a dataset, replacing the missing values with
each month's day or night median value.
The problem is that my code results in some, but not all the NA's being
replaced and I cannot figure out how this is possible. When I look at
the individual line's where the NA's remain, they should have been
captured in my code as far as I can tell.
2007 Mar 15
2
replacing all NA's in a dataframe with zeros...
I've seen how to replace the NA's in a single column with a data frame
*> mydata$ncigs[is.na(mydata$ncigs)]<-0
*But this is just one column... I have thousands of columns (!) that I need
to do this, and I can't figure out a way, outside of the dreaded loop, do
replace all NA's in an entire data frame (all vars) without naming each var
separately. Yikes.
I'm racking my
2006 Nov 29
2
Copying user accounts (passwords) to another server
Hi Folks,
I am doing a server swap out tomorrow and wondered if there was a utility
that will copy user account details and their current passwords from one
server to another (both CentOS 4) - there's only about 15 to do so it's not
a major issue.
Thanks
Nigel Kendrick
2000 Oct 16
2
ssh2 authentication and ip forwarding
I'd been hoping to move all of our site to ssh protocol 2 whilst we are
still small enough to do this without serious pain, however the lack of
authentication and connection forwarding is making that difficult at
present.
I see the current (2.2.0p1) code base does not have the code on either
client or server side for ssh2 to handle tunneled connections or
authentication agent. Is this
2004 Sep 15
5
replacing NA's with 0 in a dataframe for specified columns
I know that there must be a cool way of doing this, but I can't think
of it. Let's say I have an dataframe with NA's.
> x <- data.frame(a = c(0,1,2,NA), b = c(0,NA,1,2), c = c(NA, 0, 1, 2))
> x
a b c
1 0 0 NA
2 1 NA 0
3 2 1 1
4 NA 2 2
>
I know it is easy to replace all the NA's with zeroes.
> x[is.na(x)] <- 0
> x
a b c
1 0 0 0
2 1 0 0
3 2 1
2008 Nov 13
1
replacing Na's in a vector with the preceding integer element
Hi,
I have a vector where an integer is followed by a randomly varying number of NA elements. I want to replace the NA's with the preceding integer. Let me explain with a simple?example :
avec<- c(1,NA,NA,5,NA,3,4,NA,NA,NA,NA,9,NA,0,NA,NA)
I want to get the following vector from a :
bvec<-c(1,1,1,5,5,3,4,4,4,4,4,9,9,0,0,0)
How can I do this with R? Will appreciate all the help that I
2001 Mar 21
2
Challenge response authentication and PAM
As an experiment I set up Challenge/response authentication on a Linux
system with PAM using a pam_opie module (this module works fine with
console logins and su).
I can log into the box using the opie password, *but* it does not give
me the challenge - which can make things a little tricky :-)
I can well believe this might be a fault in the PAM pam_opie module I
am using, so has anyone got
2012 Jun 21
2
ACLS without winbind (but WITH correct user mapping)
Thanks to some of the guys on #samba-technical (obnox in particular!), I
now have a working samba configuration.
The environment:
In our setup each user has an entry in both openldap (no samba schemes)
and AD. Each account has the same name and even has a Unix UID entry in
AD. Our users ssh into Linux boxes, authenticating off of openldap.
Files are shared via samba.
Due to the account
2005 Mar 04
1
X100P in the UK - seems to short the dialtone
Hi
A quicky - has anyone had success with an X100P in the UK ?
I'm seeing some oddness - when I plug the wall socket into the card, I lose
dialtone. If I unplug it, it comes back. Does this sound familiar to anyone
?
Cheers
Nigel
Nigel Taylor
Technology Director
ITAzure Limited
Dunn House
Warren Park Way
Enderby
Leicestershire
LE19 4SA
0116 286 3016
2000 Nov 27
1
StrictHostKeyChecking
Long ago, when I wrote the ssh config file on my desktop box, ssh
(which might have been the non-openssh one) took 3 possible values for
the StrictHostKeyChecking option - yes, no & ask.
Today, when I attempted to connect to a new machine, with no DNS
entries (so using IP address) from my desktop box, ssh (now 2.3.0p1)
SEGVed. Looks like there is some subtle interaction between having an
2005 Apr 26
3
dovecot stopping - no messages
Greetings
Running Fedora Core 3 and dovecot-0.99.13-3.FC3 as a production mail
server for around 30+ accounts.
A couple of times a day dovecot just stops.
Nothing in the mail log except for
Apr 26 00:48:19 sydsrv05 imap-login: Can't connect to auth process at
default: Connection refused
It's got to the point that I have put a script into cron.hourly to
restart the dovecot service
2002 May 06
3
Viewing certain numbers without NA's
Dear R Community,
We have recently installed R 1.5.0 on several workstations. Ever since,
if I try to extract certain numbers or lines from a file (which contains
many NA's), I don't only get my desired line but all other lines which
contain NA's. In a file with 15000 rows and 7500 NA's this is not very
practical. In the earlier R-Version this worked when I typed in the
2002 Nov 13
6
IP Forwarding
Hi,
I''m trying to get RAdmin [uses tcp 4889] access to my Windows machine
which is behind my firewall.
I have zones:
gbl : the world
loc : my lan
fw : firewall
I placed the following in my rules file
DNAT gbl loc:192.168.0.2 tcp 4889 -
When trying to RAdmin I get a cannot conect to server error.
192.168.0.2 is my Windows Machines IP address.
Can anyone help me?
Shorewall 1.3.9b
2002 Mar 01
2
RH7.2 journal creation
Stephen et al,
You may remember me raising the point that the new e2fsprogs (1.25 as I
remember) griped about old journals not having all the appropriate
fields zeroed.
I've just discovered that the RH 7.2 installer produces journals (ie on
partitions created as ext3 from within the installer) that flag these
warnings with a modified 1.25 e2fsck (the mods being to clear the errors
rather
2002 May 18
2
can't connect from windows
Hello all,
I've setup samba Version 2.2.0a on Slackware 8.0
# uname -a
Linux slackware 2.4.5 #6 Fri Jun 22 01:38:20 PDT 2001 i686 unknown
I start samba as root from a console as:
/usr/sbin/smbd -D -d10 -l /var/adm/smblogs/log -s /etc/samba/smb.conf
/usr/sbin/nmbd -D -d1 -s /etc/samba/smb.conf
In smb.conf I have:
[files]
comment = mystuff
valid users = nigels
path = /usr1
read
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
2020 Mar 11
2
XCore target
Hello all.
At XMOS we are working towards updating the upstream XCore backend for newer versions of the chip.
XCore is the XMOS processor. The XCore backend was written by Richard Osborne at XMOS. Richard has moved on. The current code owner in CODE_OWNERS.TXT, Robert Lytton, has also moved on.
For some years XMOS has developed the compiler in-house, for new versions of the chip, but not