Displaying 20 results from an estimated 500 matches similar to: "Read text file subsetting rows"
2006 Apr 12
1
Pipe delimiter ( | ) in "read.delim"
Hi R folks,
Can anyone tell me how to read in a pipe ("|") delimited text file? I've
tried the following:
read.delim("c:/junk/junk.txt",sep="|", skip=7, check.names=FALSE,quote = "",
header=F)
The file looks something like the following:
RD|I|04|013|9997|68103|5|7|017|830|20000221|00:00|12.6||6|||||||||||||
2010 Apr 15
3
Add header line to large text file
All,
I have a 30 million record text file without header information. I would
like to add a header to this file without reading it first. Is this
possible? The code below does what I want except that the readLines
portion takes quite a long time. Is there a way around reading the
lines? I'm working on Windows XP.
Zev
input<-readLines("c:/junk/forR.csv")
2006 Mar 01
1
Book: Multilevel Modeling in R ETA?
Hi R folks (Dr. Bates in particular),
In August 2005, Dr. Bates mentioned that the documentation for lme4
"will be in the form of a book with the working title 'Multilevel
Modeling in R'" and I'm just wondering if there is an estimated date of
publication or if it's still a long way off. The Rnews article does a
great job of introducing the package, but I'm
2011 Aug 10
1
xtable - caption missing with float=FALSE
Hi,
For some reason I'm finding that my table caption is disappearing if I
print xtable output with the floating argument set to FALSE. Below is a
very simple Sweave file that produces two tables the first has no
caption and the second has a caption (if you want to see it
http://www.zevross.com/temp/test.pdf).
Does anyone know what I can do to fix this?
Zev
(I'm using Windows 7, 64
2011 Nov 03
1
Reclassify string values
Hi All,
Is there a simple way to convert a string such as c("A", "B" ,"C", "D")
to a string of c("Group1", "Group1", "Group2", "Group2"). Naturally I
could use the factor function as below but I don't like seeing that
warning message (and I don't want to turn off warning messages). Perhaps
a function
2009 Jan 23
0
RMySQL Fail to connect on update to R 2.8.1
Hi,
I had my R to MySQL 5.0 connection working fine under 2.5.1 on Windows
XP. My MySQL installation is local, not on a server and I could connect
with:
con <- dbConnect(MySQL(), dbname = "mydatabase", user="root", password="XX")
I have updated to R 2.8.1 (RMySQL 0.7-2) but that same line of code yields:
Error in mysqlNewConnection(drv, ...) :
RS-DBI driver:
2017 Sep 24
2
Call for testing: OpenSSH 7.6
On 23 September 2017 at 17:37, Zev Weiss <zev at bewilderbeest.net> wrote:
[....]
> And now I'm not able to reproduce the failure at all, with or without that
> patch. Not sure what could possibly be different (same git commit, same
> terminal session/environment, same 'make' command), but repeated attempts
> have been fruitless
You didn't happen to upgrade
2016 Dec 16
3
Call for testing: OpenSSH 7.4
On Thu, Dec 15, 2016 at 4:22 PM, Zev Weiss <zev at bewilderbeest.net> wrote:
[...]
> I tested (or tried) git commit b737e4d7 on three systems, with somewhat
> mixed results.
Thanks for the comprehensive testing!
> On Mac OSX (macOS?) 10.9, configure failed with:
>
> ...
> checking OpenSSL header version... 1000208f (OpenSSL 1.0.2h 3 May 2016)
> checking
2010 Apr 15
4
Does "sink" stand for anything?
Hello Everyone,
Learning about R and its wonderful array of functions. If it's not obvious, I usually try to find out what a function stands for. I think this helps me remember better.
One function that has me stumped is "sink." Can anyone tell me if this stands for something?
Thanks,
Paul
__________________________________________________
[[alternative HTML
2013 Jun 26
12
[Bug 1974] Support for encrypted host keys
https://bugzilla.mindrot.org/show_bug.cgi?id=1974
Zev Weiss <zev at bewilderbeest.net> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |zev at bewilderbeest.net
Attachment #2125|0 |1
is obsolete|
2018 Aug 10
2
Call for testing: OpenSSH 7.8
On Fri, 10 Aug 2018, Zev Weiss wrote:
> Also x86_64 here (Core i7-4771, for what it's worth). I too have 4.17
> installed, I just haven't yet gotten around to actually running it, so 4.14 is
> what's presently live on the system. If you want I think you should be able
> to replicate that aspect via 'xbps-install linux4.14' (and then of course
> booting said
2013 Mar 03
4
Help searching a matrix for only certain records
Let me start by saying I am rather new to R and generally consider myself to be a novice programmer...so don't assume I know what I'm doing :)
I have a large matrix, approximately 300,000 x 14. It's essentially a 20-year dataset of 15-minute data. However, I only need the rows where the column I've named REC.TYPE contains the string "SAO " or "FL-15".
My
2018 Aug 10
2
Call for testing: OpenSSH 7.8
On Fri, 10 Aug 2018, Zev Weiss wrote:
> On Void Linux (kernel 4.14, glibc 2.26, gcc 7.3) I'm seeing a failure
> in the test_kex unit test:
[snip]
Thanks for testing!
I tried to recreate this by installing void x64_64 to a VM, but couldn't
- the test passes for me.a
My system ended up with a slightly newer kernel (4.17 IIRC). What
hardware platform are you using?
-d
2017 Sep 22
2
Call for testing: OpenSSH 7.6
On Thu, Sep 21, 2017 at 02:22:10AM -0500, Zev Weiss wrote:
> test_kex: regress/unittests/kex/test_kex.c:91 test #1 "sshkey_generate"
> ASSERT_INT_EQ(sshkey_generate(keytype, bits, &private), 0) failed:
> sshkey_generate(keytype, bits, &private) = -56
That error code is:
$ grep -- -56 ssherr.h
#define SSH_ERR_KEY_LENGTH -56
Unfortunately there's lots of
2012 Jan 28
1
PATCH: Fix memory leak in sshd
Hello,
The below patch fixes a memory leak I noticed in monitor_read_load() when the child's log pipe is closed.
Thanks,
Zev Weiss
--
diff --git a/monitor.c b/monitor.c
index a166fed..6464eec 100644
--- a/monitor.c
+++ b/monitor.c
@@ -510,6 +510,7 @@ monitor_read_log(struct monitor *pmonitor)
debug("%s: child log fd closed", __func__);
close(pmonitor->m_log_recvfd);
2010 Feb 07
2
Reading hierarchical data
I would like to read the following hierarchical data set. There is a family
record followed by one or more personal records.
If col. 7 is "1" it is a family record. If it is "2" it is a personal
record.
The family record is formatted as follows:
col. 1-5 family id
col. 7 "1"
col. 9 dwelling type code
The personal record is formatted as follows:
col.
2012 Jan 28
1
PATCH: Support for encrypted host keys
Hello all,
I recently found myself wanting to run sshd with passphrase-protected host keys rather than the usual unencrypted format, and was somewhat surprised to discover that sshd did not support this. I'm not sure if there's any particular reason for that, but I've developed the below patch (relative to current CVS at time of writing) that implements this. It prompts for the
2001 Dec 12
1
MacOS X Server samba diffs
The source for the samba components in MacOS X Server is located at:
http://www.opensource.apple.com/tools/cvs ('samba' module)
The latest vendor branch is samba2.2.1a. The main branch
includes the following modifications (see diffs below)..
1) DirectoryService suport (encrypted authentication)
2) CFString usage (DOS code page <-> decomposed UTF8)
3) smbstatus -r (raw dump of user
2015 Aug 30
2
Inter-op and port (wolfSSL + openSSH)
On Aug 30, 2015 2:10 PM, "Damien Miller" <djm at mindrot.org> wrote:
> Is WolfSSL open source? If so, what license it is under?
https://wolfssl.com/wolfSSL/download/downloadForm.php says gplv2 and hints
at other proprietary options. I lost interest when the download required
registration.
2013 Nov 27
2
Samba4 - ACL not applied/followed (worked in samba 3.0.11)
Hi.
samba 4.1.1.. User has unix rights for writing, but samba denies write
access to him.
On samba server:
amistest at samba:~$ id
uid=6603(amistest) gid=20(users-nis)
groups=20(users-nis),2108(evis),2109(slp),2112(hernie),2126(poj),2133(hto),20000(users)
-> user amistest is in "poj" group
amistest at samba:~$ ls -ld ACLTEST
drwxrwxr-x+ 2 hrubos vema 4096 Nov 27 11:05 ACLTEST