similar to: defining set of variables in a formula

Displaying 20 results from an estimated 2000 matches similar to: "defining set of variables in a formula"

2007 May 12
4
Excel data into R
Hello to all, How can I make R read the data from an Excel sheet? thanks, ozlem [[alternative HTML version deleted]]
2005 Dec 19
1
compaq v2000 laptop
Hi, I have a compaq V2000 laptop. Specs for network say its a realtek 8139/8139C+ NIC. Other distros (namely suse) said there was no problem with this was detected and worked. Mine does not work on either of the 2 V2000 laptops I have. I tried manually loading the 8139cp module then restarting the network and that did not do it. Any ideas? Jerry
2010 Jul 07
2
Sum vectors and numbers
We want to sum many vectors and numbers together as a vector if there is at least one vector in the arguments. For example, 1 + c(2,3) = c(3,4). Since we are not sure arguments to sum, we are using sum function: sum(v1,v2,...,n1,n2,..). The problem is that sum returns the sum of all the values present in its arguments: sum(1,c(2,3))=6 sum(1,2,3)=6 We do not want to turn sum(v1,v2,...,n1,n2,..) to
2005 Dec 19
7
Compaq V2000 laptop no USB recognized
To continue here with problems on this compaq v2000 laptop, I put kernel source on a USB disk and plugged it into the v2000. NOTHING IS recognized. I tried to manually mount the disk and nothing either... I thought USB was well established.... I thought trying to recompile the kernel for realtek support might get my networking going... I am stuck??? Jerry -------------- next part
2013 May 01
3
Adding Column to Data Frames Using a Loop
Dear R Helpers, I am trying to do calculations on multiple data frames and do not want to create a list of them to go through each one. I know that lists have many wonderful advantages, but I believe the better thing is to work df by df for my particular situation. For background, I have already received some wonderful help on how to handle some situations, such as removing columns:
2005 Dec 20
1
how to correctly turn off apic at boot
I have tried in the grub.conf file noapic and apic=off I am still getting the same error message about ACPI in the dmesg output. example: ACPI: PCI interupt .... IRQ 16 eth0: RealTek RTL8139 ... IRQ16 eth0: identified 8139 chip type so ACPI is grabbing IRQ 16 and not letting eth0 have it. (I Think). How do I correctly disable it on my compaq v2000 laptop. I think it is not allowing my usb
2011 Mar 14
2
code for "permutative" operation
Hello, I need some form of a "permutative" operation on a numeric vector x x = (v1, v2, v3, ..., vN) that produces x.r = (v1, v1+2, v1+v2+v3, ... v1+v2+...+vN) If the operation is sum() I can run x <- 5:8 m <- matrix(rep(x, length(x)), ncol=length(x)) (x.r <- rowsum(m * upper.tri(m, diag=TRUE), rep(1, length(x)))) But there's two things I don't know and kindly
2009 Apr 25
2
Extracting an object name?
Dear Sir or Madam: This is an extension to a earlier post, about looping through several thousand files, and testing student's models against a different data-set, called rclnow, for "recall now". The problem is, that the instructor never specified to the students, what they should name their "lm" object. So what they created was: "arbitrary variable name"
2011 Jun 16
1
prediction intervals
Dear members, I'm fitting linear model using "lm" which has numerous auto-regressive terms as well as other explanatory variables. In order to calculate prediction intervals, i've used a for-loop as the auto-regressive parameters need to be updated each time so that a new forecast and corresponding prediction interval can be calculated. I'm fitting a number of these models
2012 Jun 04
1
simulation of modified bartlett's test
Hi, I run this code to get the power of the test for modified bartlett's test..but I'm not really sure that my coding is right.. #normal distribution unequal variance asim<-5000 pv<-rep(NA,asim) for(i in 1:asim) {print(i) set.seed(i) n1<-20 n2<-20 n3<-20 mu<-0 sd1<-sqrt(25) sd2<-sqrt(50) sd3<-sqrt(100) g1<-rnorm(n1,mu,sd1) g2<-rnorm(n2,mu,sd2)
2013 Feb 03
1
Adding complex new columns to data frame depending on existing column
Hello I have a data frame as below V1 V2 V3 V4 V5 V6 chr1 18884 C CAAAA 2 0 chr1 135419 TATACA T 2 0 chr1 332045 T TTG 0 2 chr1 453838 T TAC 2 0 chr1 567652 T TG 1 0 chr1 602541 TTTA T 2 0 on which I want to perform complex rearrangement such that: if V3 is a string >1 (i.e line 2) then I
2005 Dec 20
0
how to correctly turn off apic at boot - also compaq V2000 solved.
Jerry Geis wrote: >/ I have tried in the grub.conf file />/ />/ noapic />/ />/ and />/ />/ apic=off />/ />/ I am still getting the same error message about ACPI />/ in the dmesg output. />/ />/ example: />/ ACPI: PCI interupt .... IRQ 16 />/ eth0: RealTek RTL8139 ... IRQ16 />/ eth0: identified 8139 chip type />/ />/ so ACPI is grabbing IRQ
2005 Dec 19
1
compaq v2000 laptop -- realtek RTL8100C?
Jerry Geis <geisj at pagestation.com <http://lists.centos.org/mailman/listinfo/centos>> wrote: >/ Hi, />/ I have a compaq V2000 laptop. Specs for network say its a />/ realtek 8139/8139C+ NIC. / Is it really a RTL8139? Or it is possible that it's a RTL8100? The reason I ask is because while the RTL8100 is supposed to be MAC compatible with the RTL8139, I'm finding
2005 Dec 20
1
compaq v2000 working with correct boot options and compaq r4000 still SLOWWW
Hi, I have a v2000 compaq laptop. The realtek network and USB on this machine was not working. After adding to grub.conf "acpi=off apci=off noacpi noapic" the v2000 realtek started working and the USB worked fine... Fantastic! So I thought I would try those same options on my r4000 laptop. they had no effect.... This AMD turion 64 4000+ rating laptop is still running SLOWWW...
2010 May 19
3
save in for loop
Dear users, My problem concerns save() within a for loop. Here is my code: for (i in 1:4) { temp <- data.frame(a=(i+1):(i+10), b=LETTERS[(i+1):(i+10)]) filename <- paste("file", i, sep="") assign(filename, temp) save(filename, file=paste(filename, ".rda", sep="")) } As you can see, save() doesn't work as I would like: (1) the object
2007 Jun 15
0
Coefficients and Covariances in MNP
Hi everyone, I use the MNP package to fit my data. I can interpret the coefficients and covariance. I cannot put them into the original model which is Wi=Sum(bXij) over j, Yi(Wi)=0 if max(Wi)<0, j if max(Wi)=Wij>0 j=3 here, 3 choice alternatives, Clio, Punto, Polo I don't know how to put the coefficients and covariances into W, to construct W for each j. The coefficients and
2007 May 13
0
Error in dimnames(x) <- dn
Hi everyone, I import data from access, and make an object (c) store the data, when I want to use it in function mnp, it gives the below error: Error in dimnames(x) <- dn : length of 'dimnames' [2] not equal to array extent > x<-odbcConnectAccess("db2.mdb") > c<-sqlFetch(x,"Sheet2") > odbcClose(x) > c choice clio punto polo 1
2010 Nov 01
2
number of items to replace is not a multiple of replacement length
Hey all, I am writing a function in which I will have a matrix of 4 columns and a variable amount of rows. The first to columns will always contain be of the Character type, the third and fourth columns can be a variation of data types, usually characters and integers, but sometimes lists or matrices. At one point the code makes, for each row, a copy of that row, then it makes some adjustments
2010 Sep 16
5
using variable from for loop in naming new variables
Simple one here ... but can't get it to work ... for (i in 1:4){ paste("stuff",[i]),sep="") <- 3 + i } ls() rm(list=ls()) I just want it to create 4 new variables called stuff1, stuff2, stuff3, stuff4 with the corresponding assignments. I realise that there are more elegant functions but this is just a model of a bigger situation. Thanks Jim
2010 Oct 27
6
Korg NanoKey under Wine
I have successfully installed/ran AudioMulch under Wine. One quib, my MIDI interface is not showing up. My first thought was to install the Windows driver under Wine, but it's the one .exe that wont let me root/Terminal it's permissions. It's usually a class compliant plug/play device. Any suggestions?