Displaying 20 results from an estimated 3000 matches similar to: "reshape() problems"
2010 Mar 26
1
a vectorized solution to some simple dataframe math?
I have a data frame containing the results of time measurements taken from
several cells. Each cell was measured in conditions A and B, and there are
an arbitrary number of measurements in each condition. I am trying to
calculate the difference of each measurement from the mean of a given cell
in a given condition without relying on loops.
>my.df
id cond time
1
2012 Mar 13
2
sort list
Hello can anyone help please?
i read two words "cell1", "cell2" into a list. I want to turn this list
into a factor.
> cell_data <-list(c('cell1','cell2'))
> cell_data
[[1]]
[1] "cell1" "cell2"
> factor_list <- factor(cell_data)
Error in sort.list(y) : 'x' must be atomic for 'sort.list'
Have you called
2008 Nov 04
1
perform Kruskal-Wallis test without using the built-in command in R
Hi,
again i am stuck in my presentation, and i have never learn R before in my
life but need this to be done, so please help me out for a favour:
http://www.nabble.com/file/p20333155/kew.dat kew.dat
run this in R and these comes up:
Month Year Rain
1 Jan 1900 74.400000
2 Feb 1900 80.500000
3 Mar 1900 23.600000
4 Apr 1900 23.600000
5 May 1900 25.100000
6
2006 Feb 16
2
Postgresql array converts to string????
Hi
We are using postgresql with rails, we find out that
when we read array from postresql (postgresql support
array type in table) the rails (or postgresql_adapter)
converts the arrays into Strings, example: we have a
data type array in a table which has two cells:
[cell1,cell2], rails will convert them into string
like this {cell1,cell2}. So after received the result
from a SQL request we have
2008 Oct 14
1
A question about Heatmap for data with just 2 columns
Hi, I have a question about heatmap. I have a data with row as microRNA and
two columns are two cell expression values for these microRNA. So, like:
cell1 cell2
miRNA1 1.5 3.4
miRNA2 1.3 2.4
...................
miRNA50 5 2.1
miRNA51 7.3 0.5
I want to see some miRNA are high in cell1 and low in cell2 but others are
low in cell1 and high in cell2. I
2003 Oct 15
2
Example of cell means model
This is an example from chapter 11 of the 6th edition of Devore's
engineering statistics text. It happens to be a balanced data set in
two factors but the calculations will also work for unbalanced data.
I create a factor called 'cell' from the text representation of the
Variety level and the Density level using '/' as the separator
character. The coefficients for the linear
2008 Sep 04
2
using complete.cases() with nested factors
Hello,
This maybe a newbie question. I have a dataframe that looks like the sample
at the bottom of the email. I have monthly precipitation data from several
sites over several years. For each site, I need to extract years that have
a complete series of 12 monthly precipitation values, while excluding that
year for sites with incomplete data. I can't figure out how to do this
gracefully
2013 Apr 08
2
How can I extract part of the data in a panel dataset?
Taking the Grunfeld data, which is built-in in R, for example,
(1)How can I construct a dataset (or dataframe) that consists of the data
of all firms in 1951?
(2)How can I calculate the average capital in each form over the period
1951-1954?
What I can imagine is to categorize the data by firm, and then select the
data between 1951 and 1954 for each firm, but how can I do it?
Thanks,
Miao
2013 Mar 13
2
merge datas
Hello all!
I have a problem with R. I try to merge data like this:
structure(c(2.1785, 1.868, 2.1855, 2.5175, 2.025, 2.435, 1.809,
1.628, 1.327, 1.3485, 1.4335, 2.052, 2.2465, 2.151, 1.7945, 1.79,
1.6055, 1.616, 1.633, 1.665, 2.002, 2.152, 1.736, 1.7985, 1.9155,
1.7135, 1.548, 1.568, 1.713, 2.079, 1.875, 2.12, 2.072, 1.906,
1.4645, 1.3025, 1.407, 1.5445, 1.437, 1.463, 1.5235, 1.609, 1.738,
1.478,
2013 Mar 12
5
extract values
Hello all!
I have a problem to extract values greater that for example 1820.
I try this code: x[x[,1]>1820,]->x1
Please help me!
Thank you!
The data structure is:
structure(c(2.576, 1.728, 3.434, 2.187, 1.928, 1.886, 1.2425,
1.23, 1.075, 1.1785, 1.186, 1.165, 1.732, 1.517, 1.4095, 1.074,
1.618, 1.677, 1.845, 1.594, 1.6655, 1.1605, 1.425, 1.099, 1.007,
1.1795, 1.3855, 1.4065, 1.138, 1.514,
2013 Apr 07
2
group data in classes
Hello all!
I have a problem to group my data (years) in 10 years classes. For example
for year
year decade
1598 1590-1600
1599 1590-1600
1600 1590-1600
1601 1600-1610
---
my is like this>
[1] 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611
1612
[16] 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626
1627
[31] 1628 1629 1630 1631 1632 1633
2012 Mar 14
1
list factoring
Hi Guys, this is actually a thread of emails, but for some reason, even
though i am a member, it's withholding my email so i said i would try it
this route instead!...
I appreciate the reading Thank you. If i have:
matrix:
> var1 var2 var3
> cell1 x x x
> cell2 x x x
> cell3 x x x
>
> cell4
>
> .
> .
2016 Sep 15
0
Time zone issues when compiling R
I've been trying to build R 3.3.1 inside of a Nix environment on a
Ubuntu 16.04 machine. It builds, but then it fails a regression test
related to time zones, and I hope that someone could help me debug the
problem.
The failing test is in tests/reg-tests-rc.R
(https://github.com/wch/r-source/blob/c3fe9cd4/tests/reg-tests-1c.R#L1577-L1587):
## format.POSIXlt() of Jan.1 if 1941 or '42 is
2013 Mar 29
1
problem with data
Hello all!
I have a problem with my data in R. When I want to plot the following data,
I have a problem with y scale. The maximum value is cc. 10 degrees and in R
is about 100.
I use this code:
fasy<-read.table("gridd1.txt",sep="\t",dec=",",header=T,row.names=1)
# here are the years:
x <- as.numeric(rownames(fasy))
# extract a series that you want to plot:
y
2010 Jan 11
3
interpolation
Dear R-users,
I have a complex line by xy-values (ordered by z).
And I would like to get interpolated y-values on the positions of x = 0:600.
How do I get the correct points?
x=c(790,790,790,790,790,786,783,778,778,766,763,761,761,761,715,628,521,350,160,134,134,129,108,101,93,111,161,249,288,243,139,45,7)
2012 Nov 20
2
[PATCH][RFC] OpenUPS driver
Hi all,
I attached a driver for MiniBox openUPS device (
http://www.mini-box.com/OpenUPS) and a dump of the hid usages.
I had the possibility to make a few adjustments to the device firmware for
HID usages, and although I haven't managed to produce a good structure
many issues from previous firmware were at least fixed and new information
added.
ATM the driver only shows pertaining
2010 Jul 30
3
simple table/matrix problem
Hi
Given three vectors
x <- c(fish=3, dogs=5, bats=2)
y <- c(dogs=1, hogs=3)
z <- c(bats=3, dogs=5)
How do I create a multi-way table like the following?
> out
x y z
bats 2 0 3
dogs 5 1 5
fish 3 0 0
hogs 0 3 0
('out' is a matrix).
See how the first line shows 'x' has 2 bats, 'y' has zero bats, and 'z'
has 3 bats
and so on for each
2013 Feb 15
3
datos climáticos cambio de formato
Hola!!
tengo un data.frame donde cada fila corresponde a un año y cada columna a
un mes (De enero a diciembre)
> head(valT)
V2 V3 V4 V5 V6 V7 V8 V9 V10 V11 V12 V13
1941 18.0 16.3 15.2 10.1 8.1 8.3 8.8 9.2 7.9 12.2 11.9 14.6
1942 17.2 15.9 13.6 11.6 8.7 6.2 6.4 7.2 9.7 12.0 14.1 16.7
1943 17.6 17.3 13.5 12.5 10.5 7.0 8.2 7.9 -999.9 -999.9
2013 Apr 01
0
ggplot2 label problem
I have a problem to plot label (Year) only for significant values (in this
case spoz and sneg).
I use this code, but don't work with labels.
library(ggplot2)
ggplot(data1, aes(x = Year, y = value,fill=type,width=1))+
geom_bar(stat="identity",position="identity")+
scale_y_continuous(breaks = round(seq(-100, 100, by = 10),10))+
theme_bw()
Thank you!
the data used is:
2016 Jun 02
1
[PATCH -next 2/2] virtio_net: Read the advised MTU
Hi,
[auto build test ERROR on next-20160602]
url: https://github.com/0day-ci/linux/commits/Aaron-Conole/virtio-net-Advised-MTU-feature/20160603-000714
config: i386-allmodconfig (attached as .config)
compiler: gcc-6 (Debian 6.1.1-1) 6.1.1 20160430
reproduce:
# save the attached .config to linux build tree
make ARCH=i386
Note: the