Displaying 14 results from an estimated 14 matches for "__posting".
2012 Jul 14
3
Can't understand syntax
OK, I need help!!
I've been searching, but I don't understand the logic of some this
dataframe addressing syntax.
What is this type of code called?
test [["v3"]] [is.na(test[["v2"]])] <-10 #choose column v3 where column v2
is == 4 and replace with 10
and where is it documented?
The code below works for what I want to do (find the non-missing value in a
row),
2012 Jul 07
11
Splitting a character vector.
I am lousy at simple regex and I have not found a solution to a simple problem.
I have a vector with some character values that I want to split.
Sample data
dd1 <- c( "XXY (mat harry)","XXY (jim bob)", "CAMP (joe blow)", "ALP (max jack)")
Desired result
dd2 <- data.frame( xx = c("XXY", "XXY", "CAMP",
2013 Jul 14
4
diallel analysis
sir i could not find the plant breeding libraray in Rgui3.0.0
[[alternative HTML version deleted]]
2012 Jul 16
4
Error in as.xts
Hi
I got the following error using as.xts
Error in xts(x, order.by = order.by, frequency = frequency, ...) :
NROW(x) must match length(order.by)
Here is how the data looks like
> d1 <- read.csv(file.path(dataDir,"AppendixA-FishCountsTable-2009.csv"),
as.is=T)
> d1[1:3,]
dive_id date time species count size site depth level
TRANSECT VIS_M
1 62 10/12/2009
2009 Mar 01
2
Formatted text output
How does one write formatted, say "C style", output to a text file. I want something like "y=mx+b" for my linear regressions but with m and b derived from the fit objects. Also, how does one go about extracting just the slope or intercept from such an object. - Greg
[[alternative HTML version deleted]]
2007 Apr 11
2
Looping through series of names
Hi
I am very new to R and have not able to find the answer to my question
in the manual or any other post. I have a dataset that has various
different sites names with data relating to each site. The data is in
one dataset. I want to loop through the different site names and
perform my test on each site. The sites are named not numbers for
example "YYC". How do I do this. I hope I
2013 May 30
1
wilcox_test function in coin package
Dear All,
I have two simple data samples (no groups or factors, etc.) and would just
like to compute the two-sample Wilcoxon Rank Sum test using the wilcox_test
function contained in the coin package, which is reportedly better than the
regular wilcox.test function because it performs some adjustment for ties.
Would anyone know how to craft a script to perform this task? Much
appreciated.
Janh
2013 Jun 23
1
Scaling Statistical
Short question: Is it possible to use statistical tests, like the Augmented
Dickey-Fuller test, in functions with for-loops? If not, are there any
alternative ways to scale measures?
Detailed explanation: I am working with time-series, and I want to flag
curves that are not stationary and which display pulses, trends, or level
shifts.
>df
DATE ID VALUE2012-03-06 1
2012 Jul 18
4
contour
Hello Everyone
I have the data long format and I want to draw the contour plot with it
x1 x2 x3
0 1 2
0 2 1
0 3 5
1 1 4
1 2 2
1 3 3
when I am using contour(x1,x2,x3,col=heat.colors) or fill.contour
its giving me an error that increasing x and y expected
So please tell me what is the right function to draw contour when the data
is not ordered and you cant order
2012 Jul 08
3
Help in Optimization of a function
guRus!
I have a function f = exp(x^2-y+(1/z))
Also, x can take values from 1 to 37, y from 2 to 20 and Z from -13 to 51.
How can I find the maximum of f using any of the optimization functions
please?
Is there a way to store the possible values of x, y and Z in a single
variable like in a List or in a multi-dimensional array?
Thanks for your help
Raghu
[[alternative HTML version deleted]]
2012 Oct 26
3
Updating R 2.15.0 to 2.15.2
Dear R users,
I hope you all are doing great. Is there a way to automatically upgrade my R
2.15.0 to the new R 2.15.2 release instead of having to reinstall the new
release?
Any information regarding this would be greatly appreciated.
Best regards,
Paul
--
View this message in context: http://r.789695.n4.nabble.com/Updating-R-2-15-0-to-2-15-2-tp4647542.html
Sent from the R help mailing
2013 Nov 15
3
modify functions in "stats", but .Call(C_BinDist, ...) couldn't load C function
Hi all,
I am trying to write a new function based on an existing function in
"stats".
This function requires to call a c program "C_BinDist". The new function
couldn't work without load this c script.
How can I find this "C_BinDist" function and load it to make my new
function work through?
Thanks,
Dan
[[alternative HTML version deleted]]
2015 Mar 03
2
[R] Why does R replace all row values with NAs
On 3/3/15 1:26 PM, Herv? Pag?s wrote:
>
>
> On 03/03/2015 02:28 AM, Martin Maechler wrote:
>> Diverted from R-help :
>> .... as it gets into musing about new R language "primitives"
>>
>>>>>>> William Dunlap <wdunlap at tibco.com>
>>>>>>> on Fri, 27 Feb 2015 08:04:36 -0800 writes:
>>
>> >
2012 Aug 22
3
Question concerning anova()
Hi
I am comparing four different linear mixed effect models, derived from updating the original one. To
compare these, I want to use anova(). I therefore do the following (not reproducible - just to
illustration purpose!):
dat <- loadSPECIES(SPECIES)
subs <- expression(dead==FALSE & recTreat==FALSE)
feff <- noBefore~pHarv*year # fixed effect in the model
reff <-