Displaying 20 results from an estimated 70 matches similar to: "Melt (reshape) question"
2008 Jul 17
4
Matching Up Values
Dear all,
I have two files, both of similar formats. In column 1 are Latitude values (real numbers, e.g. -179.25), column 2 has Longitude values (also real numbers) and in one of the files, column 3 has Population Density values (integers); there is no column 3 in the other file.
However, the main difference between these two files is that one has fewer rows than the other. So what I'm
2006 Dec 14
5
Nicely formatted tables
If I use latex(summary(X)) where X is a data frame with four
variables I get something like
Rainfall Education Popden Nonwhite
Min. :10.00 Min. : 9.00 Min. :1441 Min. : 0.80
1st Qu.:32.75 1st Qu.:10.40 1st Qu.:3104 1st Qu.: 4.95
Median :38.00 Median :11.05 Median :3567 Median :10.40
Mean :37.37 Mean :10.97 Mean :3866
2008 Jun 17
2
Reshape or Stack? (To produce output as columns)
Dear all,
I have used 'read.table' to create a data frame of 720 columns and 360 rows (and assigned this to 'Jan'). The row and column names are numeric:
> columnnames <- sprintf("%.2f", seq(from = -179.75, to = 179.75, length = 720)).
> rnames <- sprintf("%.2f", seq(from = -89.75, to = 89.75, length = 360))
> colnames(Jan) <- columnnames
2009 Jun 21
1
Problems with bilinear interpolation of a grid
Dear all,
I'm having trouble interpolating a number of gridded datasets that I have. I'm quite new to R so any help/advice that can be offered would be much appreciated!
Firstly I'll describe my dataset. The data is a grid of the planet at 1 degree spatial resolution, with each grid cell containing a value describing a particular variable (e.g. population density) for coordinate
2009 Aug 14
4
Assigning values based on a separate reference (lookup) table
Dear R Users,
I have a data frame of 360 rows by 720 columns (259200 values). For each value in this grid I am hoping to apply an equation to, to generate a new grid. One of the parts of the equation (called 'p') relies on reading from a separate reference table. This is Table 4 at: http://www.fao.org/docrep/s2022e/s2022e07.htm#3.1.3%20blaney%20criddle%20method (scroll down a little).
2009 Apr 08
2
Reshape - strange outputs
Dear R Users,
I am using the reshape package to reformat gridded data into column format using the code shown below. However, when I display the resulting object, a single column is fomed (instead of three) and all the latitude values (which should be in either column one or two) are collected at the bottom. Also, the NA values aren't removed, despite this being requested in the code.
Code:
2009 Mar 31
0
Row/columns names within 'assign' command
Dear all,
I am attempting to add row and column names to a series of tables (120 in total) which have 2 variable parts to their name. These tables are created as follows:
# Create table indexes
index <- expand.grid(year = sprintf("%04d", seq(1986, 1995)), month = sprintf("%02d", 1:12))
# Read in and assign file names to individual objects with variable name components
2010 Jan 13
0
No subject
http://developer.apple.com/legacy/mac/library/documentation/Hardware/Develo=
per_Notes/Macintosh_CPUs-G4/iMac_Sep03/03_Input-Output/q26bc_inout.html#//a=
pple_ref/doc/uid/TP40000875-CH207-DontLinkElementID_14
Video Monitor Port
The iMac computer has a port for an external video monitor and supports vid=
eo
mirroring mode. Video mirroring mode displays the same information on both
monitors,
2008 Feb 01
0
[PATCH] linux/x86: make xen_change_pte_range() compatible with CONFIG_HIGHPTE
Cannot use virt_to_machine() on a kmap()-ed address.
As usual, written and tested on 2.6.24 and made apply to the 2.6.18
tree without further testing.
Signed-off-by: Jan Beulich <jbeulich@novell.com>
Index: head-2008-01-28/arch/i386/mm/hypervisor.c
===================================================================
--- head-2008-01-28.orig/arch/i386/mm/hypervisor.c 2007-10-19
2008 Apr 22
0
No subject
I=E2=80=99m gonna close that one as NOTABUG, since we try to be bug-for-bug
compatible with Adobe=E2=80=99s Flash Player. And if Adobe says #FFF is blu=
e, then it
is blue. If you want standards compliance, don=E2=80=99t use Flash=E2=80=A6
--=20
Configure bugmail: http://bugs.freedesktop.org/userprefs.cgi?tab=3Demail
------- You are receiving this mail because: -------
You are the QA contact for
2008 Nov 07
1
two kind of Hosmer and Lemeshow’s test
I know that there are two method to apply the Hosmer and Lemeshow?s. One of
them is calculated based on the fixed and pre-determined cut-off points of
the estimated probability of success. One of them is calculated based on
the percentiles of estimated probabilities.
In the previous post,i find that the Hosmer and Lemeshow?s test how to use
in R.
hosmerlem <-
function (y, yhat, g = 10)
{
2011 Jun 03
0
Rack Middleware support for Rails 2.0.2? If not what is the alternative to implement similar functionality in Rails 2.0.2..
Hello all,
I am using Rails 2.0.2 and Ruby 1.8.7 and I need to make use of rack
middleware for integrating an ajax file upload plugin(https://
github.com/valums/file-uploader) with paperclip in Rails( As given in
this tutorial:-
http://mooooooooooo.wordpress.com/2010/12/03/paperclip-valums%E2%80%99s-file-uploader-and-middleware-continued/).
I have referred to the rack-middleware Railscast by
2008 Feb 01
4
[PATCH] x86: adjust reserved bit page fault handling
One could even debate whether reserved bit faults are always fatal (and
should never be propagated to the guest)...
Signed-off-by: Jan Beulich <jbeulich@novell.com>
Index: 2008-01-28/xen/arch/x86/traps.c
===================================================================
--- 2008-01-28.orig/xen/arch/x86/traps.c 2008-01-28 11:31:44.000000000 +0100
+++ 2008-01-28/xen/arch/x86/traps.c
2008 Jan 31
3
[PATCH] stack overflow during pv-guest restore
When secondary cpus are initialized during an i386 pv-guest restore
(due to save/restore or live migration), and the guest has
a load that generates a fair number of interrupts (e.g., parallel kernel make),
a stack overflow can occur because cpu_initialize_context() has
a 2800 byte structure it declares on its stack. linux-i386 has 4K stacks, by default.
Using 2800 bytes out of 4K by a single
2007 Nov 09
2
RubyConf 2007 - Thoughts?
Hi,
For those of you that attended RubyConf 2007, what were your impressions?
Any more thoughts on JRuby, Rubinius, IronRuby or Wuby?
Regards,
Dan
2010 Dec 05
1
[PATCH 4/5][REPOST][BTRFS-PROGS] Avoid to scan cdrom and floppy
Hi all,
the commands "btrfs filesystem show" and "btrfs device scan" look at the /dev
directory (and it subdirectories) for every block devices.
This is a slow process because floppy and cdrom are also checked. Moreover,
as highlighted by Helmut, if udev is not used, the /dev directory is populated
by high number of non-existant devices, which slow the process.
My patch
2003 May 03
0
Storing rsync secrets in LDAP
Hi, a few months ago I posted a message about using LDAP to store rsync secrets in LDAP. I received a response about patching the rsync source code with a patch file. I am now finally getting around to doing this, and when I tried to use the patch command 'patch --verbose ./rsync-2.5.6/authenticate.c rsync-ldap.patch' , it gives me the following error:
Hmm... Looks like a unified diff
2008 Jan 22
6
recoding one variable into another - but differently for different cases
Hello,
I have 2 variables in my sample Data: Data$A and Data$B
Variable Data$A can assume values: 1, 2, 3, and 4.
Variable Data$B identifies my cases and can assume values: 1 and 2.
I need to recode my variable Data$A into a new variable Data$new such that:
People who are Data[Data$B %in% 1, ] are recoded like this:
Value on Data$A Value on Data$new
1 +1
2
2011 Apr 21
1
Accounting for overdispersion in a mixed-effect model with a proportion response variable and categorical explanatory variables.
Dear R-help-list,
I have a problem in which the explanatory variables are categorical,
the response variable is a proportion, and experiment contains
technical replicates (pseudoreplicates) as well as biological
replicated. I am new to both generalized linear models and mixed-
effects models and would greatly appreciate the advice of experienced
analysts in this matter.
I analyzed the
2009 Apr 01
0
回复: R-help Digest, Vol 73, Issue 32
Dear sir, How to do bilinear time series in R?Is there any functions or packages? thank you!
-----Sincerely yours
Kuangnan Fang 方匡南 敬上
department of statistics ,Economics school,Xia men University.
Fujian Province (361005) China
Mobile Phone:15860721915 SKYPE: ruiqwy
MSN Messenger: ruiqwy@hotmail.com
QQ:39863401
--- 09年3月31日,周二, r-help-request@r-project.org