Displaying 20 results from an estimated 500 matches similar to: "Better way of Grouping?"
2012 Aug 11
1
using eval to handle column names in function calling scatterplot graph function
I am running R version 2.15.1 in Windows XP
I am having problems with a function I'm trying to create to:
1. subset a data.frame based on function arguments (colname & parmname)
2. rename the PARMVALUE column in the data.frame based on function
argument (xvar)
3. generate charts
plotvar <- function(parentdf,colname, parmname,xvar,yvar ){
subdf <-
2006 Feb 22
1
unused factor levels in reshape
When reshaping a dataframe in which there are unused factor levels in the id variable, I get the following error:
Error in if (!all(really.constant)) warning(gettextf("some constant variables (%s) are really varying", :
missing value where TRUE/FALSE needed
For example,
> df <- data.frame(i = factor(rep(1:5, each = 2)), t = factor(rep(1:2, 5)), x = rep(rbinom(5, 1,
2008 Jan 11
3
filtering data frame based on two columns
Hi,
I have a data frame df with column names a,b and c.
Now I want to get a subset of df that satified the condition a == 1 and b
== 2, how do I specify this.
For one condition like a == 1 I can use subdf = df[,df$a==1] to get the
right answer, but
subdf = df[,df$a==1 && df$b ==2] does not return the right answer.
Some quick tips please.
2012 May 02
0
PLS validation value
Greetings R users,
My interest in the Q2cum score comes my endeavor to replicate SIMCAP PLS-DA
analysis in R. I use the exact same dataset. After doing the analysis in
R, I can get the exact same R2Ycum. However, the Q2cum is significantly
off. Adding the Q2cum of the 1st and 2nd component comes close but that
seems unconvincing and I don't understand why the 3rd component Q2cum would
be
2012 May 10
0
PLS Q2 value?
Greetings R users,
My interest in the Q2cum score comes my endeavor to replicate SIMCAP
PLS-DA analysis in R.? I use the exact same dataset.? After doing the
analysis in R, I can get the exact same R2Ycum.? However, the Q2cum is
significantly off.? Adding the Q2cum of the 1st and 2nd component
comes close but that seems unconvincing and I don't understand why the
3rd component Q2cum would be
2011 Sep 21
3
Reading data in lisp format
Hi,
I am trying to read the "credit.lisp" file of the Japanese credit database in UCI repository, but it is in lisp format which I do not know how to read. I have not found how to do that in the foreign library
http://archive.ics.uci.edu/ml/datasets/Japanese+Credit+Screening <http://archive.ics.uci.edu/ml/datasets/Japanese+Credit+Screening>
Could anyone help me?
Best
2008 May 18
1
plot a function with a vector as argument
I tried to define a function using another function I defined before, and the
previous function has a vector as an argument, when I tried to get the graph
of the new function, there was something going wrong. Here is a simple
example to explain how it happend:
fr1 <- function(x,y){
x^2+x*y+1
}
fr2 <- function(x){
fr1(x,3)
}
plot(fr2)
In this case, it worked just fine. But when I
2005 Sep 21
2
Mixing SCSI devices on a single i/f
I have an external HP SureStore DLT VS80 with a SCSI LVD 68 pin
interface and an external HP SureStore DAT24 with a SCSI Centronics
50 pin Narrow SE interface. The cable for the DAT has a Centronics
connector at one end and a 68 Pin Wide to Narrow terminated
connector at the other. The cable for the DLT has a LVD/SE 68 pin
connector at both ends. I have terminator blocks for both devices.
2006 Mar 13
2
S-Plus Essentials April 24th-27th 2006
S-PLUS ESSENTIALS
24-27th April 2006
Venue : Insightful UK Office, Network House, Basing View, Basingstoke, Hants
RG21 4HG
We are pleased to be taking registrations for the next scheduled S-PLUS
Essentials course being held in Basingstoke 24-27th April 2006. If you are
unfamiliar with S-PLUS or have been meaning to upgrade your S-PLUS skills,
this is the course for you. This course will be
2015 May 13
4
example fails during R CMD CHECK but works interactively?
Thank you Dan but it isn't my tests that are failing (all of them pass
without problem) but one of the examples from the inst/examples directory.
I did try, however, to start R with the environmental variables as you
suggest but it had no effect on my tests.
Charles
On Wed, May 13, 2015 at 1:51 PM, Dan Tenenbaum <dtenenba at fredhutch.org>
wrote:
>
>
> ----- Original Message
2013 Mar 02
2
caret pls model statistics
Greetings,
I have been exploring the use of the caret package to conduct some plsda
modeling. Previously, I have come across methods that result in a R2 and
Q2 for the model. Using the 'iris' data set, I wanted to see if I could
accomplish this with the caret package. I use the following code:
library(caret)
data(iris)
#needed to convert to numeric in order to do regression
#I
2013 Aug 26
2
Citing Package Contributing Authors
Greetings,
I am familiar with the function cite('packageName') which provides the
output generated from the DESCRIPTION file. In most cases this is
sufficient but I was wondering if there are contributing authors (in
addition to the primary) also listed on the CRAN page. Is there a proper
way to account for them or are they generally not listed?
Regards,
--
Charles Determan
2020 Apr 28
1
[EXTERNAL] nut-scanner, SNMPv3, APC UPS not chatting
On 4/28/20 1:58 PM, David Zomaya wrote:
> snmpwalk -l authpriv -v 3 -u user -a MD5 -x DES -A authpassphrase -X
> privpassphrase
Evidently, even with argument identifiers order matters. That worked
just fine and dandy.
Now I guess I need to play with the order of the nut-scanner arguments
to see if I get a similar result.
thanks,
nomad
2014 Apr 11
5
Old HP Xeon server blade with only SCSI HDD ports & CentOS
Hi there.
I got myself a pair of old Intel Xeon blades, which I plan to
repurpose with CentOS.
The model is : HP bl20p-g3 server blade
Manual
http://h18004.www1.hp.com/products/quickspecs/12322_ca/12322_ca.pdf
Now, the main problem with this hardware is that LVD UW SCSI HDDs are
hard to find and hella expensive if you find em (and of reduced
capacity).
Any of you know:
1. If there's any
2008 Aug 01
1
Comparing origination from CLI and from AMI
Hi,
Using FOP, I've met a situation which makes me ask this simple question :
Are both A and B commands bellow equivalent ?
A. CLI:
originate SIP/9122 application dial Local/9123 at local
B. AMI/FOP:
192.168.64.5 -> Action: Originate
192.168.64.5 -> Channel: SIP/9122
192.168.64.5 -> Async: True
192.168.64.5 -> Callerid: 9122 Guest2 <9122>
192.168.64.5 -> Exten: 9123
2008 Apr 05
2
How to improve the "OPTIM" results
Dear R users,
I used to "OPTIM" to minimize the obj. function below. Even though I used
the true parameter values as initial values, the results are not very good.
How could I improve my results? Any suggestion will be greatly appreciated.
Regards,
Kathryn Lord
#------------------------------------------------------------------------------------------
x = c(0.35938587,
2008 Apr 05
2
How to improve the "OPTIM" results
Dear R users,
I used to "OPTIM" to minimize the obj. function below. Even though I used
the true parameter values as initial values, the results are not very good.
How could I improve my results? Any suggestion will be greatly appreciated.
Regards,
Kathryn Lord
#------------------------------------------------------------------------------------------
x = c(0.35938587,
2012 May 25
3
count number of groups
Hello,
Simple question that I am stuck on and can't seem to find an answer in the
help files currently. I have a list which contains repeated ID's. I would
like to have R count the number of ID's. For example:
ID=c(1,1,1,1,2,2,2,2,3,3,3,3)
as.data.frame(ID)
Clearly, there are 3 groups. How would I have R give me the summary:
ID
3
Many thanks,
Charles
[[alternative HTML
2015 Jun 30
4
Why doesn't R have a float data type?
This is strictly a curiosity question. I am aware the R doesn't possess a
float data type. I also don't mean to request that such functionality be
implemented as I'm sure it would require a large amount of work with
potential back compatibility conflicts. But I wanted to know why R has
never had a float data type available?
Regards,
Charles
[[alternative HTML version deleted]]
2011 Jun 07
1
extract data features from subsets
I have a large dataset similar to this:
ID time result
A 1 5
A 2 2
A 3 1
A 4 1
A 5 1
A 6 2
A 7 3
A 8 4
B 1 3
B 2 2
B 3 4
B 4 6
B 5 8
I need to extract a number of features for each individual in it (identified by "ID"). These are:
* The lowest result (the nadir)
* The time of the nadir - but if the nadir level is present at >1 time point, I need the minimum and maximum time of nadir