Displaying 20 results from an estimated 1200 matches similar to: "abbreviate dataframe for Sweave output"
2007 Sep 25
2
3d barplot in rgl
Is there anyway to plot a matrix using a 3d bar plot. Something like
bar3 in matlab?
The example in demo hist3d does a 3d barplot for binned data, but has
anyone tried something for a simple matrix with spaces betwen bars
and axis labels using matrix dimnames or 1,2,3?
stages<-letters[1:3]
A<-matrix(c(
0.21, 0.21,0.03,
0.55, 0.58, 0.09,
1.30, 1.35, 0.22), nrow=3, byrow=TRUE,
2005 Dec 06
2
Constructing a transition matrix
Hi,
I would like to construct a transition matrix from a data frame with
annual transitions of marked plants.
plant<-c(1:6)
class<-c("seed","seed", "seed", "veg", "rep", "rep")
fate<-c("dead", "veg","veg","rep", "rep", "veg")
trans<-data.frame(plant, class, fate)
2006 Jan 23
1
Sample rows in data frame by subsets
Hi,
I need to resample rows in a data frame by subsets
L3 <- LETTERS[1:3]
d <- data.frame(cbind(x=1, y=1:10), fac=sample(L3, 10, repl=TRUE))
x y fac
1 1 1 A
2 1 2 A
3 1 3 A
4 1 4 A
5 1 5 C
6 1 6 C
7 1 7 B
8 1 8 A
9 1 9 C
10 1 10 A
I have seen this used to sample rows with replacement
d[sample(nrow(d), replace=T), ]
x y fac
7 1 7 B
2
2007 Nov 14
1
reading tables from url
I'm trying to read some web tables directly into R. These are both
genome sequencing projects (eukaryotes and metagenomes) from NCBI and
look very similar; however, only the first one works.
http://www.ncbi.nlm.nih.gov/genomes/leuks.cgi
http://www.ncbi.nlm.nih.gov/genomes/lenvs.cgi
I added ?dump=selected to the end of the url string to get a tab-
delimited file (which is what happens
2013 May 07
4
create unique ID for each group
Hey All,
I have a dataset(dat1) like this:
ObsNumber ID Weight
1 0001 12
2 0001 13
3 0001 14
4 0002 16
5 0002 17
And another dataset(dat2) like this:
ID Height
0001 3.2
0001 2.6
0001
2006 Jun 18
2
analyze amino acid sequence (composition)of proteins
Dear R-helpers:
thank your for your attention.
i am a newer to R and i am doing some protein category classification based on
the amino acid sequence.while i have some questions urgently.
1. any packages for analysis amino acid sequence
2. given two sequences "AAA" and "BBB",how can i combine them into "AAABBB"
3. based on "AAABBB",how can i get some
2006 Jan 23
8
In which application areas is R used?
If anyone has a list of application areas where there is
extensive use of R, I'd like to hear of it. My current
short list is:
Bioinformatics
Epidemiology
Geophysics
Agriculture and crop science
John Maindonald
Mathematical Sciences Institute, Australian National University.
john.maindonald at anu.edu.au
2014 Jan 11
1
Fortran BLAS giving bad results
Hello r-devel,
When compiling Fortran code containing BLAS functions and calling it using
dyn.load, I am getting incorrect results. A small example with which I can
reproduce the problem is below.
I am running on OSX Mavericks (upgraded R, Xcode, etc per instructions on
this list), but I do not think it is related since the check on my
"blupsurv" package on r-forge seems to be showing
2008 Mar 27
1
functions
I wrote some functions for multiway CANDECOMP, i.e. for least
squares fitting of
a_{i_1\cdots i_m}\approx\sum_{s=1}^p x^1_{i_1s}x^1_{i_1s}\cdots
x^m_{i_ms}
with arrays of arbitrary dimension. Reminded me of the good old APL
days. I could not find this in the archives, but if it's already there,
I would appreciate if someone let me know.
2007 Oct 12
3
Conversion of text in shell
Hi! I want to convert the lines
1.1,3.19e-4
1.2,3.05e-3
10.5,9.14e8
(as example)
to
1,1 & $3,19 \cdot 10^{-4}$\\
etc.. from one file and save these in a new file
Rly lost here except I know I should use regexp and MAYBE sed somehow :)
Thx for any help
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today it's FREE!
2009 Feb 06
3
Sweave and backslashes
Hello Everyone,
I am an avid Sweave user and I am trying to pretty print floating point
numbers for latex output. For example in my document, I would like:
4.2\cdot 10^-{8}
Instead of:
4.2e-08
The Hmisc package has a nice function for doing this- but Hmisc has a ton of
dependencies and has proved very unportable to the various machines I work
on. So, I set out to write my own function that
2018 Apr 25
5
formating DVR-RW
My Centos 6 wodim tell me that it can only format DVD+RW.
I have DVD-RWs.
Even when I format a DVD-RW on my standalone DVD recorder,
wodim still will not write to it.
Is there a centos-6-useable mechanism
for formatting and writing DVD-RWs?
--
Michael hennebry at web.cs.ndsu.NoDak.edu
"Sorry but your password must contain an uppercase letter, a number,
a haiku, a gang sign, a heiroglyph,
2006 Mar 10
3
Sweave scientific real display format (e.g. 5e-12)
Dear All,
I couldn't figure and couldn't google out how to make construct a pair of
\Sexpr s or a LaTeX macro that would include
5\cdot 10^{-12}
into the LaTeX output istead of
5e-12 .
Any ideas?
Thank you
G?bor
2010 Oct 13
5
Poisson Regression
Hello everyone,
I wanted to ask if there is an R-package to fit the following Poisson
regression model
log(\lambda_{ijk}) = \phi_{i} + \alpha_{j} + \beta_{k}
i=1,\cdots,N (subjects)
j=0,1 (two levels)
k=0,1 (two levels)
treating the \phi_{i} as nuinsance parameters.
Thank you very much
--
-Tony
[[alternative HTML version deleted]]
2005 Oct 07
1
'make rpm' problem
Hey all,
I just tried running a 'make rpm' on a fresh install of Fedora Core 4
and ran into an error near the end of the build process. This is the
output of the build when the error occurs:
done
rm -f /tmp/asterisk/var/lib/asterisk/mohmp3/sample-hold.mp3
mkdir -p /tmp/asterisk/var/spool/asterisk/voicemail/default/1234/INBOX
:>
2018 Feb 12
2
Samba 4.6.7 AD, Netapp CDOT 9.2 and missing "Domain Users" membership
Have you solved?
I have the sambe issue with NEtapp CDOT 9.1 P11, latest versions,
tried with AD and works It seems that domain users are not showed
correctly when tey are set as priamry bug, it seems a samba bug
Can you help?
Thanks<div id="DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2"><br /> <table
style="border-top: 1px solid #D3D4DE;">
<tr>
<td
2008 Jun 11
1
how to save an updated dataset
I wrote a package which includes a number of genome sequencing project
statistics on the web like http://www.ncbi.nlm.nih.gov/genomes/lproks.cgi. I
included some generic functions to summarize, plot, and update the tables
with the most recent version
data(lproks)
update(lproks)
[1] "lproks successfully updated, 7 new genomes added"
I usually save the dataset back to my package
2007 Jun 04
2
RMySQL question, sql with R vector or list
Hi,
I am trying to write a RMySQL sql script inside R such that part of the SQL
would be R list or vector. For example, I want to select * from Atable
where ID would equal to a members of R list or vector of "1, 2, 3". Here
the ID list was generated inside R and then try to feed to mysql to call to
get additional data sets.
Can someone on the list help?
Thanks.
--
Waverley @ Palo
2010 Jan 09
1
errors when installing packages (ubuntu)
Hi List,
I'm having problems installing certain packages. When I try to install
fields, I get the output below. I have highlighted the what I perceive as
the first error (spam seems to be a dependency of fields). Can I assume this
is causing dependency problems for fields, which fails to install at the
end, or is there a deeper problem? I run Ubuntu Karmic Koala on R 2.9.2.
2>
2005 Mar 20
2
Interaction term in anova - how it should be written in a manuscript table?
Dear Rgurus,
Interaction terms in the linear models function lm are specified by the
colon :
eg: x ~ a + b + a:b
a shortcut for the above is:
x ~ a*b
the output if calling anova on the lm object will be the same in both cases
a ....
b ....
a:b ...
Resdiuals ...
What I am wondering is how the interaction term (a:b) given above should
be written in a table in an manuscript?
a ) a*b
b )