Displaying 20 results from an estimated 3000 matches similar to: "conditional replacement of character strings in vectors"
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
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
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
2006 Jul 18
2
how can I delete rows?
Hello, I am very new in R so I am so sorry for this question.
I have the Barro-Lee data set which contains 98 countries and I want to run the regressions only for the Latin America countries, so what do you recomend? How can I delete all the other countries or how can I select the countries of Lat. Am. thank you
this is the list of countries
SHCODE COUNTRY NAME WBCTRY
2009 Feb 24
5
[LLVMdev] llvm-gcc (pre-release and svn sources) fails to compile on Solaris10/SPARC
I am new to LLVM, and I'm trying to compile llvm and llvm-gcc from
subversion on a Solaris10/SPARC machine. I have already tried building
llvm-2.4 on this machine, but it failed.
I then tried the subversion sources (rev. # 65253 fro llvm and
rev#65263 for llvm-gcc) and llvm at least builds correctly ( I however
have not tried testing it!). I can execute binaries located in
2011 May 16
2
conditional rowsums in sapply
Hi all
I have a data frame with duplicate columns and i want to remove duplicates
by adding rows in each group of duplicates, but have lots of NA's.
Data:
dfrm <- data.frame(a = 1:4, b= 1:4, cc= 1:4, dd=1:10, ee=1:4)
names(dfrm) <- c("a", "a", "b", "b", "b")
dfrm[3,2:3]<-NA
dfrm
a a b b b
1 1 1 1 1 1
2 2 2 2 2 2
3
2009 Nov 05
4
collumn error when exporting to Excel
Dear all,
I am attempting to export my results (data.frame) created with the help of a number of you to Excel.
In the procedure my column structure is however lost and all results are placed together into the first Excel column.
I have tried: write(), write.table(), write.matrix(), export() and have the same results. I Have checked the import/export FAQ and did a Google search to no avail.
Any
2012 Mar 24
1
Append to file in loop
My files are on disk and they are regular text files named
file_1 file_2 file_3 file_4 and file_5 with extension .saam
The separator is sep='' (ie, white space)
I want to append 'XFile' at the end of those files. XFile is also on disk.
file.append("file_1.saam", "XFile.saam"); file.append("file_2.saam",
"XFile.saam")...
works but it
2010 Mar 16
2
Conditional variable assignment
Hi everyone,
Once again I am stuck with a problem I can't seem to figure out. I suppose this learning curve levels off eventually, lol. I am learning on my own with absolutely no background in programming, so if I seem to request help a lot it's not because I am seeking others to do the work for me. I need to assign one of two arrival times to the 'ARRIVE' variable of my
2004 Aug 06
3
Q: Is it possible?
wow, Enrico ... it's a great help ;-)
I comment:
----- Original Message -----
From: "Enrico Minack" <enrico.minack@informatik.tu-chemnitz.de>
To: <icecast@xiph.org>
Sent: Wednesday, February 11, 2004 8:00 PM
Subject: Re: [icecast] Q: Is it possible?
<p>> Hi Raúl,
>
> interesting project ;-) So this is what I would recommend. For a number of
> remote
2004 Aug 06
0
Q: Is it possible?
Hi Raul,
Here is how I would set it up to answer your scenarios:
-One Icecast server in Spain.
-One source in Spain
-One source in Honduras
-One source in Guatemala (for example)
...
I would reserve a mountpoint for each one of these sources:
-Spain = my_radio.mp3 (Your listeners will listen to this mountpoint ONLY)
-Honduras = Honduras.mp3
-Guatemala = Guatemala.mp3
...
Let's say you use
2013 Jul 03
2
UPS has no built-in monitor. [GishPuppy]
OS: Debian Wheezy
Nut: 2.6.4-2.3
Installation method: Synaptic
Device: CDP B-UPR505
Traces, debugs, etc.: Not available or irrelevant
Description:
Where I currently live (Honduras), buying a UPS with monitoring capability means spending at least twice as much as a "plain-Jane" model - usually even more than that. Thus, since I can't afford the ones with monitoring, all I have are
2023 Oct 14
2
Create new data frame with conditional sums
Well, here's one way to do it:
(dat is your example data frame)
Cutoff <- seq(0, .15, .01)
Pop <- with(dat, sapply(Cutoff, \(p)sum(Totpop[Pct >= p])))
I think there must be a more efficient way to do it with cumsum(), though.
Cheers,
Bert
On Sat, Oct 14, 2023 at 12:53?AM Jason Stout, M.D. <jason.stout at duke.edu> wrote:
>
> This seems like it should be simple but I
2010 Mar 10
1
Strange result in survey package: svyvar
Hi R users,
I'm using the survey package to calculate summary statistics for a large
health survey (the Demographic and Health Survey for Honduras, 2006), and
when I try to calculate the variances for several variables, I get negative
numbers. I thought it may be my data, so I ran the example on the help
page:
data(api)
## one-stage cluster sample
dclus1<-svydesign(id=~dnum, weights=~pw,
2023 Oct 13
1
Create new data frame with conditional sums
This seems like it should be simple but I can't get it to work properly. I'm starting with a data frame like this:
Tract Pct Totpop
1 0.05 4000
2 0.03 3500
3 0.01 4500
4 0.12 4100
5 0.21 3900
6 0.04 4250
7 0.07 5100
8 0.09
2012 Mar 28
2
Data extraction
Dear ReXperts,
I have the below text file output. I need to extract the T, QC, QO, QO-QC
and WT columns for
the data between T = 10 and T=150.
Any ideas?
Thanks in advance.
========================================================================================
1 D C ---CAT-- T THETA QC QO
QO-QC QC/QO WT FSD
8 1 0 1.0000E+01
2009 Feb 24
0
[LLVMdev] llvm-gcc (pre-release and svn sources) fails to compile on Solaris10/SPARC
On 2009-02-24 03:28, Kshitij Sudan wrote:
> I am new to LLVM, and I'm trying to compile llvm and llvm-gcc from
> subversion on a Solaris10/SPARC machine. I have already tried building
> llvm-2.4 on this machine, but it failed.
>
> I then tried the subversion sources (rev. # 65253 fro llvm and
> rev#65263 for llvm-gcc) and llvm at least builds correctly ( I however
> have
2004 Aug 06
5
Q: Is it possible?
Hola Mac (qué bien, un español ;-) )
> I would reserve a mountpoint for each one of these sources:
>-Spain = my_radio.mp3 (Your listeners will listen to this mountpoint ONLY)
>-Honduras = Honduras.mp3
>-Guatemala = Guatemala.mp3
Ok, it's seemed to my conversation with Eric. My Bc server will receive N sources, mix them and broadcast the final results, but I see some differences
2013 Jul 03
0
UPS has no built-in monitor. [GishPuppy]
Hi, Reference:
lists.vn1 at gishpuppy.com wrote:
> OS: Debian Wheezy
> Nut: 2.6.4-2.3
> Installation method: Synaptic
> Device: CDP B-UPR505
> Traces, debugs, etc.: Not available or irrelevant
>
> Description:
>
> Where I currently live (Honduras), buying a UPS with monitoring capability means spending at least twice as much as a "plain-Jane" model - usually
2001 Sep 14
1
extremly off topic I know but since it leaked into the list anyway....
On the Bombings
Noam Chomsky
The terrorist attacks were major atrocities. In scale they may
not reach the level of many others, for example,
Clinton's bombing of the Sudan with no credible pretext,
destroying half its pharmaceutical supplies and killing