[R] how to adjust the x axis range based on y axis data

2013-07-10 Thread Kara Przeczek
I am using R studio version 0.97.336. I am trying to produce multiple figures based on a large data set (98010 rows). I am creating a plot for each TITLE (related to a variable/station combination). #Create a plot for each Title. Save all plots as jpegs in folder named SkeenaQfigs for(i in

[R] perform t.test by rows and columns in data frame

2012-02-23 Thread Kara Przeczek
Dear R Help, I have been struggling with this problem without making much headway. I am attempting to avoid using a loop, and would appreciate any suggestions you may have. I am not well versed in R and apologize in advance if I have missed something obvious. I have a data set with multiple

Re: [R] perform t.test by rows and columns in data frame

2012-02-23 Thread Kara Przeczek
Sorry. I forgot to note that I am using R version 2.8.0. From: r-help-boun...@r-project.org [r-help-boun...@r-project.org] on behalf of Kara Przeczek [przec...@unbc.ca] Sent: February 23, 2012 3:13 PM To: r-help@r-project.org Subject: [R] perform t.test

[R] else problem

2011-06-23 Thread Kara Przeczek
Dear R users, I have run into a problem using if...else and I hope you can shed some light on it. I am using R version 2.2.0.1. I have the following data frame: head(dat2f) year tot_km3y [1,] 1964 0.1876854 [2,] 1965 0.1835116 [3,] 1966 0.1915012 [4,] 1967 0.1869758 [5,] 1968 0.2249865

Re: [R] else problem

2011-06-23 Thread Kara Przeczek
it was part of a function and thus would have been executed completely within the function? Cheers, Kara From: Bert Gunter [gunter.ber...@gene.com] Sent: June 23, 2011 8:27 AM To: David Winsemius Cc: Kara Przeczek; r-help@r-project.org Subject: Re: [R] else

[R] maintaining row connections during aggregate

2011-06-13 Thread Kara Przeczek
Dear All, I have several sets of data such as this: year jday avg_m3s 1 19601 4.262307 2 19602 4.242308 3 19603 4.216923 4 19604 4.185385 5 19605 4.151538 6 19606 4.133846 ... There is a value for each day of multiple years. In this particular data set it goes up to

[R] sum sections of data of different lengths from within a data frame

2010-02-09 Thread Kara Przeczek
Dear R Help: I am trying to sum data from one column in a dataframe based on a value in another. I do not know how to do this easily in R. For example: Col A Col B 10 30 21 20 10 40 11 91 30 50 21 I would

[R] second y-axis in lattice xyplot

2009-08-18 Thread Kara Przeczek
Dear R-help, I recently discovered lattice xyplot, but have been struggling with plotting a second y-axis. I am able to do this with plot() but can't figure it out in xyplot. Any help would be appreciated. I have found help on adding a second Y-axis when the data is all part of the same data

[R] subtract values

2009-03-19 Thread Kara Przeczek
, not just midnight. Thank you very much for your time and assistance! Kara Kara Przeczek M.Sc. Candidate NRES - Environmental Science University of Northern B.C. University Way Prince George B.C V2N 4Z9 Phone: (250) 960-5427 przec...@unbc.ca

[R] testing column data against criteria, point by point

2009-03-05 Thread Kara Przeczek
I am fairly new to R and I would like to do the following, but do not know where to start. Any help or direction would be appreciated. I have a time series of snow depth measurements. I would like to determine the depth of snowfall for each snowfall event. There is noise in the data so I only

[R] error message when using strptime

2008-11-28 Thread Kara Przeczek
is going on here? I have tried formatting the DateTime different ways in Excel, recreating the .txt file, changing the strptime format, and rebooting R yet nothing seems to be working. Thanks SO much! Kara Kara Przeczek M.Sc. Candidate NRES - Environmental Science University of Northern B.C.

[R] can I use one data frame to subset data from another?

2008-11-14 Thread Kara Przeczek
is not the same length as the temperature data frame met_h. However, I want to create an output of the same length as period. I would like to use the period data frame to pick out certain data from the larger met_h. Thank you very much for your time! Kara Kara Przeczek M.Sc. Candidate NRES