Displaying 20 results from an estimated 100 matches similar to: "Help Coding error"
2025 Mar 29
1
Help Coding error
So either:
XX contains some non-finite numbers
Or
Something produced from it does.
Non finite means things like 1?0. R might show Inf or -Inf. But if there is
maths happening in the function it might be passing something to it the is
a 0 and so creating a Inf.
But if there is a test of is.finite you will get "false" to NA or 0/1 or
"0" (ie. Passing a character
2008 Feb 29
2
Trouble with the results of a dynamically generated find() method
Hi all,
So I have two tables:
- apps (short for applicants)
has_and_belongs_to_many :locations
- locations
has_and_belongs_to_many :apps
In my system, a user searches for applicants by the locations to which
they are associated, by using a dropdown menu that includes the names
of locations (and sends to the method that returns the results the id
of the selected location).
So, in the
2006 Oct 22
2
Key colour problem with lattice plot
Hi,
I seem to have a key colour problem with a lattice barchart. The colours on my
key rectangle don't match the colours on the barchart.
Here is my data frame:
"LandFill" "Ruminants"
"United States (USA)" 7777.21428 5528.16
"France" 200.527083 1299.87
"Australia" 185.878368 2448.17
"Russian Federation" 1752.8334 2024.29
2013 Sep 30
2
climstats
I have been trying to download the climstats package:
https://r-forge.r-project.org/R/?group_id=861
but it doesn't seem to run on R 3.0.2 or 3.0.1 and the zipfile is empty.
Does anyone know the status of this package or where I can download it.
Thanks
******************
Jenny Williams
Spatial Information Scientist, GIS Unit
Herbarium, Library, Art & Archives Directorate
Royal Botanic
2009 Dec 06
1
hi there!
hi there!
how u doin?...hope fine.
look, i've a difficulty in simulation especially for the bayesian analysis
using R. Using the famous Markov Chain Monte Carlo (MCMC) method,
Methropolis hasting algorithm i want to simuate different distrbution like:
1/ Weibull-exponential
2/Gamma-Gamma
3/Poisson-Gamma
4/Normal-Normal
5/Normal-Gamma
6/ Negative binomial - Jeffrey's prior
Especially, i
2013 Feb 22
1
Climate Spatial plot
Dear Sir,
I am beginner in using R. I am working on climate and like to plot spatial
but I can't able to go ahead. I know it is too simply but not for me. Here
is attached the data and my sample script. I am waiting R-users to solve my
problem. Your help is valuable for me. Thank you.
--
---------------------------------------------------
*Bedassa Regassa Cheneka*
*Adama Science and
1999 Nov 18
1
html help for packages with MS Windows
In the past few days, I have been helping people from Ethiopia and
from Kenya to get started with R. We have discovered that properly
installed libraries (survival5 or mine) work and the online (with ?)
help is available but they do not appear in the html help (under
packages) with MS Windows. Only the libraries supplied with R appear
there. This is not true with netscape under (Linux) X-Windows
2006 Oct 23
1
unexpected read.csv behavior
Example data in a recent post was:
LandFill Ruminants
United States (USA) 7777.214280 5528.16
France 200.527083 1299.87
Australia 185.878368 2448.17
Russian Federation 1752.833400 2024.29
Argentina 283.987320 2567.02
Brazil 1048.422480 8839.61
Colombia 265.125000 1307.61
Mexico
2019 Mar 06
2
Crear una variable tipo factor a partir de un vector de caracteres
Hola estimados miembros de la comunidad de R
Tengo un conjunto de datos, donde tengo observaciones por países y por año.
Una de las variables del dataframe es el nombre del país. Queremos dividir
los países, que son países africanos de acuerdo a 5 regiones: norte de
africa, africa del este, sur africa, etc
Yo lo que he hecho ha sido crear vectores con el nombre de cada uno de los
países en cada
2009 Mar 18
1
lm function (PR#13608)
Full_Name: Michael Aaron Karsh
Version: 2.8.0
OS: Windows XP
Submission from: (NULL) (75.61.109.172)
I tried using the lm function to regress the third column listed below on the
second column listed below. It gave me an error message. My code is below.
> HDISWLSdata=read.table("RHDISWLS.txt")
> HDISWLSdata
V1 V2 V3
1 DENMARK
2019 Mar 06
3
Crear una variable tipo factor a partir de un vector de caracteres
Pero eso es para crear variables binarias tipo 0-1 si el pais pertence a un
determinado grupo. Lo que quiero es crear una variable de tipo factor con
esos 5 niveles, sabiendo que tengo en el dataframe una variable llamada
Country, con el nombre del pais.
Gracias
On Wed, 6 Mar 2019 at 15:27, Xavier-Andoni Tibau Alberdi <
xavitibau en gmail.com> wrote:
> Buenas,
>
> Para ello yo uso
2019 Mar 06
2
Crear una variable tipo factor a partir de un vector de caracteres
Si lo que quiero es crear una variable llamada por ejemplo region (del tipo
factor) con esos 5 valores
On Wed, 6 Mar 2019 at 15:41, Xavier-Andoni Tibau Alberdi <
xavitibau en gmail.com> wrote:
> No, No. Fíjate en el Ifelse(condición, valor si positivo, valor si
> negativo).
>
> Si, x %in% ca entonces el valor devuelto es "ca", un factor. En caso
> negativo, vamos
2012 Jun 24
2
Defining multiple variables in a loop
Good day,
For lack of a better solution (or perhaps I am ignorant to something
more elegant), I have been bootstrapping panel data by hand so to
speak and I would like to know if there is a way to define multiple
variables in a loop using the loop variable. I found a post (here:
https://stat.ethz.ch/pipermail/r-help/2002-October/026305.html ) that
discussed naming multiple variables but it
2011 Sep 12
2
creating a new column with values from another
I have 2 columns for weight. There are NAs in each column but not for the
same observation. Some observations have values for both. I would want to
prioritize the WT2 values so I would like to do the following:
>From this:
ID WT1 WT2
1 134 NA
2 145 155
1 NA 175
3 NA 187
To this:
ID WT1 WT2 WT
1 NA
2002 Feb 12
10
Winbind - Why won't you authenticate???
Well, I managed to get Samba 2.2.3 up and running on our Solaris 8 machine.
I installed with the winbind option and everything went though just find.
I was able to join the NT domain and now I can do a wbinfo -u "and get a
domain user list as well as a "wbinfo -g and get a group list. For some
reason though, the authentication isn't working.
I tried to "wbinfo -a" and
2002 Feb 12
2
linux groups & NT global groups with winbindd
I posed this question earlier but it was with another question and I think
it got lost.
I have winbindd up and running and working great.
If I add NT domain users to an NT domain global group, add that group to a
local linux group in /etc/group, and then assign that local linux group
ownership of an object (file or dir) should this work? In other words, can
you still use local linux groups as
2002 Feb 14
0
Sharing to domain users?
Couple questions to those who have the winbindd service up and running...
I *think* winbindd is working now... I can browse the samba server through
windows explorer and open directories. There is a little delay when I first
connect... I assume this is winbind passing the authentication request to my
NT servers and awaiting a response.
The problem now is that I can't seem to write to the
2012 Apr 22
10
Assignment problems
The text below is a part of, some work I have to do, which is due in 2 days
and I am strung up with a lot of other stuff, so I was hoping someone would
take 5 mins and help me ??
Here is a part of my data.frame:
year country1 country2 contig comlang pop1 gdp1
pop2 gdp2 rta dist avgflow
1 1992 AUS AUT 0 0 17.4950008 321708.281
2010 Jul 20
2
loop through files and create object
Hi R users,
I am a newbie and therefore the naive question. Sorry but I was unable
to find an answer online. I would like to read 47 data sets
(country1.raw, country2.raw, ... country47.raw) and save into a matrix
each time (data1, data2, ....data47).
for (i in 1:47){
data(?) <- read.csv(file.path("country", i, ".raw", fsep = ""), header = TRUE)
}
The read.cvs
2012 Apr 17
6
How to add specific column to data.set?
Hi
I have a data.set with 7 lists, with over 7000 observations in each list. to
of the lists contain country names.
like:
aus dnk
fra aus
usa aut
itl usa
.
.
.
etc.
My dilemma is that I want to add an extra column/list to my data.set. If the
countries are both european it should be assigned 1 or true AND if one or
both the countries are non-european it should be assigned 0 or false.