Displaying 20 results from an estimated 100 matches similar to: "Problem with ifelse statement"
2009 Jun 24
5
How to avoid ifelse statement converting factor to character
Hi R-helpers,
Please see the below R output.
The problem is that after running the ifelse statement, data$SOCIAL_STATUS
is converted from a factor to a character.
Is there some way I can avoid this conversion?
Thanks in advance, Mark Na
> str(data)
'data.frame': 2100 obs. of 11 variables:
$ DATE : Factor w/ 5 levels "4-Jun-09","7-May-09",..: 1 1 1 1 1
1999 Mar 02
1
Can't understand error message :-{
I'm sorry if this is a basic question, but I'm stumped. I'm just trying to plot
the residuals from a linear model against another variable in the data frame.
Here are the lines I'm trying to execute:
size <- read.table(file="/u67/abasl70/surveys/annenberg/mega/smschl.dat",
header=T)
sizef <- data.frame(size, row.names=size$unit)
attach(sizef)
mschmod <- lm
2009 Jun 16
3
How to subset my dataframe? (a bit tricky)
Hi R-helpers,
I would like to subset my dataframe, keeping only those rows which
satisfy the following conditions:
1) the string "dnv" is found in at least one column;
2) the value in the column previous to the one "dnv" is found in is not "0"
Here's what my data look like:
??? POND_ID 2009-05-07 2009-05-15 2009-05-21 2009-05-28 2009-06-04
4 ? ? ? 101 ? ? ?
2009 Jun 30
1
How to wrap my (working) code in a loop or function? (loop/function newbie alert)
Dear R-helpers,
I have split a dataframe into a list with five elements, with the following
code:
> datalist<-split(data,data$UNIT)
I would now like to run some code (below) on each element of the list to
extract rows from the list elements; then I would like to rbind the
extracted rows into a new dataframe containing all of the extracted rows
from all of the list elements.
I don't
2009 Oct 19
1
Markdown Support in Drupal6.14?
Why is Marksmarty no longersupported in Drupal 6.14?
AJG B?umel mailto:ajgB at st-maurices.n-lanark.sch.uk
---------------------------------------------------------------------------
This e-mail and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they are
addressed. If you have received this e-mail in error, please notify
2009 Oct 22
3
Order of Markdown and SmartyPants filters (was: Re: Markdown Support in Drupal6.14?)
2009/10/20 Lou Quillio <public at quillio.com>
> On Mon, Oct 19, 2009 at 3:20 PM, AJG Baeumel
> <ajgb at st-maurices.n-lanark.sch.uk> wrote:
> > Why is Marksmarty no longersupported in Drupal 6.14?
>
> It's been a while since I've worked with Drupal, but I remember that
> MarkSmarty was really just a hybrid convenience filter. It's better to
> apply
2013 Apr 05
2
transforming data prior to CCA
Hi everyone,
I?m a student and relatively new to R so apologies in advance if this
question seems stupid or obvious to you.
I have collected a dataset with about 60 species of diatoms (count data from
19 different sample sites) and environmental variables for each site
(salinity, pH, etc.). It?s all in the same dataset but distinct in R through
the functions below
diat <- diatom [, 1:60]
2012 Aug 20
7
relating data in two data frames
Hi,
My data.frame "A" has FID like this
FID
a
a
b
b
b
c
c
d
d
d
d
Now my second data.frame "B" has age value for a, b, c, d like
FID Age
a 5
b 7
c 9
d 3
How can search for the Age column in "B" and replace the values in "A" so that my new "A" looks like this
FID Age
a 5
a 5
b 7
b 7
b 7
2015 Dec 27
3
sieve-filter crashes
I tried to post earlier, but something goes wrong.
KJ
kjonca at o2.pl (Kamil Jo?ca) writes:
> I want to refilter my mails in inbox so I tried to use:
>
> sieve-filter -e -W -D -C -v ~/.dovecot.sieve INBOX
>
> on three messages I got:
>
> info: filtering: [Fri, 28 Dec 2012 15:40:33 -0500; 14399 bytes] `[SPAM] Keep Defective by Design fight...'.
> sieve-filter(kjonca):
2020 Aug 24
1
GnuTLS, modern Samba and RHEL Re: Samba rpms now available from CentOS Storage SIG
On Thu, 2020-08-20 at 20:04 +1200, Andrew Bartlett via samba wrote:
> On Mon, 2020-08-17 at 12:05 +0530, Anoop C S via samba wrote:
> > Hi all,
> >
> > This is to announce the availability of Samba(and CTDB) rpms from
> > Storage SIG[1] on CentOS 7 and 8. Visit Samba's CentOS wiki page[2]
> > for
> > more details on installation steps.
> >
>
2009 Apr 09
1
Problem including panoramino with google
Hi,
i cannot make panoramino work with my google map...
I tried
mapstraction.addOverlay(new GLayer("com.panoramio.all"));
and this
mapstraction.addOverlay("com.panoramio.all");
But all i can have is a 400 error response.
I also need wikipedia data, but i get the same error code.
Can someone help me ?
--
Pascal
2007 Mar 28
1
Problem with adding packages to default start-up list
After reading the help files (?Startup) and using
RSiteSearch("defaultPackages"), I have been trying to add several packages
to my default startup list using the following code:
local({
old<-getOption("defaultPackages")
options(defaultPackages=c(old,"lattice","RODBC")
})
Subsequently, when I query the default list using:
2007 Jul 06
5
Clustering nested data
Hi all,
I am interested in performing a cluster analysis on ecological data from
forests in Pennsylvania. I would like to develop definitions for forest
types (red maple forests, upland oak forests, etc.(AH AR in attached table))
based on measured attributes in each forest type. To do this, I would like
to 'draw clusters' around forest types based on information from various
tree
2020 Aug 17
4
Samba rpms now available from CentOS Storage SIG
Hi all,
This is to announce the availability of Samba(and CTDB) rpms from
Storage SIG[1] on CentOS 7 and 8. Visit Samba's CentOS wiki page[2] for
more details on installation steps.
[1] https://wiki.centos.org/SpecialInterestGroup/Storage
[2] https://wiki.centos.org/SpecialInterestGroup/Storage/Samba
Regards,
Anoop C S.
2009 Aug 28
1
Plotmath, sweave and lattice graphics interaction problem
Dear List,
I have hit this problem with using a plotmath expression in an axis
label on a lattice plot I'm including in a Sweave document. The actual
document is far too long and boring (unless you are interested in the
hydrochemistry of upland lakes) to include here, but the following
minimal example reproduces the problem; basically, the PDF produced by
Sweave has missing characters in the
2018 Jan 06
2
LLVM EH tables much larger than GCC's
Hi,
I'm investigating the size of Clang's generated binaries relative to GCC,
when targeting Android, and I've noticed that Clang's exception tables are
much larger -- the .ARM.extab section is about 2.5 times as large in two
examples.
I noticed a couple of differences between Clang and GCC:
1. *ULEB128 encoding.*
In the call site table, GCC encodes offsets using a ULEB128
2007 Mar 22
0
Racoon ERROR: Invalid CR type 0
SuSE10.2
Linux Kernel 2.6.18 Patched,
Whenever I try to establish a connection raccoon fails giving the
following error.
Raccoon config #################
remote 67.101.176.***
{
exchange_mode main,aggressive;
doi ipsec_doi;
situation identity_only;
my_identifier address;
send_cr off;
send_cert off;
lifetime time 2 min;
2007 Oct 05
0
Opening Scripts with long paths causes R 2.6.0 to crash
I am running R 2.6.0 on a PC running MS Windows 2000 Professional. After
upgrading to this new version of R, I have been having problems opening
scripts: opening certain scripts result in R crashing. After some
experimentation, I discovered that it is a problem with the number of
subdirectories in the path. For example, if the script is located in
c:\Documents and
2013 May 05
1
Vegan problem
Hi All,
I am trying to perform CCA and RDA several times to compare their
performances. To do that I put this two functions of vegan package inside a
for loop. Unfortunatly when I am trying to perform the anova(by=axis) to
test the individual axes the function don't recognize the species
data.frame. The same problem occurs whem I try to run forward selection.
The same problem occur when I try
2013 Apr 18
0
MANN
Dear all,
Is there a package in R that has implemented the MANN (Multiresponse
Artificial Neural Network) presented in (Olden, 2006 - Ecological
Applications)?
Best Wishes,
--
Prof. Gilson Correia de Carvalho, M.Sc.
----------------------------------------------------
Pesquisador Associado
Laboratório de Ecologia Bentônica - LEB
Instituto de Biologia - UFBA
Universidade Federal da Bahia - UFBA