Displaying 20 results from an estimated 3000 matches similar to: "tricky problem with "if" function -"
2007 Feb 23
2
Google Custom Search Engine for R
Hi,
Since "R" is a (very) generic name, I've been having some trouble
searching the web for this topic. Due to this, I've just created a
Google Custom Search Engine that includes several of the most relevant
sites that have information on R.
See it in action at:
http://google.com/coop/cse?cx=018133866098353049407%3Aozv9awtetwy
This is really a preliminary test. Feel free to
2007 Feb 04
2
Download stock prices
gReetings:
Is there any way to download a (or a sample of a) crossection of stock market prices? Or is it possible to use get.hist.quote with a *wild card*?
Thanks,
mihai
Mihai Nica
170 East Griffith St. G5
Jackson, MS 39201
601-914-0361
____________________________________________________________________________________
8:00? 8:25? 8:40? Find a flick in no time
[[alternative HTML
2007 Mar 16
1
ideas to speed up code: converting a matrix of integers to a matrix of normally distributed values
Hi all,
[this is a bit hard to describe, so if my initial description is
confusing, please try running my code below]
#WHAT I'M TRYING TO DO
I'd appreciate any help in trying to speed up some code. I've written
a script that converts a matrix of integers (usually between 1-10,000
- these represent allele names) into two new matrices of normally
distributed values (representing
2010 Apr 25
4
how to make read in a vector of 0s and 1s with no space between them
Hi all,
Probably a rudimentary question. I have a flat file that looks like
this (the real one has ~10e6 elements):
10110100101001011101011
and I want to pull that into R as a vector, but with each digit being
it's own element. There are no separators between the digits. How can
I accomplish this? Thanks in advance!
Matt
--
Matthew C Keller
Asst. Professor of Psychology
University of
2011 May 28
3
Changing the name of the "R" process in top
Hi all,
Perhaps this is more of a unix question, but I'll give it a try here.
I am running 9 different R processes at the same time (called from a
shell script using R CMD BATCH). When I use the top program to
monitor how they are doing, it is impossible to tell which R process
is related to which R script. Is there a way to rename a specific
instantiation of an R process in top with
2007 Nov 08
3
skip non-sequential lines using scan?
Hi all,
Is there a way to skip non-sequential lines using the "skip" argument
in the scan function?
E.g., I have a matrix with 100 rows and 1e7 columns. I open a
connection and want to read only lines 5, 7, 9, etc [i.e.,
seq(5,99,2)]
It might seem that the syntax to do this would be something like this
(if only the "skip" allowed vectors in the same way colClasses does in
2011 May 30
3
ideas about how to reduce RAM & improve speed in trying to use lapply(strsplit())
hi all,
I'm full of questions today :). Thanks in advance for your help!
Here's the problem:
x <- c('18x.6','12x.9','302x.3')
I want to get a vector that is c('18x','12x','302x')
This is easily done using this code:
unlist(lapply(strsplit(x,".",fixed=TRUE),function(x) x[1]))
So far so good. The problem is that x is a vector
2017 Oct 02
2
fwrite() not found in data.table package
Hi all,
I used to use fwrite() function in data.table but I cannot get it to work
now. The function is not in the data.table package, even though a help page
exists for it. My session info is below. Any ideas on how to get fwrite()
to work would be much appreciated. Thanks!
> sessionInfo()
R version 3.2.0 (2015-04-16)
Platform: x86_64-unknown-linux-gnu (64-bit)
Running under: Red Hat
2007 Nov 01
2
unable to install package ff
Hi all,
I've had one of my most miserable R weeks in memory. I'm trying to
deal with huge datasets (>1GB each) but am running up against those
pesky memory limits. The libraries filehash and g.data are not very
suitable for what I need. I haven't gotten into the sql thing yet.
Most recently I've been trying to install the new package ff (not yet
on the CRAN repository). I
2006 Nov 16
2
.rdata files
Help! I accidentally saved my work as an .rdata format instead of .txt
I need to somehow get it saved as a .txt file otherwise i'm really in trouble!
Does anyone know how to convert .rdata to .txt files??
I also tried re-loading the file into R to see if i can re-save it but it doesnt work!
i've attached it below...
please help me asap! i need to turn it in as a .txt file
Thanks
2007 Jun 12
1
Cause of error message in cov function?
Hi all,
I have written a script in R that simulates genetically informative
data - it is posted on my website and available to the public. This is
my first time to write a script for use by others and am learning that
it isn't as easy as it seems.
To the issue. My script runs fine on my machine and on a server I have
access to, but a user has written me saying that it crashes the first
time
2007 Dec 05
2
converting factors to dummy variables
Hi all -
I'm trying to find a way to create dummy variables from factors in a
regression. I have been using biglm along the lines of
ff <- log(Price) ~ factor(Colour):factor(Store) +
factor(DummyVar):factor(Colour):factor(Store)
lm1 <- biglm(ff, data=my.dataset)
but because there are lots of colours (>100) and lots of stores
(>250), I run it to memory problems. Now, not every
2007 Apr 12
3
Random Sequence
Dear Friends,
I'm trying to generate a sequence of 100 observations
with either a 1 or -1. In other words the sequence
should look something like this.
y = 1 1 -1 1 -1 -1 -1 1 1 ......
Can somebody please give me some direction on how I
can do this in R.
Thanks
Anup
____________________________________________________________________________________
Don't get soaked. Take a
2007 Sep 17
2
problems with nested loop
Hi, everyone:
R is new to me. I am writing a nested loop to simulate data for t-test. The following code is wrong. The subscript is out of bounds. Could anyone tell me how to revise it? Thanks, Riddle Chin.
result<-matrix(ncol=5, nrow=1000)
colnames(result)<-c('N=20','N=40','N=60','N=80','N=100')
for (i in 1:1000){
for (j in
2019 Apr 30
1
patch to improve matrix conformability error message
On Mon, Apr 29, 2019 at 06:28:46PM -0700, frederik at ofb.net wrote:
> I think this is a good idea. Is there a reason why it got no interest?
> Slippery slope?
What's the next step? Can it get committed?
> Or maybe others were also just occupied trying to figure out how
> Joshua's second message had timestamp earlier than his first message?
As a new subscriber, I guess my
2008 Jul 27
1
64-bit R on Mac OS X 10.5.4
Hi Matt
Your method is the easiest way for me to install the 64-bit R. I followed the directions on your web site and then did the following:
R --arch=x86_64
source("http://bioconductor.org/biocLite.R")
biocLite(type = "source",lib = "/Library/Frameworks/R.framework/Versions/2.8/Resources/RLib64")
I got many errors and warnings which I copied to the attached file.
2008 Aug 08
1
Vista problem -- can't type commands at prompt
Hi All -
I recently moved to Vista and reinstalled R. I am able to run R as I
typically do (R.exe from the command prompt), and it can work well.
However, if I switch windows to, say, firefox or excel or anything
else, when I return to the R prompt it no longer works. I am able to
use the up and down arrow keys to access previous commands, but no
other key stroke has any impact.
As long as I
2017 Oct 02
0
fwrite() not found in data.table package
You are asking about (a) a contributed package (b) for a package version that is not in CRAN and (c) an R version that is outdated, which stretches the definition of "on topic" here. Since that function does not appear to have been removed from that package (I am not installing a development version to test if it is broken for your benefit), I will throw out a guess that if you update R
2008 Jan 15
9
things that are difficult/impossible to do in SAS or SPSS but simple in R
Hi all,
I'm giving a talk in a few days to a group of psychology faculty and
grad students re the R statistical language. Most people in my dept.
use SAS or SPSS. It occurred to me that it would be nice to have a few
concrete examples of things that are fairly straightforward to do in R
but that are difficult or impossible to do in SAS or SPSS. However, it
has been so long since I have used
2009 May 20
1
how to get remote ESS graphics to work?
Hi all,
My graduate student is logging onto my macpro and running R through
ESS aquamacs (with Mx ssh and then Mx ess-remote). Everything is
working fine until we get to graphing.
We are trying to give him the ability to look at graphics
interactively. The ESS manual is not too helpful: "If you run X11 (See
Section 13.3.2 [X11], page 68, X-windows) on both the local and remote
machines