similar to: margin problems?

Displaying 20 results from an estimated 1000 matches similar to: "margin problems?"

2001 Jul 10
4
accessing a table
Hi, all. I'm sure this is a simple question, but I'm having problems figuring it out myself... I have a table: > currenttable <- table(junk[-1],junk[-n]) > currenttable bar foo junk bar 2 2 0 foo 1 0 0 junk 0 0 1 and I'd like to know the result of the cell currenttable(bar,foo). what is the best way to get that result? thanks!
2001 Jul 09
3
transitions in R
Hi, All. I'd have a set of data in an array: process <- c( 5 , 7 , 4 , 1 , 4 , 1 , 4 , 1 , 4 , 4 , 1 , 5 , 4 , ...) and I'd like to know the number of transitions in this data. I calculate transitions as the number of times a number follows another number. thus, something like this would be a 1 deep transition: 1 --> 1 : 10% (and actual number of 1 --> 1 occurrences) 1
2002 Oct 08
3
repeated measures help; disagreement with SPSS
Hi, all. I have a simple design I'm comparing to output from SPSS. the design is 1 repeated measure (session) and 1 between measure (cond). my dependent measure is rl. here is the data I'm using (in a data.frame): mig <- data.frame(subj=factor(rep(subj,3)), cond=factor(rep(cond,3)), session=factor(c(rep(1,nsubj),rep(2,nsubj),rep(3,nsubj))),
2003 Mar 18
1
temperature profiles on maps
Hi, all. I'm looking for a way to generate temperature profiles and display them in different colors on different maps. I'm basically looking for a way to display simple meteorological graphs using different color sets within R. Is there a way to do that kind of thing in R? failing that, is there any way to create temperature profiles in R? thanks! greg
2002 Feb 08
1
looping through lists...
Hi, all. I have a whole group of lists with things like this: nw.1$cond (a string) nw.1$RL (a vector of 10 values) nw.1$IL (a vector of 10 values) and I have lots of these lists: nw.201 nw.202 nw.203 ... what I'd like to do is be able to get specific values from all these lists (like the mean of $RL) for each indivividual list. I can certainly do this manually
2001 Mar 30
5
PICT output?
hi, all. I use R on a unix (linux) box and am quite happy with it. However, sometimes I need to create a graph that needs to be used with Microsoft Word or Powerpoint (ug). I can create a png or jpeg format picture, but the text look pretty crummy because jpeg is bitmapped. I can also create a PS/EPS version (my preference), but then it doesn't display properly in word or powerpoint (but it
2017 Nov 26
3
dplyr - add/expand rows
dplyr may have something for this, but in base R I think the following does what you want. I've shortened the name of your data set to 'd'. i <- rep(seq_len(nrow(d)), d$YEAR_TO-d$YEAR_FROM+1) j <- sequence(d$YEAR_TO-d$YEAR_FROM+1) transform(d[i,], YEAR=YEAR_FROM+j-1, YEAR_FROM=NULL, YEAR_TO=NULL) Bill Dunlap TIBCO Software wdunlap tibco.com On Sat, Nov 25, 2017 at 11:18 AM,
2017 Nov 27
2
dplyr - add/expand rows
try this: ########################################## library(dplyr) input <- tribble( ~station, ~from, ~to, ~record, "07EA001" , 1960 , 1960 , "QMS", "07EA001" , 1961 , 1970 , "QMC", "07EA001" , 1971 , 1971 , "QMM", "07EA001" , 1972 , 1976 , "QMC", "07EA001" , 1977 ,
2017 Nov 26
0
dplyr - add/expand rows
To David W.'s point about lack of a suitable reprex ("reproducible example"), Bill's solution seems to be for only one station. Here is a reprex and modification that I think does what was requested for multiple stations, again using base R and data frames, not dplyr and tibbles. First the reprex with **two** stations: > d <- data.frame( station =
2017 Nov 28
0
dplyr - add/expand rows
On 11/26/2017 08:42 PM, jim holtman wrote: > try this: > > ########################################## > > library(dplyr) > > input <- tribble( > ~station, ~from, ~to, ~record, > "07EA001" , 1960 , 1960 , "QMS", > "07EA001" , 1961 , 1970 , "QMC", > "07EA001" , 1971 , 1971 ,
2017 Nov 28
1
dplyr - add/expand rows
Bert wrote ... Bill's solution seems to be for only one station. No, it works for any number of stations. Bill Dunlap TIBCO Software wdunlap tibco.com On Sun, Nov 26, 2017 at 11:10 AM, Bert Gunter <bgunter.4567 at gmail.com> wrote: > To David W.'s point about lack of a suitable reprex ("reproducible > example"), Bill's solution seems to be for only one
2017 Nov 28
2
dplyr - add/expand rows
Or with the Bioconductor IRanges package: df <- with(input, DataFrame(station, year=IRanges(from, to), record)) expand(df, "year") DataFrame with 24 rows and 3 columns station year record <character> <integer> <character> 1 07EA001 1960 QMS 2 07EA001 1961 QMC 3 07EA001 1962 QMC 4
2017 Nov 29
0
dplyr - add/expand rows
Hi, A benchmarking study with an additional (data.table-based) solution. Enjoy! ;) Cheers, Denes -------------------------- ## packages ########################## library(dplyr) library(data.table) library(IRanges) library(microbenchmark) ## prepare example dataset ########### ## use Bert's example, with 2000 stations instead of 2 d_df <- data.frame( station =
2017 Nov 29
2
dplyr - add/expand rows
On 11/29/2017 04:15 PM, T?th D?nes wrote: > Hi, > > A benchmarking study with an additional (data.table-based) solution. I don't think speed is the right benchmark (I do agree that correctness is!). For the R-help list, maybe something about least specialized R knowledge required would be appropriate? I'd say there were some 'hard' solutions -- Michael (deep
2017 Nov 29
0
dplyr - add/expand rows
Hi Martin, On 11/29/2017 10:46 PM, Martin Morgan wrote: > On 11/29/2017 04:15 PM, T?th D?nes wrote: >> Hi, >> >> A benchmarking study with an additional (data.table-based) solution. > > I don't think speed is the right benchmark (I do agree that correctness > is!). Well, agree, and sorry for the wording. It was really just an exercise and not a full
2004 Mar 03
1
Status Lights on Snom200 Phone Displaying the Status of PSTN Lines
Alright, this may seem like something relatively easy to do but I must be missing something or had a neuron misfire. I am trying to get The Status lights on my Snom200 hardphones to display the status of each one of my PSTN lines in my Asterisk server. Current Config: 3 X100P cards Asterisk CVS-02/25/04-18:06:52 5 Snom200 phones I am currently using the following macro to dial out
2001 Apr 03
0
graph from unix into word
On 31 Mar 01,, R-help Digest wrote (re: R-help Digest V2 #380): > Date: Fri, 30 Mar 2001 09:49:21 -0500 (EST) > From: Greg Trafton <trafton at itd.nrl.navy.mil> > Subject: [R] PICT output? > > hi, all. I use R on a unix (linux) box and am quite happy with it. > However, sometimes I need to create a graph that needs to be used with > Microsoft Word or Powerpoint
2001 Apr 03
0
PICT output? R plot to word
On 3 Apr 01,, R-help Digest wrote (re: R-help Digest V2 #382): > - ----- Original Message ----- > From: "Mark Myatt" <mark at myatt.demon.co.uk> > To: "Greg Trafton" <trafton at itd.nrl.navy.mil> > Cc: <r-help at stat.math.ethz.ch> > Sent: Monday, April 02, 2001 9:31 PM > Subject: Re: [R] PICT output? > > > > 2) Is there a way
2016 Jun 29
0
Git Move: GitHub+modules proposal
Hi all, A short summary: Takumi has done 90% of the work here: https://github.com/llvm-project/llvm-project-submodule and I've been talking to GitHub, and here are the answers to my questions: > 1. How will the umbrella project's auto-increment hook work? Since the umbrella project cannot see the sub-modules' commits without some form of update, there are two ways to do this:
2017 Nov 25
0
dplyr - add/expand rows
I have a returned tibble of station operational record similar to the following: > data.collection # A tibble: 5 x 4 STATION_NUMBER YEAR_FROM YEAR_TO RECORD <chr> <int> <int> <chr> 1 07EA001 1960 1960 QMS 2 07EA001 1961 1970 QMC 3 07EA001 1971 1971 QMM 4 07EA001 1972 1976 QMC 5