Displaying 20 results from an estimated 100 matches similar to: "Reshape package: Casting data to form a grid"
2013 Aug 09
1
Samba 3.6.6 idmap problem
Hi All,
I have been stuck on this problem for a day or so now and am in need of a bit of help.
I am running Samba 3.6.6 with Winbind and all operation and working correctly apart from the UID and GID mapping. There have been a few post on the net regarding this but all the solution listed do not work for me.
Here is my smb.conf
---------------------------------------------------
[global]
2008 Jul 15
3
Melt (reshape) question
Dear all,
I
have a grid of 720 columns by 360 rows of global population density
values, and hope to convert this to column format using the 'melt' command in the 'reshape' package. I'm not receiving
any errors as such, but when the code has finished running, my output
looks like this:
> head(PopDens.long)
Latitude Longitude PopDensity
1 -84.75 V1 0
2
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
2012 Apr 23
1
ggplot2 - geom_bar
Hello,
I've some problem with the ggplot2. Here's a small example:
--8<--
library(ggplot2)
molten <- data.frame(date=c('01','01','01','01',
'02','02','02','02'),
channel=c('red','red','blue','blue',
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 Apr 07
2
Using as.formula() with the reshape package cast
I am trying to use the "cast" function from the reshape package, where the
formula is not passed in directly, but as the result of the as.formula()
function.
Using reshape v. 0.7.2
I am able to properly melt() by data with:
> molten <- melt(x, id=1:2)
then I can properly cast with this:
> cast(molten, days ~ variable)
but if I try
> cast(molten,
2013 Jan 07
3
renumber a list of numbers
Greetings R users,
I am trying to renumber my groups within the file shown below. The groups
are currently set as 8,9,10,etc. I would like to renumber this as
1,2,3,etc. I have searched the help files and only come across using the
rownames to renumber the values but I need to match values. Any assistance
is always appreciated,
Regards,
Charles
structure(list(Group = structure(c(1L, 1L, 1L,
2010 Sep 16
1
plotting time series using ggplots
Hi,
I would like to plot a bunch of tree ring width data (time series)
using ggplots, but I'm having trouble figuring out how to do it.
My data is in a data.frame, with years as rownames and a distinct tree
ring series in each column. So, something like this:
rwl<-matrix(rnorm(800), nrow = 100)
colnames(rwl) <- paste('V', 1:8, sep = '')
2010 Nov 05
3
table with values as dots in increasing sizes
I was just thinking of a way to present data and if it is possible in R.
I have a data frame that looks as follows (this is just mockup data).
df
location,"species1","species2","species3","species4","species5"
"loc1",0.44,0.28,0.37,-0.24,0.41
"loc2",0.54,0.62,0.34,0.52,0.71
"loc3",-0.33,0.75,-0.34,0.48,0.61
location
2003 Feb 15
2
How to code a bootstrap version of the Wilcoxon-Mann-Whitney test (and variants)?
Hello,
can someone please help me with coding a function for a bootstrap WMW test (package boot, R under Windows, version 1.6.2)?
2009 Apr 30
1
Overlaying graphs from different datasets with ggplot
Dear R-users,
I recently began using the ggplot2 package and I am still in the process of
getting used to it.
My goal would be to plot on the same grid a number of curves derived from
two distinct datasets. The first dataset (called molten.data) looks like
this :
Column names : Perc, Week, Weight
P10 21 333.3554
P90 21 486.0480
P10 22 452.6347
P90 22 563.8263
P10 23 575.0960
P90
2009 Nov 23
1
recognizing variable-names of cast() (package: reshape)
An embedded and charset-unspecified text was scrubbed...
Name: not available
URL: <https://stat.ethz.ch/pipermail/r-help/attachments/20091123/3b4cbdd5/attachment-0001.pl>
2009 Sep 08
4
barplot with lines instead of bars
Dear useRs,
I want to plot the following barplot with lines instead of bars. Is there a way?
data <- data.frame(cbind(k = 0:3, fk = c(11, 20,7,2), f0k = c(13.72, 17.64, 7.56, 1.08), fkest = c(11.85, 17.78, 8.89, 1.48)))
d <- t(data[,2:4])
barplot(d, beside=TRUE)
Regards,
Rafael.
____________________________________________________________________________________
[[elided Yahoo
2009 Apr 30
1
Using 'aggregate' when dependent on row value increments
Dear all,
I have a data frame of three columns, which I have sorted by Latitude as follows:
> test2[60:80,]
Latitude Longitude Sim_1986
61948 85.25 -29.25 2.175345
61957 85.25 -28.75 8.750486
61967 85.25 -28.25 33.569305
61977 85.25 -27.75 23.702572
61988 85.25 -27.25 26.488602
62000 85.25 -26.75 23.915724
62012 85.25 -26.25 25.055082
62027
2006 Oct 11
1
Question about error of "non-numeric argument to binary operator"
Hi,
I have the following data and there is no binary operator contained,
however, I still receive the error message when running unitrootTest
function, could someone give me a guidance on it??
>readClipboard()
[1] "245" "246" "261.5" "275.5" "307" "284.5" "289" "313.5"
"323.75"
2011 Jun 30
2
Points but no lines in qplot.
Dear R helpers,
I have molten data which is : -
> t3
Year variable value
1 2005 ICICI.Bank 274883700000
2 2006 ICICI.Bank 431668500000
3 2007 ICICI.Bank 595153000000
4 2008 ICICI.Bank 630857600000
5 2009 ICICI.Bank 545263300000
6 2005 HDFC.Bank 2658600000
7 2006 HDFC.Bank 7891000000
8 2007 HDFC.Bank 18031100000
9 2008
2010 Apr 19
1
Formatting data, adding column names, use reshape, a newbie question
Hi all,
I'm an R novice.
I have data that's already formatted as "molten" that reshape should be able
to work with. For example, the following was read in with
read.csv(filename,sep=" ", header=FALSE)
V1 V2 V3 V4
V5
1 original book book.source1.txt 328900494 3039.525
2 original book book.source1.txt
2011 May 31
1
reshape::cast: invalid 'yinds' argument
Hi,
I'm using reshape to cast molten data. When I use the following command, R
either crashes (when I use Notepad++) or gives an error (when I use Rgui or
source()), BUT the error occurs not always, maybe only on half the attempts:
w <- cast(v, id + code + productname + year + begin + end + specificDesc +
specificDesc2 ~ type)
Error in merge.data.frame(data, all.combinations, by =
2008 Feb 15
2
For Subset or Reshaping the Table
Hi R users
I am a new user in the field of R.
I want to subset or reshape a data.frame.
For example I have a matrix like
A B C D E F G
a 1 2 3 4 5 6 7
b 4 6 8 9 5 5 6
c 3 4 4 4 3 3 6
d 1 2 4 6 8 8 9
e 5 6 7 8 9 2 3
I want to reshape the matrix in this format
Row Col Value
a D 4
a E 5
a F 6
. . ..
2010 Dec 23
1
Running sweave automatically using cygwin
Hi all,
Hope someone could help me.
I am trying to run automatically the conversion of an Rwn file to a tex
file.
I am using windows 7, and cygwin.
I tried to run automatically the Sweave.sh script, in its the most
recent version available at R webpage:
http://cran.r-project.org/contrib/extra/scripts/Sweave.sh
Unfortunately, I got this error message:
===========================
Raquel at