Displaying 20 results from an estimated 8000 matches similar to: "Formatted text output"
2007 Apr 11
2
Looping through series of names
Hi
I am very new to R and have not able to find the answer to my question
in the manual or any other post. I have a dataset that has various
different sites names with data relating to each site. The data is in
one dataset. I want to loop through the different site names and
perform my test on each site. The sites are named not numbers for
example "YYC". How do I do this. I hope I
2012 Jan 28
1
Compiling R code to native code?
Simple question: is there a way to compile R scripts to native code? If not is there anything else that might improve speed? I'm not even sure that R compiles internally to byte code or not. I assume it does since all modern languages seem to do this. Maybe there's a JIT compiler? Yes, I have searched Google and get lots of stuff that's seems confusing. I just want to know what
2011 May 27
1
Email spam from my account on May 26, 2011
I just discovered that some evil spammer has somehow gotten my contacts list and
used it to send out a bunch of spam. This is just to notify you that if you get
an email from me on May 26, 2011 (other than this one or one like it - the
problem was more extensive than I first thought) it wasn't from me. Please
don't add me to your spam filters. I've changed my password and
2008 Oct 23
1
Automating citations in Sweave
Dear all,
Is there an elegant way to add citations of packages when using Sweave?
Ideally I'd like a function which creates a Bibtex-file with the
packagenames as keys. The idea is to use \cite{packagename} or \cite{R}
in LaTeX.
I know you can get the Bibtex entry with
toBibtex(citation("packagename")). But after updating R or a package one
needs to update the bib-file too. When
2006 Mar 15
1
installation problem with Biobase
Hello,
I wanted to install MergeMaid package in v 2.2.1. I could install it but couldn't use without its dependant, Biobase. at biobase installation, I got the following error message
In method for function "split": expanding the signature
to include omitted arguments in definition: drop = "missing"
Error in .MakeSignature(new("signature"), def, signature) :
2010 Aug 24
1
break the long R code lines automatically
Dear
all,
I have
written some R source program with many thousands of lines. I didn’t insert
line breaks automatically or manually for the long lines. But now I would like
to edit the source code in Emacs/ESS to make it more formal as a package. One of
the major problems here is how to break the long lines automatically. Emacs auto-fill-mode
only works for the lines you are typing in currently,
2007 Dec 31
1
Program output to file using a batch command file
If I copy the following commands in my batch file to the R console, R
creates a file named "basicStatsIBM.lis" with the program output in it:
Sortie <- file(description = "basicStatsIBM.lis", open = "wt", blocking =
TRUE,
encoding = "UTF-8")
sink(file = Sortie, append = FALSE, type = "output", split = FALSE)
basicStats(ibm)
close(Sortie)
2008 Oct 18
5
Getting names of variables without quotes
Dear R-helpers,
hello
I am seeking your help in somehow getting names of variables without quotes (" ").
Let us say, we have a table with 3 variables V1, V2 and V3. After the table is read, I get names of the variables (thro' the following code) as under quotes (like "V1" rather than the original representation V1)
2008 Nov 03
2
Calculating R2 for a unit slope regression
Does anyone know of a literature reference, or a piece of code that can help me calculate the amount of variation explained (R2 value), in a regression constrained to have a slope of 1 and an intercept of 0?
Thanks!
Sebastian
J. Sebastián Tello
Department of Biological Sciences
285 Life Sciences Building
Louisiana State University
Baton Rouge, LA, 70803
(225) 578-4284 (office and lab.)
2012 Apr 03
2
Looking for the name of a certain kind of quantile plot
Hi,
While playing with quantile-quantile plots, I wrote up some code which
plots something strangely different. Here's the pseudocode:
testhist <- hist(sample_data)
refhist <- hist(rnorm(n, mean=0,sd=1)) # for some large-ish n
cumtest <- cumsum(testhist)
cumref <- cumsum(refhist)
plot(cumref,cumtest)
This produces a straight line of slope 1 for a sample with the same
2016 Mar 05
2
Adding 'v16f16' to tablegen
I have been able to adapt the main LLVM sources to work with vectors of 16 x
FP16 values and I have introduced the 'v16f16' data type to CLang and LLVM,
but I am stumped on how to get TableGen to recognise this type. At the
moment I am trying to optimise the calling convention code, and whenever I
refer to 'v16f16' I get a crash in TableGen (unrecognised type).
Unfortunately I
2010 Jun 29
1
Model validation and penalization with rms package
I?ve been using Frank Harrell?s rms package to do bootstrap model
validation. Is it the case that the optimum penalization may still
give a model which is substantially overfitted?
I calculated corrected R^2, optimism in R^2, and corrected slope for
various penalties for a simple example:
x1 <- rnorm(45)
x2 <- rnorm(45)
x3 <- rnorm(45)
y <- x1 + 2*x2 + rnorm(45,0,3)
ols0 <- ols(y
2006 Apr 13
4
ORA-12663 and @connection.describe with Oracle7
I am trying to use Rails and an Oracle 7 database.
I have the following error message:
(eval):3:in `__send__'': ORA-12663: Services required by client not
available on the server (OCIError) from (eval):3:in `describe''
and the line oracle_adapter,rb:361:
(owner, table_name) = @connection.describe(table_name)
Do I need this describe line?
Can I replace with something else just
2007 Aug 13
1
Q: how to extract coefisients from one glm and implement them in to an other glm?
Een ingesloten tekst met niet-gespecificeerde tekenset is
van het bericht gescrubt ...
Naam: niet beschikbaar
Url: https://stat.ethz.ch/pipermail/r-help/attachments/20070813/fc375520/attachment.pl
2009 Oct 13
7
lapply() reccursively
Hi all,
I was wondering whether it is possible to use the lapply() function
to alter the value of the input, something in the spirit of :
a1<-runif(100)
a2<-function(i){
a1[i]<-a1[i-1]*a1[i];a1[i]
}
a3<-lapply(2:100,a2)
Something akin to a for() loop, but using the lapply() infrastructure.
I haven't been able to get rapply() to do this.
The reason is that the "real"
2006 Dec 10
4
sample "n" random positions from a matrix
Hi there,
I have a binary matrix (dim 100x100) filled with values 0 and 1. I need select a record "n" positions of that matrix when values are 1. How can I do that?
Thanks for all,
Miltinho
Brazil
---------------------------------
[[alternative HTML version deleted]]
2005 Feb 23
6
Getting tick positions
While writing a function that includes placing grid lines at the same position
as the axis ticks, I found that the axis* functions don't return anything.
Thus I have had to copy the appropriate function, removing the call to axis()
and adding a line to return the tick positions. Is there a more elegant way
to determine the tick positions on an axis? Thanks.
Jim
(normally bitwrit at
2008 Jan 01
3
Specify a correct formula in R for Piecewise Linear Functions?
Dear all,
I have two variables, y and x. It seems that the relationship between them
is Piecewise Linear Functions. The cutpoint is 20. That is, when x<20, there
is a linear relationship between y and x; while x>=20, there is another
different linear relationship between them.
How can i specify their relationships in R correctly?
# glm(y~I(x<20)+I(x>=20),family = binomial, data =
2007 May 31
1
R keeps crashing when executing 'rlogspline'
Dear List,
I have a simple model as follows:
x <- rnorm(500)
library(logspline)
fit <- logspline(x)
n <- 1000000
y <- replicate(n, sum(rlogspline(rpois(1,10), fit))) # last line
The problem I keep getting is R crashes when doing the last line. It
seems to be fine if n is small, but not if n is 1000000. The message
I keep getting is:
"R for Windows GUI front-end has
2007 Oct 23
2
Using a data frame in a function call
Hi,
I am writing a basic function to extract the z scores for some linear
regression coefficients:
zscore<-function( y, x) {
lm<-lm( y ~ x )
z <- coef(lm)/sqrt(diag(vcov(lm)))
return(z)
}
I would like to pass a dataframe to the function as a argument so the
function call changes from
zscore(df$y1,df$x1)
to
zscore(y1,x1,data=df)
but I am not sure how to reference the data