Displaying 20 results from an estimated 4000 matches similar to: "format integer numbers with leading 0"
2017 Nov 01
1
Correct subsetting in R
But they row.names() cannot give me the IDs
On Wednesday, November 1, 2017 9:45 AM, David Wolfskill <r at catwhisker.org> wrote:
On Wed, Nov 01, 2017 at 04:13:42PM +0000, Elahe chalabi via R-help wrote:
> Hi all,
> I have two data frames that one of them does not have the column ID:
>
> > str(data)
> 'data.frame': 499 obs. of 608 variables:
2011 Feb 14
2
Is there a way to force counters to be treated as "unsigned?"
I am acquiring some sampled data that is time-stamped (with a
POSIXct). Some of the data is in the form of "counters" -- that
is, what is interesting isn't value of a given counter at a given
time, but the change in the counter from one sample to a later one.
As the counters are only incremented, they would be perceived to be
monotonically increasing -- ideally. Unfortunately, the
2017 Jun 11
3
post ino64: lockd no runs?
On Sun, Jun 04, 2017 at 08:57:44AM -0400, Michael Butler wrote:
> It seems that {rpc.}lockd no longer runs after the ino64 changes on any
> of my systems after a full rebuild of src and ports. No log entries
> offer any insight as to why :-(
>
> imb
I don't tend to use NFS on my systems that are running head, so I
haven't had occasion to test this as stated.
However, I
2003 Sep 28
4
make world
Hi, I was under the impression a successful make world was updating include
files in /usr/include/netinet too.
When I have a good make world, the files in /usr/include have new time stamps,
but the ones in netinet have not!
Am I missing something here? My current stable doesn't compille properly it
fails in kdump on a missing ioctlcmd_t typedef.
Peter
2005 Sep 22
2
Tunnel-only SSH keys
Hello.
I once read somewhere that it's possible to limit SSH pubkeys to
'tunnel-only'. I can't seem to find any information about this
in any of the usual places.
I'm going to be deploying a few servers in a couple of days and
I'd like them to log to a central server over an SSH tunnel (using
syslog-ng) however I'd like to prevent actual logins (hence
2018 Jan 04
0
format integer numbers with leading 0
Dear R-er,
I would like format integer number as characters with leading 0 for a
fixed width, for example:
1 shoud be "01"
2 shoud be "02"
20 should be "20"
Now I use:
x <- c(1, 2, 20)
gsub(" ", "0", format(x, width=2))
But I suspect more elegant way could be done directly with format
options, but I don't find.
Thanks a lot
Marc
2006 Mar 15
5
Recent 6.1-PRE: burncd: ioctl(CDRIOCFIXATE): Input/output error
I'm running:
localhost(6.1-P)[21] uname -a
FreeBSD localhost 6.1-PRERELEASE FreeBSD 6.1-PRERELEASE #19: Wed Mar 15 07:15:25 PST 2006 root@g1-18.catwhisker.org.:/common/S2/obj/usr/src/sys/LAPTOP_30W i386
localhost(6.1-P)[22]
I figured I'd grab a copy of the recent 6.1-BETA4 (disc1) ISO to
try it out & hand it out to folks....
It seems to have worked, but I got a bit of a whine
2003 Sep 01
1
Apparent problem with ida(4); patch included
Someone else also reported seeing these symptoms with recently-updated
sources:
>>> Kernel build for FREEBEAST started on Mon Sep 1 05:25:41 PDT 2003
...
===> ida
@ -> /usr/src/sys
machine -> /usr/src/sys/i386/include
perl @/kern/makeops.pl -h @/kern/device_if.m
perl @/kern/makeops.pl -h @/kern/bus_if.m
perl @/kern/makeops.pl -h @/pci/pci_if.m
rm -f .depend
mkdep -f .depend -a
2018 Jan 03
2
Help with Regular expression
Hi,
I was working on following expression :
"\":\"03-JAN-2018 16:00:00\""
This is basically a combination of Date and Time mixed with some Noise.
I want to extract only Date and Time part i.e. "03-JAN-2018 16:00:00
I tried following :
gsub("![0-9][0-9]-[a-zA-Z][a-zA-Z][a-zA-Z]-[0-9][0-9][0-9][0-9]
[0-9][0-9]:[0-9][0-9]:[0-9][0-9]", "",
2012 Dec 27
3
FreeBSD 9.1-PRERELEASE
Hi,
In this mailinglist I'm reading a lot about problems (re)compiling the system. At this moment I'm running:
"FreeBSD 9.1-PRERELEASE (ORAC) #0 r244047: Sun Dec 9 15:33:19 CET 2012" without problems.
Is it save to recompile the system with all patches?
Thanks
Jack Raats
2012 Feb 03
2
Having trouble controlling plot() output (e.g., color)
I expect that there's something glaringly obvious that I'm overlooking,
as I'm justr getting back involved in using R after a several-month
hiatus (from R). So I welcome clues.
When I invoke plot(), merely specifying a data.frame with 2 columns,
specify the plot type ("type") of "p" ("points"), and that I want the
point to be green ('col =
2012 Dec 10
5
How to update ports tree indexes when using svn
Hi list,
after the security announcement (http://www.freebsd.org/news/2012-compromise.html) I use svn to update my local ports tree. I've found out that the port index is not updated. What is the preferred/recommended way to update port indexes when using svn?
Thanks,
Serguey.
2007 Mar 21
4
Reality check: IPFW sees SSH traffic that sshd does not?
This note is essentially a request for a reality check.
I use IPFW & natd on the box that provides the interface between my home
networks and the Internet; the connection is (static) residential DSL.
I configured IPFW to accept & log all SSH "setup" requests, and use natd
to forward such requests to an internal machine that only accepts public
key authentication; that
2011 Mar 24
1
extracting file names
Dear R users,
I am trying to figure out a way to extract the original file name of a
.DAT (e.g., IC48.DAT) file imported into R using the file.choose()
function, i.e.,
dat <- read.table(file.choose(), header = FALSE)
The reason I would like to do this is to use that file name to name an
output file, thus if I had the file name, e.g.,
file.name <- IC48
# then I do a bunch of stuff to dat
2011 May 04
3
Regexp question
I have a string like this
st <- "SELECT COUNT(empid), COUNT(mgrid), COUNT(empname),
COUNT(salary), FROM Employees"
How can I remove the last comma before the FROM statement?
-J
2003 Apr 24
3
make buildworld error
I am trying to compile the FreeBSD4.8-STABLE and I gave the following error:
make: don't know how to make /usr/obj/usr/src/i386/usr/lib/libssh.a. Stop
*** Error code 2
they alguem knows what it can be?
Thank!!
2011 Mar 19
3
[O/T] reference for regular expressions
Dear R People:
Could someone recommend a good reference on regular expressions, please?
Thanks in advance,
Sincerely,
Erin
--
Erin Hodgess
Associate Professor
Department of Computer and Mathematical Sciences
University of Houston - Downtown
mailto: erinm.hodgess at gmail.com
2011 Mar 17
5
Histograms with strings,
Hello,
Thanks in advance for any help,
I have read a CSV file in which there is a column for an IP addr as in:
tmpInFile$V2
[1] "74.125.224.38" "74.125.224.38" "129.46.71.19" "129.46.71.19"
[5] "129.46.71.19" "129.46.71.19" "129.46.71.19" "129.46.71.19"
[9] "129.46.71.19" "129.46.71.19"
2011 Mar 25
2
Preserving the class of POSIXt objects
Dear all,
I am working with a list of objects each of which contains two POSIXct
objects (say, $Start and $End) and a number of different data in
addition to that. Now an easy way to extract Start times of all object
could be sapply(x, "[", "Start") but this converts them all to
numeric, and so does sapply(x, "[[", "Start"). lapply preserves the
class but
2013 Jan 01
2
src.conf question
Greetings
I will be upgrading my main desktop system from 8-stable to 9-stable
this week and am quite confused with regards to Clang vs GCC. I have
complete backups and will be doing a complete re-install.
I have seen several different examples of what to put
into /etc/src.conf and /etc/make.conf and am not sure if it is safe or
even advisable to make the move to Clang for source and ports.
Can