Displaying 20 results from an estimated 8000 matches similar to: "R Help Question"
2008 Feb 06
4
inserting text lines in a dat frame
Hi Jim
I am trying to prepare a bed file to load as accustom track on the UCSC genome browser.
I have a data frame that looks like the one below.
> x
V1 V2 V3
1 chr1 11255 55
2 chr1 11320 29
3 chr1 11400 45
4 chr2 21680 35
5 chr2 21750 84
6 chr2 21820 29
7 chr2 31890 46
8 chr3 32100 29
9 chr3 52380 29
10 chr3 66450 46
I would like to insert the following 4 lines at the beginning:
2009 May 09
5
Reading large files quickly
I'm finding that readLines() and read.fwf() take nearly two hours to
work through a 3.5 GB file, even when reading in large (100 MB) chunks.
The unix command wc by contrast processes the same file in three
minutes. Is there a faster way to read files in R?
Thanks!
2011 Jul 11
1
problem finding p-value for entropy in reldist package
Hi,
I am using the reldist package and having problems determining the p-value
for the entropy value from the reldist function. I am able to properly
determine the entropy value, but cannot figure out what function to use to
find the p-value. I have tried using rpy, rpluy (which provides p-values
for the polarization values) and investing the results from reldist().
Thus, far I cannot find the
2007 Feb 02
5
reading very large files
Hi all,
I have a large file (1.8 GB) with 900,000 lines that I would like to read.
Each line is a string characters. Specifically I would like to randomly
select 3000 lines. For smaller files, what I'm doing is:
trs <- scan("myfile", what= character(), sep = "\n")
trs<- trs[sample(length(trs), 3000)]
And this works OK; however my computer seems not able to handle
2010 Jul 25
3
X trouble in R on Ubuntu
Hello,
As per the subject, I am unable to do the following:
plot(1);
The error message I get is ( as user postgres)
No protocol specified
Error in X11(d$display, d$width, d$height, d$pointsize, d$gamma,
d$colortype, :
unable to start device X11cairo
In addition: Warning message:
In function (display = "", width, height, pointsize, gamma, bg, :
unable to open connection to X11
2007 May 24
2
object getConnection
Hi,
I use the functions socketConnections() and getConnection()
which are working fine. Thanks to the authors.
After opening nicely some socketConnection,
getConnection(3) returns something like :
description class mode text opened can read can write
"->127.0.0.1:7496" "socket" "wb" "binary" "opened" "yes"
2004 Oct 07
3
Read.Table Reading a Text file
Dear R users and Helpers
I am beginner with using R and interested in carrying out certain task for my statistical research.
I am reading data for a text file, which could contain data in following pattern
x y
8 10
11 14
16 16
18 15
6 20
4 4
20 18
As per the example I have two columns and 7 rows of data in each.
However is real life data situation I may not know how many columns are present
2008 Jul 03
1
Migrating from S-Plus to R - Exporting Tables
Does something like this get you close:
x <- list()
keys <- LETTERS[1:6]
# create
for (i in keys){
x[[i]] <- data.frame(a=1:5, b=1:5, c=1:5)
}
# output
output <- file('tempxx.txt', 'w')
for (i in keys){
write.table(i, row.names=FALSE, col.names=FALSE, file=output, quote=FALSE)
write.table(x[[i]], file=output, quote=FALSE)
}
close(output)
On Wed, Jul 2,
2007 Aug 28
3
data formatting: from rows to columns
Hi All,
I have some data I need to write as a file from R to use in a different program.
My data comes as a numeric matrix of n rows and 2 colums, I need to transform
each row as a two rows 1 col output, and separate the output of each row with a
blanck line.
Foe instance I need to go from this:
V2 V3
27 2032567 19
28 2035482 19
126 2472826 19
132 2473320 19
136 2035480 135
2021 Jan 24
1
Wiki Access for Cloud SiG
On Sun, Jan 24, 2021 at 1:12 PM Amy Marrich <amy at redhat.com> wrote:
> Ok updated to Camel Case - AmyMarrich. I'll let the others know as well.
>
> Thanks,
>
> Amy
>
> *Amy Marrich*
>
> She/Her/Hers
>
> Principal Technical Marketing Manager - Cloud Platforms
>
> Red Hat, Inc <https://www.redhat.com/>
>
> amy at redhat.com
>
>
2021 Jan 25
1
Wiki Access for Cloud SiG
Akemi,
The usernames for YatinKarel and JavierPena should be corrected now as well.
Thanks for all your assistance,
Amy
*Amy Marrich*
She/Her/Hers
Principal Technical Marketing Manager - Cloud Platforms
Red Hat, Inc <https://www.redhat.com/>
amy at redhat.com
Mobile: 954-818-0514
Slack: amarrich
IRC: spotz
<https://www.redhat.com/>
On Sun, Jan 24, 2021 at 5:52 PM Akemi
2021 Jan 24
1
Wiki Access for Cloud SiG
On Sat, Jan 23, 2021 at 2:38 PM Amy Marrich <amy at redhat.com> wrote:
>
> On Fri, Jan 22, 2021 at 7:58 PM Akemi Yagi <amyagi at gmail.com> wrote:
>
>> On Thu, Jan 21, 2021 at 11:50 AM Amy Marrich <amy at redhat.com> wrote:
>>
>>> I'd like to request access to
>>> https://wiki.centos.org/SpecialInterestGroup/Cloud for the following
2007 Apr 14
3
HiddenStore option may be useful
I'm missing a HiddenStore option in OpenSSH, known from some ftp-server
implementations like ProFTPd.
Consider the following scenario:
- A process PROCA is frequently polling the directory for a file called
myfile.txt
- Someone transfers this file via sftp or scp to the directory
- While transfer is going on and the file is not completely written,
PROCA reads in the file and removes is
2010 Jul 08
3
One account can access samba, another can't.
My wife and I each have our own workstation dual-booting WinXP and
Gentoo Linux. We also have a third which runs Gentoo all the time. I
wanted to set up samba on the third box and provide some extra storage
space for both our Windows installs. It worked for a few days, then all
of a sudden it stopped letting my account (michael) in while still
letting my wife's account (amy) use the share.
2003 Apr 25
2
Open an r+b file connection on Windows
I am trying to open an existing binary file, seek to a position in the
middle, and then write one byte, while keeping the already existing data
after that byte. It seems to me that I am unable to open a connection to a
binary file in both read and write mode. I can open the "r+b" binary file
connection and seek around, but I can't write to the file. And looking at
the function
2021 Jan 23
1
Wiki Access for Cloud SiG
Akemi,
I just verified my userid (amymarrich) works for the wiki and I have
reached out to Javier and Yatin to confirm their userids.
Thanks,
Amy
*Amy Marrich*
She/Her/Hers
Principal Technical Marketing Manager - Cloud Platforms
Red Hat, Inc <https://www.redhat.com/>
amy at redhat.com
Mobile: 954-818-0514
Slack: amarrich
IRC: spotz
<https://www.redhat.com/>
On Fri, Jan
2021 Jan 24
1
Wiki Access for Cloud SiG
Ok updated to Camel Case - AmyMarrich. I'll let the others know as well.
Thanks,
Amy
*Amy Marrich*
She/Her/Hers
Principal Technical Marketing Manager - Cloud Platforms
Red Hat, Inc <https://www.redhat.com/>
amy at redhat.com
Mobile: 954-818-0514
Slack: amarrich
IRC: spotz
<https://www.redhat.com/>
On Sun, Jan 24, 2021 at 1:22 PM Akemi Yagi <amyagi at gmail.com>
2011 Dec 08
1
partial duplicates of dataframe rows, indexing and removal
Hello. I am trying to remove from my dataframe, those rows in which the first
7 columns are duplicated even if subsequent columns make those rows unique.
df<-data.frame(id=rep(c('amy','bob','joe') , each=5),
pet1=sample(LETTERS[1:3],15, replace=T),
pet2=sample(LETTERS[1:3],15, replace=T),
pet3=sample(LETTERS[1:5],15, replace=T))
>df
id pet1 pet2
2013 Jan 29
1
points rejected as lying outside the specified window
Hello,
I am using the following code to create ppp files from csv data and map shape files, but I am getting some errors which I have been unable to fix by searching them online:
library(spatstat)
library(maps)
library(maptools)
NYC2<-readShapePoly("nybb.shp") # this is a map of the NYC boroughs without waterways and no census tract divisions (but it does include lines separating
2011 Feb 16
2
[LLVMdev] verbosity while invoking clang
I am working on implementing a new target for llvm.
So far (to make debugging easier), I was compiling a C code into 2 steps:
1) generate the llvm file:
clang -ccc-host-triple mytarget -emit-llvm -S myfile.c -o myfile.ll
2) generate the assembly file using
llc -march=mytarget myfile.ll
Sometimes, I add some verbosity for the 2nd command like "-print-after-all".
Now, I'd like to