search for: cemarcel

Displaying 7 results from an estimated 7 matches for "cemarcel".

Did you mean: carcel
2012 Sep 27
3
Calculating number of elapsed days from starting date
Hi I have data for events in rows, with columns for person and date. Each person may have more than one event; tC <- textConnection(" Person date bob 1/1/00 bob 1/2/00 bob 1/3/00 dave 1/7/00 dave 1/8/00 dave 1/10/00 kevin 1/2/00 kevin 1/3/00 kevin 1/4/00 ") data <- read.table(header=TRUE, tC) close.connection(tC) rm(tC) I would like to add a new column to my dataframe containing
2012 Jun 25
3
Loop for multiple plots in figure
Hello, I have longitudinal data of the form below from N subjects; I am trying to create figure with N small subplots on a single page, in which each plot is from only one subject, and in each plot there is a separate curve for each value of param1. So in this case, there would be four plots on the page (one each for Bob, Steve, Kevin and Dave), and each plot would have two separate curves (one
2012 Nov 24
2
Performing operations only on selected data
I spent some time on this simple question, also searched the forum, eventually hacked my way to an ugly solution for my particular problem but I would like to improve my coding: I have data of the form: df <- expand.grid(group=c('copper', 'zinc', 'aluminum', 'nickel'), condition1=c(1:4)) I would like to add a new data column "condition2", with values
2010 Sep 04
2
R code output issues
Hi all, I have a short R code file that I am using to perform calculations on a dataset. I am having a few issues with output: 1. Although my input data file is 2149 lines long, when I type "results.df" from the command line, I get the appropriate calculation results for only the first 46 rows. Same result if I "sink" the output to a file, and type "results.df" at
2010 Aug 30
2
while loop until end of file
Hi Guys, stumped by a simple problem. I would like to take a file of the form Pair group param1 1 D 10 1 D 10 1 R 10 1 D 10 2 D 10 2 D 10 2 D 10 2 R 10 2 R 10 etc.. and for each pair, calculate the average of
2010 Apr 24
1
Formatting numerical output
Hello, I am new to R and am having difficulty formatting numerical output from a regression analysis. My code iteratively performs linear regression on a dataset while excluding certain data ranges. My code: rm(list = ls(all = TRUE)) sink("outfile") dat <- read.table("testdat", sep="\t", header=TRUE) int = 0.2 for (x in c(0:20)) { subdat <- subset(dat, time
2010 Oct 27
1
trouble with histograms
Hi, I have tab-delimited data with an unequal number of entries per column, of the sort: A B C 1 2 2 3 4 1 5 2 2 6 2 5 2 3 6 2 I would like to make a histogram of the frequencies of each represented number in a "stacked" histogram, where you can see the contribution of each group (A, B or C) to the total height of the bar, and each bar labeled with the