Displaying 20 results from an estimated 100 matches similar to: "remove a row from a dataframe, row names disappear"
2010 Feb 05
0
remove a row from a dataframe, row names disappear - solution
Thank you Sarah.I'm glad it was a quick fix:
On Fri, Feb 5, 2010 at 8:50 AM, Sarah Goslee <> wrote:
> You're not only removing a row of data, you are invoking the default
> behavior of subset, which is to collapse the subsetted result to the
> smallest possible type, which in this case is a vector. Vectors have
> no rows, and thus no row names.
>
> You need the
2010 Jan 31
3
combining data frames in a list - how do I add breaks?
I'm a week-old R user, and have become stuck trying to create usable CSV
outputs for post-processing. I am using the package Rioja, which provides
small datasets of results. I am running several analyses in a loop and
iteratively adding the results to a *list* ("combined"). Within each
iteration I use the following:
> combined[[i]] <- performance(fit)
With two iterations I
2010 Apr 17
1
Problems with labels and scaling in star diagrams
I have the following small dataset:
> stardata
NS HE EB CW RW PW
1 0 0.000 0.000 0.042 0.006 0
2 0 0.006 0.000 0.013 0.005 0
3 0 0.000 0.011 0.000 0.000 0
I have plotted the star diagrams as follows:
stars(stardata,
key.labels = dimnames(stardata)[[2]],
labels = NULL,
key.loc = NULL,
draw.segments=TRUE,
col.segments="gray",
lty="blank")
I am
2010 Mar 15
1
map2poly - map lat/long cannot be unconstrained?
Using the maptools function "map2poly" I have created a map/polylist object
- a map of the Great Lakes. My goal is to passively plot additional data on
this map. Unfortunately I am not able to change (distort) the relative scale
of the axes for the map, and so the sample points do not line up correctly
on the map.
In the code below, notice that I have set the same axis ranges on each
2010 Apr 01
3
Using a string as a variable name - revisited
I would like to revisit a problem that was discussed previously (see
quoted discussion below). I am trying to do the same thing, using a
string to indicate a column with the same name. I am making "foo" a
string taken from a list of names. It matches the row where "item" =
5, and picks the corresponding "taxon"
> foo <- list$taxon[match(5,list$item)]
Let's
2012 Sep 14
1
Adding annotations to qplot from a data frame
I have the following data frame:
> algaedata =
year DIV cellsperml
2001 BAC 72.808
2001 CHL 3.273
2002 BAC 14.002
2002 CYA 220.896
2002 UNI 464.699
2003 BAP 0
2003 BAC 1.782
2004 CYA 315.799
2005 UNI 222.532
2005 BAP 0.2
2005 CYA 163.627
2005 BAC 324.949
2006 CHL 1.636
2006 BAC 199.145
2007 CHL 19.635
2007 CYA 134.174
2007 BAC 485.405
2007 CHL 11.454
2007 CYA 104.721
...which makes a fine
2010 Apr 29
39
Best practice for full stystem backup - equivelent of ufsdump/ufsrestore
I''m looking for a way to backup my entire system, the rpool zfs pool to an external HDD so that it can be recovered in full if the internal HDD fails. Previously with Solaris 10 using UFS I would use ufsdump and ufsrestore, which worked so well, I was very confident with it. Now ZFS doesn''t have an exact replacement of this so I need to find a best practice to replace it.
2013 Sep 10
1
Bug#710650: Bug#718767: transition: ocaml 4.00.1
On 10/09/13 14:09, Thomas Goirand wrote:
> On 09/10/2013 03:17 PM, St?phane Glondu wrote:
>> Le 06/09/2013 10:14, Thomas Goirand a ?crit :
>>> I wrote it many time to many people. Please don't just read 1.6 as "new
>>> upstream release" for XCP. That's unfortunately not the way it works.
>>> Upstream version for Debian and the one they do for
2002 Sep 05
1
Looking for WinNT rsync binary
Hi All,
I am looking for the Rsync binary for NT as mentioned on the Mike McHenry
postings.
Unfortunatley the ftp mentioned in the article wont accept anonymous
login.
TIA, Euan Clark
-------------- next part --------------
HTML attachment scrubbed and removed
2003 Oct 31
3
print(), cat() and simple I/O in R
I am trying to produce rather mundane output of the form e.g.
pi, e = 3.14 2.718
The closest result I achieved so far with print() is:
> print (c(pi, exp(1)), digits = 3)
[1] 3.14 2.72
> print(c("pi, e =", pi, exp(1)), digits = 3)
[1] "pi, e =" "3.14159265358979" "2.71828182845905"
I understand that c() promotes floats to strings and
2013 Sep 10
0
Bug#710650: Bug#718767: transition: ocaml 4.00.1
On 09/10/2013 03:17 PM, St?phane Glondu wrote:
> Le 06/09/2013 10:14, Thomas Goirand a ?crit :
>> I wrote it many time to many people. Please don't just read 1.6 as "new
>> upstream release" for XCP. That's unfortunately not the way it works.
>> Upstream version for Debian and the one they do for CentOS are
>> different, and just using upstream 1.6
2013 Sep 10
3
Bug#710650: Bug#718767: transition: ocaml 4.00.1
Le 06/09/2013 10:14, Thomas Goirand a ?crit :
> I wrote it many time to many people. Please don't just read 1.6 as "new
> upstream release" for XCP. That's unfortunately not the way it works.
> Upstream version for Debian and the one they do for CentOS are
> different, and just using upstream 1.6 doesn't cut it. It needs to be
> ported to Debian, and that's
2017 Jul 31
0
[PATCH net] virtio_net: fix truesize for mergeable buffers
Seth Forshee noticed a performance degradation with some workloads.
This turns out to be due to packet drops. Euan Kemp noticed that this
is because we drop all packets where length exceeds the truesize, but
for some packets we add in extra memory without updating the truesize.
This in turn was kept around unchanged from ab7db91705e95 ("virtio-net:
auto-tune mergeable rx buffer size for
2017 Jul 31
0
[PATCH net] virtio_net: fix truesize for mergeable buffers
Seth Forshee noticed a performance degradation with some workloads.
This turns out to be due to packet drops. Euan Kemp noticed that this
is because we drop all packets where length exceeds the truesize, but
for some packets we add in extra memory without updating the truesize.
This in turn was kept around unchanged from ab7db91705e95 ("virtio-net:
auto-tune mergeable rx buffer size for
2011 Jun 28
4
how to print "<=" in plot title
Hi, how can I print "<=" (I mean the symbol of just one character) in the main
title of a plot?
for example:
plot(1:10, main=paste("x <=", x))
where variable x is some number generated on the fly.
Thanks
John
2003 May 01
0
factanal
# I have a question about how factanal is calculating the regression factor
# scores based on an oblique rotation (promax) of the factors.
#
# As is explained in the help file, regression factor scores are
# obtained as
#
# hat f = Lambda' Sigma^-1 x
#
# However, according to Harman's "Modern Factor Analysis" (e.g. second
# edition, pp. 351-352) the formula is
#
# hat f = Phi
2014 Feb 09
0
Bug#738322: RM: xen-api and friends -- ROM; non maintained upstream
Package: ftp.debian.org
Severity: normal
Hi,
Writting this message saddens me, but no choice...
Because upstream authors (eg: Citrix) have explained that they cannot
maintain the current version of XenAPI, or upgrade it to a newer version,
we have no choice but to remove completely XenAPI from both Unstable and
Testing. Quoting Euan Harris from Citrix (it's not needed for the FTP
masters
2006 May 24
2
data.frame
Dear all,
Does any one knows why should I get the following error message, when trying
to do a simple data.frame??
DataF<-data.frame(Subject,BiomR,Spp,Capas,Litter,Herbs,LitterD,MaxCanH,DDifS
p,DSSp,Slope, CanDens,NearestSp)
Erro em data.frame(Subject, BiomR, Spp, Capas, Litter, Herbs, LitterD, :
arguments imply differing number of rows: 202, 0
The data I am using
2006 May 02
2
Time series plot
I have some time series data like
01/02/1990 0.531 0.479
01/03/1990 0.510 0.522
01/06/1990 0.602 0.604
there is no weekends and holidays.
how do I graph them in a single plot that the x-axis is the dates and
the y-axis is the time series?
Thank you
Regards,
Jincai Jiang
(Office) 212-761-3984
--------------------------------------------------------
This is not an offer (or solicitation
2010 Aug 12
3
Regression Error: Otherwise good variable causes singularity. Why?
This command
cdmoutcome<- glm(log(value)~factor(year)
> +log(gdppcpppconst)+log(gdppcpppconstAII)
> +log(co2eemisspc)+log(co2eemisspcAII)
> +log(dist)
> +fdiboth
> +odapartnertohost
> +corrupt
> +log(infraindex)
> +litrate
> +africa
>