Displaying 20 results from an estimated 3000 matches similar to: "Delete observations with a frequency < x"
2010 Dec 10
2
Projecting data on a world map using long/lat
Hi,
I have a dataset (CSV) with some counts of firms located around the globe.
Each count is assigned to the longitude and latitude of the specific
location. Now I want to plot these counts on a world map using dots (size of
dots represent the count). I have been unable to find any info on whether
this is possible and if so, how? Can you please help me? Thanks!
Mathijs
--
View this message
2010 Dec 09
2
Error in vector("integer", length) : vector size cannot be NA
Hello,
I have uploaded a csv file that looks like this:
> gc
alpha_id beta_id
1 142053 1
2 9454 1
3 295618 2
4 42691 2
5 389224 3
6 9455 3
The alpha_id contains 310660 unique values and the beta_id contains 17431
unique values. The number of rows adds up to more than 1.3 million. Now I
want to convert
2012 Jan 24
4
Select elements from text
Hi,
I have a series of MS word files and each file contains plain text. From
these texts I would like to extract only those elements (read: words) that
are between square brackets. Example of a text:
Most fundamentally, it has led to an effort to clarify the organizational
form concept. According to them [see also Smith, Jones and Carroll 2002],
categories emerge as audience members recognize
2006 Sep 11
1
Wrong content-type reported for messages with only a text/html body?
Hi all,
It looks like Dovecot 1.0rc7 reports the wrong content-type for messages
with only a text/html body. An example of such a message is:
---
From: mathijs at izecom.com
Subject: test
To: foobar at example.com
Content-Type: text/html;
test
---
When I talk IMAP to Dovecot directly using telnet and fetch the
bodystructure of this message, Dovecot replies:
* 1 FETCH (BODYSTRUCTURE
2012 Nov 01
7
Reduce(paste, x) question
I have a question about the Reduce function:
x <- list()
x[[1]] <- LETTERS[1:5]
x[[2]] <- LETTERS[11:15]
Reduce(paste, x)
[1] "A K" "B L" "C M" "D N" "E O"
How do I get this?:
[1] "A" "K"
[2] "B" "L"
[3] "C" "M"
[4] "D" "N"
[5] "E" "O"
2010 Dec 21
1
Matching 2 SQL tables
Hi,
I have a postgresql and a mysql database and I would like to combine the
info from two different tables in R. Both databases contain a table with
three columns: project_name, release_id and release_date. So each project
output could be released multiple times (I am interested in the first
release_date). However, some of the data is missing. Basically, what I want
to do is to try and fill the
2011 Feb 25
4
Error
Hi, I am running the following script for a different (much larger data
frame):
DF = data.frame(read.table(textConnection(" A B C D E
1 1 a 1999 1 0
2 1 b 1999 0 1
3 1 c 1999 0 1
4 1 d 1999 1 0
5 2 c 2001 1 0
6 2 d 2001 0 1
7 3 a 2004 0 1
8 3 b 2004 0 1
9 3 d 2004 0 1
10 4 b 2001 1 0
11 4 c 2001 1 0
12 4 d 2001 0
2008 Mar 25
2
FXImageFrame/SEL_LEFTBUTTONRELEASE
Hi,
I have a FXImageFrame widget and I would like it to show another image when
I click on it.
I''m having no luck with receiving a onclick via SEL_LEFTBUTTONRELEASE.
...
imageframe=FXImageFrame.new(mainwindow,the_image,LAYOUT_EXPLICIT,0,0,20,20)
imageframe.connect(SEL_LEFTBUTTONRELEASE) {p ''onclick received''}
...
What is it that I''m missing?
2012 Mar 16
1
ggplot axis limit
Hi,
This is probably an easy one, but I am new to ggplot2 and cannot find an
answer online.
I am bar plotting values of 10 groups. These values are all within a 90-100
range, so I would like leave out the area of the bars below 90. If I say
"graph + scale_y_continuous(limit=c(90, 100))", it does limit the axis but
the bars disappear completely. Any solution here?
Thanks a lot!
2006 Mar 06
2
DO NOT REPLY [Bug 3584] New: base64 function does not pad output correctly
https://bugzilla.samba.org/show_bug.cgi?id=3584
Summary: base64 function does not pad output correctly
Product: rsync
Version: 2.6.6
Platform: All
OS/Version: All
Status: NEW
Severity: normal
Priority: P3
Component: core
AssignedTo: wayned@samba.org
ReportedBy: mathijs@crooked.net
2008 Jan 21
2
multiple ids on restful action
Hi,
I know this question has come up before, but I couldn''t find a
satisfying answer.
Maybe I didn''t look well enough, so any pointers to old messages
regarding this subject would be welcome too.
I need some way to pass multiple ids to a resource.
Something like /posts/13,14
If I do this I have to manually split the id on ","s in the action,
and use
post_path([post1,
2011 Feb 11
11
CSRF protection in rails 2.3.11
Hi all,
I think CSFR protection broke in rails 2.3.11.
As in: it''s turned off now.
I tried this in rails 2.3.10 and in 2.3.11 and 2.3.11 seems broken.
>rails csrftest
>cd csrftest
>script/generate scaffold post title:string
>rake db:migrate
now I visit /posts/new in my browser, use firebug to delete or change
the authenticity token, and submit the form.
rails 2.3.11: all
2012 Jan 19
2
POSIXct value display incorrect for some values
First, the reproducable example, showing how converting from character to
POSIXct to character changes the milliseconds in the first time stamp
though not in the second:
> as.POSIXct('2010-06-03 9:03:58.324')
[1] "2010-06-03 09:03:58.323 PDT"
> as.POSIXct('2010-06-03 9:03:58.325')
[1] "2010-06-03 09:03:58.325 PDT"
This seems to be due to truncation of
2005 Oct 07
2
Assign references
Folks,
I've run into trouble while writing functions that I hope will create
and modify a dataframe or two. To that end I've written a toy function
that simply sets a couple of variables (well, tries but fails).
Searching the archives, Thomas Lumley recently explained the <<-
operator, showing that it was necessary for x and y to exist prior to
the function call, but I haven't
2010 Oct 25
2
extracting characteristics of datasets from data()
I can use data() to find the available datasets in a package, but I'd
like to extract and display some additional
information for each dataset than what is provided by data(), e.g.,
class() and dim() for datasets for which
these are available. I'm stuck on using using lapply properly with
objects, rather than the names of objects
that I get from data()
Example:
> DS <-
2005 Jul 12
4
Calculation of group summaries
I know R has a steep learning curve, but from where I stand the slope
looks like a sheer cliff. I'm pawing through the available docs and
have come across examples which come close to what I want but are
proving difficult for me to modify for my use.
Calculating simple group means is fairly straight forward:
data(PlantGrowth)
attach(PlantGrowth)
stack(mean(unstack(PlantGrowth)))
2011 Apr 09
5
Yearly aggregates and matrices
Hi,
I need to perform calculations on subsets of a data frame:
DF = data.frame(read.table(textConnection(" A B C D E F
1 a 1995 0 4 1
2 a 1997 1 1 3
3 b 1995 3 7 0
4 b 1996 1 2 3
5 b 1997 1 2 3
6 b 1998 6 0 0
7 b 1999 3 7 0
8 c 1997 1 2 3
9 c 1998 1 2 3
10 c 1999 6 0 0
11 d 1999 3 7 0
12 e 1995 1 2 3
13 e 1998 1 2 3
14 e 1999 6
2011 Apr 29
4
For loop and sqldf
Hi list,
Can anyone tell my why the following does not work? Thanks a lot! Your help
is very much appreciated.
DF = data.frame(read.table(textConnection(" B C D E F G
8025 1995 0 4 1 2
8025 1997 1 1 3 4
8026 1995 0 7 0 0
8026 1996 1 2 3 0
8026 1997 1 2 3 1
8026 1998 6 0 0 4
8026 1999 3 7 0 3
8027 1997 1 2 3 9
8027 1998 1 2 3 1
8027 1999
2008 Aug 28
1
Interaction between aggregate() and length()
Folks,
I've been running into an odd situation that occurs when I use length()
function with aggregate(), but not with either one separately. Together,
the results looks correct but is given an unexpected name. 'if
(stringsAsFactors) factor(x) else x' instead of just 'x'.
# Numbers work ok
tt <- data.frame(idx=c(1,1,1,1,1,1,2,2,2,2,2,2)
2009 Apr 02
1
Updating a data frame
Folks,
Updating values in a table is simple in SAS or SQL, but I've wracked my
brain looking for an elegant solution in R to no avail thus far. Certainly
this is a common need that's been solved in dozens of different ways.
Given an initial dataframe nn and a smaller dataframe of updates uu, I'd
like to replace the values in
nn <- expand.grid('a'=1:4, 'b'=1:3)