Displaying 20 results from an estimated 1000 matches similar to: "lapply , mapply questions"
2012 Oct 15
1
calculate out of different lists in R
hey There
I've been trying to match 2 lists in R I have an excel sheet containing all
the 51states of amerika devided by zipcode. the columns are : zip,city,
state, latitude,longitude,count so now I want R to make a new table that I
could use to draw a map. The table should consist the name of the state plus
the count. Like I said I have all the zipcodes and the count for the
zipcodes, so now
2006 Apr 19
9
geolocation db?
I''m currently planning a social app in Rails that relies on being able to
see how far you are from everyone else.
It''s my intention to store rough geo-coordinates as part of the sign up
process. My intention is to capture their zipcode or postal code, and then
be able to query a webservice once for that data. It''s also possible that
there might be a database or even
2009 Aug 02
1
package to convert coordiantes to timezone
Is there a R-package with a function that returns me the timezone, if
I hand over longitude and latitude?
I know online services like
http://ws.geonames.org/timezone?lat=-38.01&lng=147 and
http://www.earthtools.org/webservices.htm#timezone and wodner if this
exists for R too.
Thanks for helping,
thomas
2006 Sep 01
2
Include ActiveResource
Hello,
I want to give ActiveResource a spin.
I have all the code checked out from SVN in vendor/rails (yes, including
ActiveResource).
I''m trying to make sure it gets loaded.
I did this in environment.rb:
config.load_paths += %W( #{RAILS_ROOT}/vendor/rails/activeresource/lib )
Unfortunately I still can''t use it. I have an ActiveResource derived model,
Address:
class
2005 Dec 14
3
Geocode for Ruby
Hey,
Does anybody know of a good Geocode library for Ruby, similar to Perl''s
Geocode::Postal, that i could use in my rail app? I need to do some "within
5 miles" calculations of zipcodes and i dont have a nice ruby (or gem)
utility to do it.
any help would be appreciated.
thanks
adam
_______________________________________________
Rails mailing list
2010 Jun 01
3
lapply with functions with changing parameters
Dear all,
I am trying to avoid a for loop here and wonder if the following is possible:
I have a data.frame with 6 columns and i want to get a cross-correlogram (by using ccf) . Obivously ccf only accepts two columns at once and then returms a list.
In fact, with a for loop i?d do the following
for (i in 1:6) {
x[[i]]=ccf(mydf[,i],mydf[,6])
}
Is there any chance to the same with
2005 Jun 14
7
OT: US city proximity search
Does anyone know where I might be able to download/purchase a database of US
cities and their longitude/latitude coordinates? I''d like to provide a
search option on a website that allows users to search by city but include
cities in the surrounding area.
Thanks,
Carl Youngblood
_______________________________________________
Rails mailing list
2011 Jun 14
1
Invalid Regular Expression
I'm working with some data, and am trying to generate it in the following
format.
state city zipcode
I like pizza 0 0 0
I live in Denver 0 1 0
All the fun stuff is in Alaska 1 0 0
he lives in 66062
2006 Sep 01
2
Uninitialized constant w/ ActiveResource
Howdy,
I had an application perfect for ActiveResource, which I do realize is not
finished.
Anyway, I froze my app to edge and then defined a class:
class Address < ActiveResource::Base
self.site = "http://ws.geonames.org/findNearestAddress?lat=:lat&lng=:long"
End
I tried to use it from the console but I get the trace below.
It appears it can''t
2007 Nov 01
5
monster method (too hard for my skill level)
I need to write a method for calculating the fee for medical
procedures with respect to area. I have all the tables and data but
its hard to give that here. Can someone take a look at this ''stub''
method and help me out?
def calculate_fee
# strip out the first 3 numbers of the user entered zip code
# use those 3 numbers to identify row in [zipcodes table] (between
upper and
2007 Aug 07
2
Varying case sensitivity
Hi all,
I''m using ferret 11.4 together with acts_as_ferret and I''ve indexed the
geonames.org country files. These files contain worldwide locations in
UTF-8 with all their different spellings each.
Model definition is like this:
class location
acts_as_ferret :fields => {:location_names => {}}, :single_index =>
true
...
end
The instance method location_names
2009 Jul 30
2
CRAN + geography = Cranography
In response to an earlier discussion about finding the
fastest/best/nearest CRAN site, I geocoded (using my geonames package)
the locations of the CRAN sites returned by getCRANmirrors. I've
mapped them here:
http://www.maths.lancs.ac.uk/~rowlings/R/Cranography/
The geocoding may have got it wrong, so if CRAN site maintainers want
to send me a real lat-long (in WGS 84 aka EPSG:4326) I'll
2006 Feb 03
4
Zipcode Search
Is there any package that I could use for zipcode search.
I want to display schools that near a particular zipcode. I have no idea how
to do this. It will be great if anyone can point me where I could find info
--
Rgds,
--Siva Jagadeesan
http://www.varcasa.com/
Education Through Collabration
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
2007 Mar 18
3
"ö" causes find_by_contents not to return
I''ve installed ferret 0.10.9 together with the latest acts_as_ferret
using Windows XP and indexed a location database (geonames.org) with
Location.rebuild_index. The data is in utf-8.
Now calling Location.find_by_contents "?" does not return a result,
causes a lot of CPU load, and finally exits with an error "index.rb:702:
in ''parse'': failed to allocate
2008 Aug 25
4
ViaMichelin Maps Support
Hi, I''m Adriano from Rome, Italy.
I would like to know if is there in project any support for the ViaMichelin
API''s.
Thank you
Regards
Adriano Massi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mapstraction.com/pipermail/mapstraction-mapstraction.com/attachments/20080825/6eb6dfe1/attachment.htm>
2005 Jun 10
6
us zipcode data map
i've search the email archives, searched the documention
of various map packages and done an R-site search, but
have been unable to find direct resources for creating maps
of the US that are colored or annotated or ... by zipcode
data.
For example, create a map of the US and color each zipcode
region by its population using two vectors z,p containing the
zipcode and population,
2006 Jul 11
18
Zip Code Ranges
Does anyone have any recommendations for working with zip code distance
ranges? I need to calculate the distances between US zip codes.
Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://wrath.rubyonrails.org/pipermail/rails/attachments/20060711/f133d7de/attachment-0001.html
2006 Jun 18
3
ActiveRecord Help - Not finding Data
Hello,
I''m farily new to RoR and am having a problem trying to retrieve data
from my database. Here is the code from my controller:
def index
zip = params["zip"]
@zip1 = Zipcode.find(:first, :conditions => ["zip = ?", zip])
lat = @zip1.latitude.to_f
long = @zip1.longitude.to_f
radius = 50
@bookstores = Bookstore.find_by_sql ["SELECT * FROM
2007 Mar 01
7
count the # of appearances...
Hi there,
is there a possibility to count the number of appearances of an
element in a vector ?
i mean of any given element.. deliver all elements which are exactly
xtimes in this vector ?
thx in advance !!
2008 Jul 12
5
shapiro wilk normality test
Hi everybody,
somehow i dont get the shapiro wilk test for normality. i just can?t
find what the H0 is .
i tried :
shapiro.test(rnorm(5000))
Shapiro-Wilk normality test
data: rnorm(5000)
W = 0.9997, p-value = 0.6205
If normality is the H0, the test says it?s probably not normal, doesn
?t it ?
5000 is the biggest n allowed by the test...
are there any other test ? ( i know qqnorm