Displaying 12 results from an estimated 12 matches for "gorp".
Did you mean:
corp
2008 May 29
1
Separator argument in read.table
Hi,
Suppose I have the following tabular data:
1729_at | TRADD | TNFRSF1A-associated via death domain | protein-coding
1773_at | FNTB | farnesyltransferase, CAAX box, beta | protein-coding
177_at | PLD1 | phospholipase D1, phosphatidylcholine-specific | protein-coding
What is the right separator used for read.table function?
I tried this:
dat <-
2011 Nov 20
1
place values into a matrix efficiently?
This question attacked me as I was thinking about matrix value updates.
I probably will never need to do this, but wanted to ask if there are
efficient methods to perform the for-loop in the following sequence.
%xymat<-matrix(rep(0,100) nr=10,nc=10) # empty matrix
%x<-1:10
%y<-sample.int(10,10,rep=T)
%for (j in 1:10) xymat[x[j],y[j]] <- some_function(x[j],y[j]) #to create
either
2002 Apr 04
1
PR#1132.
...l="stylesheet" type="text/css" href="../../R.css">
</head><body>
<h2>Do nothing.</h2>
<h3>Description</h3>
<p>
Do nothing, but do it <b>very</b> well!
</p>
<h3>Usage</h3>
<pre>
foo(gorp,par)
</pre>
<h3>Arguments</h3>
<table summary="R argblock">
<tr valign="top"><td><code>gorp</code></td>
<td>
I don't know either.</td></tr>
<tr valign="top"><td><code>par&l...
2008 Apr 16
1
efficiently replacing values in a matrix
Hello all,
I should probably know this by now... Anyway:
I have a large matrix (dim(data) is 3000 18000). In each element are
one of the following character strings "0/0", "1/1", "1/2", "2/2". I
wanted to replace "0/0" with NA and the other three with 0,1,2
respectively. To accomplish just the first of these four steps I did
this:
2010 Mar 23
2
Saving tab/csv delimited data with NaN's
Hello,
I am working multiple simulated data sets with missing values, I would
like to store these data sets in either tab delimited format for .csv
format with missing values marked as NaN's instead of NA's.
I read the import/export document which mentions that write.table
command converts NaN's to NA. Is there any other way I can store the
NaN's. I tried the write syntax
2012 Nov 08
3
problem with package development and older defs earlier in search order
Hi,
I have a problem with a package I have developed in that functions do not get loaded due to older versions of the functions being in the .GlobalEnv? fetched from .Rdata files stored from previous saved workspaces. I need to be able to fix this somehow when I load the package. I do not want to mess up the search order to fix the problem.
How I got myself into this mess is that I started
2010 Dec 02
1
The behaviour of read.csv().
...csv()
says:
The number of data columns is determined by looking at
the first five lines of input (or the whole file if it
has less than five lines), or from the length of col.names
if it is specified and is longer.
However, the help for read.table() says the same thing. And yet if
one does
gorp <- read.table("junk.csv",sep=",",header=TRUE)
one gets an error, whereas read.csv() gives none.
Am I correct in saying that is inappropriate behaviour on
the part of read.csv(), or am I missing something?
cheers,
Rolf Turner
-------------- next part --------------...
2004 Jul 30
1
Three-way ANOVA?
Hi,
I'm a biologist, so please forgive me if my question sounds absurd! I have 3
parameters x1, x2, x3 and a response variable y.The sample size is 75. I tried
to do the following:
mylm<-lm(y~ x1 + x2 + x3, data="mydata")
but i can only get stats from anova for the first 2 variables. The third comes
up as NA. The degrees of freedom for the third variable are 0.
Is there
2017 Aug 23
4
Flummoxed by gsub().
I have a vector (say "x") of the form
[1] "mung5" "mung10" "mung20" "gorp5" "gorp10" "gorp20"
I want to extract just the numbers (strings of digits) that appear at
the end of the strings in "x".
My reading of ?regex led me to believe that
gsub("[:alpha:]","",x)
should give the result that I want. However...
2011 Jul 19
1
"may be used in an incorrect context"
R CMD check tells me
* checking R code for possible problems ... NOTE
agexact.fit.rds: ... may be used in an incorrect context: ?optim(init,
agfitfn, ...)?
Warning: <anonymous>: ... may be used in an incorrect context: ?optim(init, agfitfn, ...)?
Can anyone tell me what this message means? My searches haven't turned
up anything useful. This is with R 2.7 and 2.9.
The message
2017 Aug 23
0
Flummoxed by gsub().
...f Turner
> Sent: Wednesday, August 23, 2017 7:46 AM
> To: r-help mailing list <r-help at r-project.org>
> Subject: [R] Flummoxed by gsub().
>
>
> I have a vector (say "x") of the form
>
> [1] "mung5" "mung10" "mung20" "gorp5" "gorp10" "gorp20"
>
> I want to extract just the numbers (strings of digits) that appear at the end of
> the strings in "x".
>
> My reading of ?regex led me to believe that
>
> gsub("[:alpha:]","",x)
>
> shoul...
2010 Mar 24
0
R-help ordinal regression
...t your data to character
> before writing them.
>
> Suppose that your data are in a data frame called
> ``clyde''.? Set
>
> mung <- as.data.frame(lapply(clyde,as.character))
> write.csv(mung,"mung.csv",row.names=FALSE,quote=FALSE)
>
> # Check:
> gorp <- read.csv("mung.csv")
> all.equal(gorp,clyde)
> [1] TRUE
>
> HTH
>
> ??? cheers,
>
> ??? ??? Rolf Turner
> ######################################################################
> Attention:
> This e-mail message is privileged and confidential. If...