Displaying 20 results from an estimated 500 matches similar to: "tips for looping over a category for beginner"
2011 Jan 19
1
Using subset to filter data table
I am having difficulty understanding how I would constrain a data set by
filtering out 'records' based on certain criteria.
Using SQL I could query using 'select * from my.data where LithClass in
('sand', 'clay')' or some such.
Using subset, there seem to be ghosts left behind (that is, all of the
LithClass *.Labels* remain after subset)
> dput(tcc)
2008 Feb 23
3
using subset() in data frame
R folks,
As an R novice, I struggle with the mystery of subsetting. Textbook and
online examples of this seem quite straightforward yet I cannot get my
mind around it. For practice, I'm using the code in MASS Ch. 6,
"whiteside data" to analyze a different data set with similar variables
and structure.
Here is my data frame:
###subset one of three cases for the variable
2011 May 06
1
replace NA
Hello all
I have a geology map that has three level, bellow
<-geology
lithology landscape landform
landform level is used as covariate (with codes=1,2,3,4,5) for training of neural network, but this level has missing data as NA.
I want to replace the missing data of landform level with 0 (zero). Finally, landform will have codes 0,1,2,3,4,5.
please help me
Thanks alot.
2010 Nov 07
0
multiple regression analysis
Hi all,
This is more a help on ideas that on actuall R code. Those of you which are geologist or work with boreholes woudl understand that i would like to achieve.
I'll tr to explain as good as I can...so here it goes..
I have around 1000 geomechanical (geological) borehole logs in a database. The logs contain staial info, lithology and some laboratory data. My initial goal is
2009 Apr 30
0
Categorical variable in a custom nonlin function with gnm
Hi all
I want to construct a generalised nonlinear model (binomial family) using gnm, of the form:
Response = a + b variable1 + c variable2 + d variable3 - d b variable4 - d c variable5,
with the parameters b, c, and d appearing more than once. Hence, I think I need to use a custom nonlin function with gnm.
One of my predictor variables is categorical, so I have created a dummy variable for
2011 Oct 21
1
Specifying Greek Character in Lattice Plot Label
For an axis label I want to include the Greek letter mu within the string.
I've not found the proper way of including that expression within the
string.
What I want is "Conductivity (uS/cm)" with the 'u' replaced by mu. When I
try "Conductivity (" expression(paste(mu)) "S/cm)" I get an error. If I
don't separate Conductivity and S/cm with
2012 Feb 16
1
how to get r-squared for a predefined curve or function with "other" data points
hello mailing list!
i still consider myself an R beginner, so please bear with me if my
questions seems strange.
i'm in the field of biology, and have done consecutive hydraulic
conductivity measurements in three parallels ("Sample"), resulting in three
sets of conductivity values ("PLC" for percent loss of conductivity,
relative to 100%) at multiple pressures
2005 Dec 15
2
Lattice graphics with combined plot types
The data is of two forms, ie one numeric and another ordinal ie 1.5 and
<.5. The X Value is a factor.
I'm trying to create a lattice conditioned plot with the following
characteristics:
1) The plot is conditioned using the form (Conductivity~Day|Valve)
2) The plot should use a barplot for the ordinal (<.5) and dots for the
numeric (1.5)
3) A line should be created specifying a
2017 Apr 12
3
"table(droplevels(aq)$Month)" in manual page of droplevels
The last line of the example in droplevels' manual page seems to be incorrect to me. I think it should read: "table(droplevels(aq$Month))". Amazingly (I don't understand) both variants seem to produce the same result (R 3.3.3):
---
> aq <- transform(airquality, Month = factor(Month, labels = month.abb[5:9]))
> aq <- subset(aq, Month != "Jul")
>
2017 Jun 26
2
Odd behaviour in within.list() when deleting 2+ variables
The behaviour of within() with list input changes if you delete 2 or more variables, compared to deleting one:
l <- list(x=1, y=2, z=3)
within(l,
{
rm(z)
})
#$x
#[1] 1
#
#$y
#[1] 2
within(l, {
rm(y)
rm(z)
})
#$x
#[1] 1
#
#$y
#NULL
#
#$z
#NULL
When 2 or more variables are deleted, the list entries are instead set to NULL. Is this intended?
2009 Sep 06
1
IVT SCD support status
Rainer, Arjen
I was wandering around the code, and found that few things are missing
around the IVT code:
- no manpage,
- no entry in driver.list
- no device{mfr,model,type} in the code.
I was about to submit a patch to address the above (ready to commit), but
wanted first to get an update on the status. looking at the last thread,
it's a bit unclear... I'm also interested an upsc
2017 Jun 26
2
Odd behaviour in within.list() when deleting 2+ variables
>>>>> peter dalgaard <pdalgd at gmail.com>
>>>>> on Mon, 26 Jun 2017 13:43:28 +0200 writes:
> This seems to be due to changes made by Martin Maechler in
> 2008. Presumably this fixed something, but it escapes my
> memory.
Yes: The change set (svn -c46441) also contains the following NEWS entry
BUG FIXES
o
2017 Apr 12
2
"table(droplevels(aq)$Month)" in manual page of droplevels
Hello,
Inline.
Em 12-04-2017 16:40, Henric Winell escreveu:
> (Let's keep the discussion on-list -- I've added back R-devel.)
>
> On 2017-04-12 16:39, Ulrich Windl wrote:
>
>>>>> Henric Winell <nilsson.henric at gmail.com> schrieb am 12.04.2017
>>>>> um 15:35 in
>> Nachricht <b66fe849-bb8d-f00d-87e5-553f866d57e0 at gmail.com>:
2011 Dec 29
2
[LLVMdev] DW_AT_location not getting generated for local variables
I figured out my previous problem with DIBuilder. However, now I can't seem
to get the compiler to emit location information for local variables.
Here's how my IR looks:
---
define i32 @"\01_main"() {
init:
%exception1 = alloca i8*
%0 = alloca i32
%"bar:Int32" = alloca i32
%1 = alloca i32
%2 = alloca i32*
br label %code
code:
2006 Feb 01
6
[XM-TEST][PATCH] hvm network test fixes
The following patch allows the network tests to pass with hvm support enabled.
More specifically:
02_network_local_ping_pos.py
REASON: ping loopback failed for size 65507. ping eth0 failed for size 65507.
(but all other size pings work)
05_network_dom0_ping_pos.py
REASON: Ping to dom0 failed for size 65507.
(but all other size pings work)
11_network_domU_ping_pos.py
passes 100% (even the large
2009 Jun 05
3
help with duplicates
I have a large dataset that contain duplicate records. How do I identify and remove duplicate records?
Chris Anderson
707.315.8486
www.sassydeals4u.com
____________________________________________________________
Free info for small business owners. Click here to find great products geared for your business.
2005 Jul 03
11
[PATCH] xm info
This patch makes "xm info" show information on xen version, compile
info, number of socket/core, etc...
In order to do that, it extends physinfo hypercall to return number of
socket, adds few functions to libxc and extends python wrapper
correspondingly.
Here is the output of new "xm info":
--
system : Linux
host : ubuntu
xen_release
2005 May 27
3
Soil texture triangle in R?
Dear R users,
has anybody made an attempt to create the soil texture triangle graph in
R? For an example see here:
http://www.teachingkate.org/images/soiltria.gif
I would like to get the lines in black and texture labels in gray to
allow for plotting my texture results on top.
Any examples or suggestions are very welcome!
Thanks in advance,
Sander.
--
2012 Jan 02
0
[LLVMdev] DW_AT_location not getting generated for local variables
I found the problem. The llvm.dbg.declare call must have a !dbg tag,
otherwise the location info is not generated. Changing the invocation
in my original example to "call void @llvm.dbg.declare(metadata !{i32*
%"bar:Int32"}, metadata !13), !dbg !16" causes MC to generate the
local location as expected.
-Joe
On Thu, Dec 29, 2011 at 12:41 PM, Joe Groff <arcata at
2009 Jun 23
5
Merging Irregular Time Series With NAs
Hi
I have two irregular time series, which are of different lengths and being
and end at different times. For the common subset of time that they both
span, they should have the same values, but the values may occur at
slightly different time intervals. I am trying to "line up" the identical
values and reconcile them. I have merged the two series into a zoo object
which looks