Displaying 20 results from an estimated 2000 matches similar to: "Adding site id to xyplot"
2005 Aug 15
3
How to repeat code snippet for several variables in a data frame?
Dear all,
I have a data frame containing the results of an experiment. Like this:
a<-seq(1,4,by=1)
b<-seq(1,2,by=1)
test<-expand.grid(b,a,a)
colnames(test)<-c("replicates","bins", "groups")
test$abc <- rnorm(32)
test$def <- rnorm(32)
test$ghi <- rnorm(32)
test
The following code snippet aggregates the data for one variable and then
draws a
2005 Feb 10
1
xyplot() question
Dear R Users,
I have an xyplot() where different plotting symbols are used for
subgroups (originally used within S-Plus, but hopefully it?s also
applicable to R users).
How can I fit separate regression lines for every subgroup? So far, I
can only plot the overall fitted line.
The code looks like this:
trellis.device()
sps<-trellis.par.get("superpose.symbol")
sps$pch<-1:7
2005 Apr 22
1
Help needed with lattice graph!
Dear R users,
If I manage to sort out this graph, it is certainly a candidate for the
new R graph gallery
(http://addictedtor.free.fr/graphiques/displayGallery.php)!
I created the following lattice graph:
library(lattice)
tmp <- expand.grid(geology = c("Sand","Clay","Silt","Rock"),
species =
2009 Jun 17
2
cumulative sum in data frame
Dear R-Help List,
I have a question about data manipulation. I tried to make code myself but too much for me. I would greatly appreciate your help.
I have data set consisting of site (from 1 to N1) and distance and there are several variables (1 to N2) collected from each sampling site. I am interested in looking at cumulative sums of each variable based on site and distance like below.
Can
2005 Sep 17
4
xyplot and abline
Dear All,
I wonderif there is a simple way to draw a regression line in the xyplot:
more specifically, let:
age <- c(20:30, 31:40 )
age.cut <- cut(age, breaks = 2 )
y<- rnorm(20)
x <- rnorm(20,4,1)
xyplot(y ~ x| age.cut, xlab="x", ylab="y")
How to draw (in the plot given by xyplot) the two regression lines (y ~ x) corresponding to the two category
2011 Oct 28
0
[LLVMdev] DIBuilder - what's with the null compile units?
On Oct 27, 2011, at 10:39 PM, Talin wrote:
> On Mon, Oct 24, 2011 at 9:17 AM, Devang Patel <dpatel at apple.com> wrote:
>
> On Oct 23, 2011, at 12:03 AM, Talin wrote:
>
>> Just a follow up on this - I am still having problems, I never did figure out a solution. (I've been running with debug off for the last month so that I could get work done.)
>>
>>
2011 Sep 28
2
apply lm function to dataset split by two variables
Dear all,
I am not fluent in R and am struggling to 1) apply a lm to a weight-size
dataset, thus the model has to run separately for each species, each
year; 2) extract coefs, r-squared, n, etc. The data look like this:
year sps cm w
2009 50 16 22
2009 50 17 42
2009 50 18 45
2009 51 15 45
2009 51 16 53
2009 51 17 73
2010 50 15 22
2010 50 16 41
2010 50 16 21
2010
2008 Nov 24
2
how to read .sps (SPSS file extension)?
Hi everyone,
I'm trying to import .sps (SPSS portable file) file.
the read.spss function (library foreign) doesn't allow to import such files.
should I import in spss and then save as sav file? there is not other
solutions available?
what I mostly like from spss file is that they have variable labels.
want is really wish to keep are the variable.labels from the spss file; so,
if there is a
2009 Jan 16
2
Questions on the state of the UPS market
As previously noted, I need to replace a UPS and want to do my
product research in public so others can benefit. The information
I elicit on this thread will be merged into the UPS-HOWTO.
I went to my local computer-equiuipment big-box store, a place called
MicroCenter in Ardmore, Pennsylvania. I looked at the range of "UPS"
devices they sell and was *completely* confused.
Bear in
2013 Nov 02
4
[LLVMdev] get function local debug info?
Hi,
If I have an instance of DISubprogram, can I get the debug info of local
variables of the function, including parameters?
I tried to use the getVariables() function defined in DISubprogram, but
it seemed to return an empty DIArray node when I ran my pass alone using
opt. Do I need to enable any other analysis passes in order to populate
the data?
My related snippet of code is like the
2011 Oct 28
3
[LLVMdev] DIBuilder - what's with the null compile units?
On Mon, Oct 24, 2011 at 9:17 AM, Devang Patel <dpatel at apple.com> wrote:
>
> On Oct 23, 2011, at 12:03 AM, Talin wrote:
>
> Just a follow up on this - I am still having problems, I never did figure
> out a solution. (I've been running with debug off for the last month so that
> I could get work done.)
>
> Here's what I am seeing: I am definitely calling
2013 Nov 03
0
[LLVMdev] get function local debug info?
On Sat, Nov 2, 2013 at 4:17 PM, lu zhao <luzhao at cs.utah.edu> wrote:
> Hi,
>
> If I have an instance of DISubprogram, can I get the debug info of local
> variables of the function, including parameters?
>
> I tried to use the getVariables() function defined in DISubprogram, but it
> seemed to return an empty DIArray node when I ran my pass alone using opt.
> Do I
2010 Dec 06
3
Please help with write.foreign(SPSS)
Dear all,
I get stuck when i try to export the data into SPSS format/file using
"write.foreign()"
Do you know how to do it exactly?
What i have done is
1) First i type the following code in R:
df<-data.frame(id,year,res1)
names(df)<-c("idcode","year","resarrvl")
2013 Nov 08
2
Salicru SPS One in Debian
Hello, I have a Salicru SPS One 700VA device, I want to manage it with
Debian Whezzy.
I read some information in the net about how to configure but I can
not get it working.
Could you help with this?
This is the log when I connect the USB:
[ 3194.688204] usb 4-4: new low-speed USB device number 2 using ohci_hcd
[ 3194.857239] usb 4-4: New USB device found, idVendor=0665, idProduct=5161
[
2013 Nov 03
0
[LLVMdev] get function local debug info?
+llvmdev because I accidentally dropped it
On Nov 3, 2013 6:57 AM, "David Blaikie" <dblaikie at gmail.com> wrote:
> You're welcome to provide a patch or I might get to it myself. Also this
> should be described in http://llvm.org/docs/SourceLevelDebugging.html if
> it isn't already
> On Nov 3, 2013 12:11 AM, "lu zhao" <luzhao at cs.utah.edu>
2023 Mar 30
1
Problems with foreign
Good day
My name is Jos? Oscar, I'm from Mexico and I have some questions about
foreign in your write.foreig( ) function. We know that this function
generates the inputs to be able to run them or execute them in another
program like SPSS, SAS or Stata. In these cases, when creating an example
file, a matrix and using the function to execute the .sps file directly
from SPSS, I don't care or
2013 Nov 09
0
Salicru SPS One in Debian
On Nov 8, 2013, at 3:23 AM, Josu Lazkano wrote:
> Hello, I have a Salicru SPS One 700VA device, I want to manage it with
> Debian Whezzy.
>
> I read some information in the net about how to configure but I can
> not get it working.
I'm assuming you mean this blog post?
http://blog.ciberterminal.net/2013/04/28/ups-salicru-en-nut/
> Could you help with this?
>
>
2010 Aug 02
1
Convert an expression to a function
Hi John,
Here is my code practicing. Please give me some advises. Thank you.
Wu Gong
# Extract the function string
f.str <- sub("y~","",exprtext)
# Get arglist from the text
sp1 <- paste("\\",c(getGroupMembers(Arith),"(",")"),sep="")
sp2 <- getGroupMembers(Math)
sps <-
2017 Oct 20
1
IMAP stops responding.
Hiya all,
I've experienced that IMAP/IMAPS stops responding. To restore service there is only one way, restart Dovecot completely. This leads to services being interrupted for some people, so it seems to only affect some of the users on the server. But POP3/POP3s is still running happily. Also, it happens more as we approach Rush Hour. All of this leads me to believe that we're facing a
2005 Dec 15
1
bug?
> library(foreign)
> da<-read.dta(file.choose())
> da
startdat starttim enddate endtime days hoursmin secused
1 2005-01-11 2 2005-12-15 20.19 NA NA 9
> attributes(da)
$datalabel
[1] "Example of use of date and time functions"
$time.stamp
[1] "15 伿伄伓侢佋伮 2005 20"
$names
[1] "startdat" "starttim"