Displaying 20 results from an estimated 600 matches similar to: "Shapefiles"
2006 May 25
1
Building Libraries
Dear List,
I have just compiled my first R library for submission to CRAN; however, I
have a tiny problem with 'R CMD check' that is holding me back. I have read
extensively the PDF document on Writing R Extensions and the 'Making R
Packages Under Windows' tutorial by P. Rossi. All functions are given in R
code (no C/C++/Fortran) with two very simple demonstration datasets. My
2005 May 30
1
Unique arrangements of a vector
Dear List,
Running on a PC (Windows 2000) with 256 MB RAM, Version R1.9.1
I have a relatively simple problem, which I can solve for relatively small
datasets, but run into difficulties with larger ones. I believe that my
approach is a hack rather than something elegant and I was hoping that
somebody on this list might help me improve my code. Basically, given a
vector of values (e.g.,
2011 Sep 20
1
Boxplots from 4 dimensional array
Hello list members,
I am working with simulated data for landscape pattern analysis. I have
1000 replicates of binary (2 colour) gridded landscapes at each combination
of 9 levels of class proportion and 11 levels of spatial autocorrelation.
The results are stored in an array as follows:
> dim(surfaces)
[1] 38 9 11 1000
The dimensions are defined as follows:
[x,,,] 1:38, integers
2005 Jan 04
4
Re : Frequency count
Dear list,
I have a dataset as follow and I would like to count the frequencies for
the combination of the two variables (f1 and f2) for each id. I know it is
should be straight forward, but I just don't know how to do it in R. Here
is the SAS code I will use to get the output I want :
proc means nway;
class id f1 f2;
var flag
output out=temp;
Dataset:
id f1 f2 flag
798 1 2
2005 Jan 07
6
coercing columns
Dear all,
I have a data frame that looks like this:
c1 c2 c3
A B C
B C A
A A B
and so on;
I?d like to produce one single vector consisting of the columns c1,c2,
c3, such that
vector=("A","B","A","B","C","A","C","A","B")
I guess it?s easy to do but I don?t know how...Can anyone
2006 May 22
2
selectively disabling parameter logging in controllers
By default, Rails logs all parameters passed to a controller method.
As far as I can tell, this happens in both development and production
modes.
I have a form that collects some sensitive data. I don''t want that data
sent to the log, at least not in production mode. Of course, I''d still
like to log everything else. Is there a way to accomplish this?
--
Posted via
2007 Jul 22
18
db:fixtures:load order
I was trying to deal with foreign key issues related to order of
fixture loading when I came across this:
http://techpolesen.blogspot.com/2007/04/rails-fixture-tips.html
This got me looking deeper into rails and I noticed that
db:fixtures:load calls Fixtures.create_fixtures once for each fixture
file. However, Fixtures.create_fixtures is capable of taking multiple
files and also handle the
2006 Jan 10
3
Serving lots of images to only registred users
Hello guys,
I am building a photo website and I have some questions before I really
start programming the site.
My system will be Debian + lighttpd + mysql +fastcgi + ImageMagick
I plan to use file_column for image handling/verification and thumbnail
creation.
My question is;
I need to store images in a place outside of webroot so only registered
members can see them. To serve them secure
2007 Aug 12
0
ActiveRecord with only a primary key
Hi,
ActiveRecord does not currently support tables that have only
a primary key.
This seems to be a needed feature as evidenced by the tickets:
http://dev.rubyonrails.org/ticket/6187
http://dev.rubyonrails.org/ticket/6319
http://dev.rubyonrails.org/ticket/7877
The update case is easily fixed by just not running the query
when there are no columns to update. But the create case is
problematic
2003 Jun 30
3
if else statements in R
Hi, there
I am a grad student struggling to get my syntax right in a model I am
building in R.
I am trying to specify a variable,W, in a loop, such that on the first
iteration, it is equal to Wo, my starting value, which I have already
specified with
Wo<-9.2
On any other iteration other than the first, I want W to equal the
previous value of W in the iteration. plus an increment from
2004 Jul 29
1
Kudos to the R support team
Hi there,
I just wanted to take a quick second to thank everyone who maintains this
service- just in case you don't hear it enough, there are a plethora of people
who rely on this service (as evidenced by the help archives), and even if they
don't say it, are greatly thankful for what you do here. Not only are you
providing a service to people who are learning R, but indeed helping
2007 Dec 01
10
Fixtures Cleanup
All,
I''ve been playing a bit with some patches to make the fixture loading
and management code a little bit easier to maintain. If I were to
start chopping out features, how would you feel about losing:
Fixture instantiation,
Old school single-file fixtures,
CSV fixtures,
The ability to specify a subset of fixtures (everything''s always
loaded instead),
The ability to
2008 Jul 06
2
Issue with postscript figures using WinAnsi encoding
Hi there,
I've hit a bump in writing postscript files with special characters in
the WinAnsi encoding on a windows machine.
Here's some sample code:
###########################################
postscript(file = "test.eps", encoding="WinAnsi.enc",
width = 3, height = 5.5, onefile = TRUE, horizontal=FALSE, family =
"sans",
title =
2006 May 22
4
How to check an input String is a number or not in ruby?
How to check an input String is a number or not in ruby?
Thanks in advance,
Joshua
--
Posted via http://www.ruby-forum.com/.
2008 Jul 09
2
sorting a data frame by rownames
Hi there,
I'm sure there's an easy answer to this, and I can't wait to see it.
The question: is there an easy way to sort a data frame by it's row names?
My dilemma:
I've had to pull apart a data frame, run it through a loop to do some
calculations and generate new variables, and then re-construct the chunks
back into a data frame at the end.
Doing this preserves the row
2007 Jan 23
1
How to evaluate an lm() object for generating warning statement in a function
Hi, there
I tried this post on R-help but did not generate any replies, so I thought
I might try the waters here since it's a more programming-based group.
I have written a function that will allow me to calculate the variance
components for a model II (random effects) single factor ANOVA (perhaps
this is
me re-inventing the wheel, but I handn't yet come across anything in R that
does
2007 Feb 12
1
Trying to replicate error message in subset()
Hi, there
I am trying to replicate an error message in subset() to see what it is
that I'm doing wrong with the datasets I am trying to work with.
Essentially, I am trying to pass a string vector to subset() in order to
select a specific collection of cases (i.e., I have data for these cases in
one table, and want to select data from another table that match up with
the cases in the
2008 Jul 09
1
matplot help
Hi,
My question is how do I gain control over what values the X and Y axis show. Below is a sample plot I have made and want the X axis to represent a time vector with values taking the form Q1.60, Q2.60, Q3.60...Q1.90..etc...Currently the X axis starts with value 0 and increases by 1 through the end of the sample.
win.graph()
matplot(v.0,log.diff.v.6,type="l",lty=1, col=2,
2007 Feb 01
2
Losing factor levels when moving variables from one context to another
Hi, there
I'm currently trying to figure out how to keep my "factor" levels for a
variable when moving it from one data frame or matrix to another.
Example below:
vec1<-(rep("10",5))
vec2<-(rep("30",5))
vec3<-(rep("80",5))
vecs<-c(vec1, vec2, vec3)
resp<-rnorm(2,15)
dat<-as.data.frame(cbind(resp, vecs))
2008 Jul 15
1
manipulating (extracting) data from distance matrices
Hi all,
Does anyone have any tips for extracting chunks of data from a distance matrix?
For instance, if one was interested in only a subset of distance
comparisons (i.e., that of rows 4 thru 6, and no others), is there a
simple way to pull that data out?
>From some playing around with an example (below), I've been able to
figure out that a distance matrix in R is stored as a single