Re: [R] For loop

2017-06-22 Thread Nordlund, Dan (DSHS/RDA)
For a reproducible example, you need to give us some example data, at least dput(head(leafbiom97)) dput(head(Litterfall_Ahmed97)) dput(head(GPP_Ahmed13)) Dan Daniel Nordlund, PhD Research and Data Analysis Division Services & Enterprise Support Administration Washington State Department of

Re: [R] rmarkdown and font size

2017-06-08 Thread Nordlund, Dan (DSHS/RDA)
You can change the style, modifying a variety of things. E.g, --- title: Test --- body{ /* Normal */ font-size: 12px; } td { /* Table */ font-size: 8px; } h1.title { font-size: 38px; color: DarkRed; } h1 { /* Header 1 */ font-size: 28px; color: DarkBlue; } h2 { /* Header

Re: [R] Force argument to have quotes

2017-06-06 Thread Nordlund, Dan (DSHS/RDA)
Bert has suggested there are better ways to do what you want. But if you want to continue down the path you have started and you want to decide whether to quote based on the variable Class, something like this might work for you myOptions <- with(myFunction1Vals, paste(Argument,

Re: [R] Interesting quirk with fractions and rounding

2017-04-20 Thread Nordlund, Dan (DSHS/RDA)
This is FAQ 7.31. It is not a bug, it is the unavoidable problem of accurately representing floating point numbers with a finite number of bits of precision. Look at the following: > a <- 100*(23/40) > b <- (100*23)/40 > print(a,digits=20) [1] 57.493 > print(b,digits=20) [1] 57.5

Re: [R] Quantmod cant download data

2017-04-18 Thread Nordlund, Dan (DSHS/RDA)
The download works for me without any warning message. The following is my session info. > sessionInfo() R version 3.3.3 (2017-03-06) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows 7 x64 (build 7601) Service Pack 1 locale: [1] LC_COLLATE=English_United States.1252 [2]

Re: [R] Getting unexpected extra rows (continued)

2017-03-30 Thread Nordlund, Dan (DSHS/RDA)
This is pretty basic stuff which suggests you need to (re)read the intro to R that comes with your R installation. One approach would be : xFrame <- data.frame(x=x, Transits=NA) hope this is helpful, Dan Daniel Nordlund, PhD Research and Data Analysis Division Services & Enterprise Support

Re: [R] Splitting on metacharacters

2017-03-28 Thread Nordlund, Dan (DSHS/RDA)
What you are seeing when printing depends on how you do it (and it can be confusing). Try this, type the following lines exactly (or copy and paste) and carefully study the results. In particular, compare the results of cat(s,'\n') with the results of strsplit(s, '"') . s <-

Re: [R] Problem with greek characters in R

2017-03-09 Thread Nordlund, Dan (DSHS/RDA)
Dimitrios, You need to help us help you. You say you have a file that has Greek characters in it that you want to "open with the program RGui". 1. You need to provide us with a sample of the problem file. Since we are talking about text here, you can create a file with just a few lines in it

Re: [R] Reverse the scoring of some Columns of a Data Set

2017-03-09 Thread Nordlund, Dan (DSHS/RDA)
Another alternative (which didn't work last night when I was tired and obviously doing something wrong) is to use the built-in function, rev(): df[,1:3] <- apply(df[,1:3], 2, rev) Dan Daniel Nordlund, PhD Research and Data Analysis Division Services & Enterprise Support Administration

Re: [R] Coefficient of Partial Determination

2017-03-01 Thread Nordlund, Dan (DSHS/RDA)
The rms and Hmisc packages can be found on CRAN. Just run install packages from the console menu. Dan Daniel Nordlund, PhD Research and Data Analysis Division Services & Enterprise Support Administration Washington State Department of Social and Health Services > -Original Message- >

Re: [R] Error with "compiler" and "caret" packages

2017-01-26 Thread Nordlund, Dan (DSHS/RDA)
The compiler package may be installed on your computer, but did you load it with library(compiler) Dan Daniel Nordlund, PhD Research and Data Analysis Division Services & Enterprise Support Administration Washington State Department of Social and Health Services > -Original Message-

Re: [R] Match ISO 8601 week-of-year numbers to month-of-year numbers on Windows with German locale

2017-01-12 Thread Nordlund, Dan (DSHS/RDA)
See comments inline. > -Original Message- > From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Bob Rudis > Sent: Thursday, January 12, 2017 12:41 PM > To: David Winsemius > Cc: r-help@r-project.org > Subject: Re: [R] Match ISO 8601 week-of-year numbers to month-of-year >

Re: [R] R & MongoDB

2016-12-01 Thread Nordlund, Dan (DSHS/RDA)
Here are some links that may get you started. https://www.r-bloggers.com/r-and-mongodb/ https://cran.r-project.org/web/packages/mongolite/vignettes/intro.html https://www.opencpu.org/posts/mongolite-release-0-3/ You may also want to ask your question on the R-sig-DB Mailing list.

Re: [R] bzip2

2016-10-31 Thread Nordlund, Dan (DSHS/RDA)
I don't know what version Linux or other OS you are using, but have you installed the bzip2 development package? It would be named something like libbz2-dev (that is what it is in Ubuntu, I believe). Dan Daniel Nordlund, PhD Research and Data Analysis Division Services & Enterprise Support

Re: [R] function ave() with seq_along returning char sequence instead of numeric

2016-10-31 Thread Nordlund, Dan (DSHS/RDA)
riginal Message- > From: Jeff Newmiller [mailto:jdnew...@dcn.davis.ca.us] > Sent: Monday, October 31, 2016 4:34 PM > To: Nordlund, Dan (DSHS/RDA); r-help@r-project.org > Subject: Re: [R] function ave() with seq_along returning char sequence > instead of numeric > > The h

[R] function ave() with seq_along returning char sequence instead of numeric

2016-10-31 Thread Nordlund, Dan (DSHS/RDA)
Given the following R statements v <- c('a', 'a', 'a', 'b', 'b', 'b', 'c', 'c', 'c', 'c') ave(v, list(v), FUN=seq_along) [1] "1" "2" "3" "1" "2" "3" "1" "2" "3" "4" I was expecting to get a numeric vector back. I apparently have missed something in the documentation. If vector v is

Re: [R] using read.csv2()

2016-09-29 Thread Nordlund, Dan (DSHS/RDA)
Or, you can just use read.csv with sep=';' read.csv("test.csv", sep=';') -> don Dan Daniel Nordlund, PhD Research and Data Analysis Division Services & Enterprise Support Administration Washington State Department of Social and Health Services > -Original Message- > From: R-help

Re: [R] Writing data onto xlsx file without cell formatting

2016-09-27 Thread Nordlund, Dan (DSHS/RDA)
Christofer, I do not really use the xlsx package, so this may not be the 'best' approach. And based on your spreadsheet, and the code that you supplied, I am not sure what you really intended. But here is some sample code that will update cells in your spreadsheet without changing the

Re: [R] Problem Mixstock in R

2016-09-21 Thread Nordlund, Dan (DSHS/RDA)
Googling "mixstock CRAN" I found the following: Package 'mixstock' was removed from the CRAN repository. Formerly available versions can be obtained from the archive. Archived on 2014-08-30 as long-term memory-access errors were not corrected. You might want to contact the maintainer of the

Re: [R] Need help with use of ROCK algorithm in R for binary data

2016-08-16 Thread Nordlund, Dan (DSHS/RDA)
You should really go to the help page for the function rockCluster() and run the first example and study the output. It should become clear that what you are calling the cluster is not a cluster at all. It is an indicator of which objects *did not* cluster with any other objects ). In

Re: [R] Date Time in R

2016-07-26 Thread Nordlund, Dan (DSHS/RDA)
You still seem to be having problems, so where is the promised reproducible example? Dan Daniel Nordlund, PhD Research and Data Analysis Division Services & Enterprise Support Administration Washington State Department of Social and Health Services > -Original Message- > From: R-help

Re: [R] Selecting 1st and last dates from a set of dates

2016-07-14 Thread Nordlund, Dan (DSHS/RDA)
rt Administration Washington State Department of Social and Health Services From: William Dunlap [mailto:wdun...@tibco.com] Sent: Thursday, July 14, 2016 9:32 AM To: Nordlund, Dan (DSHS/RDA) Cc: R-help Mailing List Subject: Re: [R] Selecting 1st and last dates from a set of dates I did not use

Re: [R] Selecting 1st and last dates from a set of dates

2016-07-14 Thread Nordlund, Dan (DSHS/RDA)
Using William Dunlap's data, here is another alternative: library(zoo) aggregate(d$Date,list(as.yearmon(d$Date)),min) aggregate(d$Date,list(as.yearmon(d$Date)),max) Hope this is helpful, Dan Daniel Nordlund, PhD Research and Data Analysis Division Services & Enterprise Support Administration

Re: [R] Non-negative matrix factorization for term documnt matrix

2016-06-09 Thread Nordlund, Dan (DSHS/RDA)
A quick Google search suggests that the package, NMF, might be of help. Dan Daniel Nordlund, PhD Research and Data Analysis Division Services & Enterprise Support Administration Washington State Department of Social and Health Services > -Original Message- > From: R-help

Re: [R] problem: the id of the data set

2016-06-09 Thread Nordlund, Dan (DSHS/RDA)
We really need a reproducible example. Otherwise, we can only guess what the starting point was, how the merge was done, what the expected result was, and how the obtained result differed from the expected result. Dan Daniel Nordlund, PhD Research and Data Analysis Division Services &

Re: [R] rollapply and difftime

2016-05-26 Thread Nordlund, Dan (DSHS/RDA)
Another option Daily$tmdiff <- with(Daily, c(NA, diff(Date, units='days'))) Hope this is helpful, Dan Daniel Nordlund, PhD Research and Data Analysis Division Services & Enterprise Support Administration Washington State Department of Social and Health Services > -Original Message-

Re: [R] Sprintf to call data frame from environment

2016-05-24 Thread Nordlund, Dan (DSHS/RDA)
It is not clear (at least to me) what your actual task is. But, if Samples_1.txt is the actual name of a data frame that exists in memory (and not a filename), then you need to wrap the sprintf() in a get() function. get(sprintf("Samples_%s.txt", 1))$V1 I am no expert on "computing on the

Re: [R] identify duplicate entries in data frame and calculate mean

2016-05-24 Thread Nordlund, Dan (DSHS/RDA)
You have several options. 1. You could use the aggregate function. If your data frame is called DF, you could do something like with(DF, aggregate(Length, list(Identifier), mean)) 2. You could use the dplyr package like this library(dplyr) summarize(group_by(DF, Identifier),

Re: [R] Creating a data frame from scratch

2016-05-24 Thread Nordlund, Dan (DSHS/RDA)
I would probably write the function something like this: t_count_na <- function(dataset, variables = "all") { if (identical(variables, "all")) { variable_list <- names(dataset) } else { variable_list <- variables } apply(dataset[,variable_list], 1,

Re: [R] Regression with factor having1 level

2016-03-10 Thread Nordlund, Dan (DSHS/RDA)
> -Original Message- > From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of David > Winsemius > Sent: Thursday, March 10, 2016 4:39 PM > To: Robert McGehee > Cc: r-help@r-project.org > Subject: Re: [R] Regression with factor having1 level > > > > On Mar 10, 2016, at 2:00 PM,

Re: [R] R related issue

2016-03-10 Thread Nordlund, Dan (DSHS/RDA)
You haven't provided sufficient information for people to help you. Please read the posting guide linked to at the bottom of this email. We need a reproducible example. You say you tried to discretize but it didn't work. What did you try (actual code please), and what error messages did

Re: [R] how to split and use notation fro stacked data

2016-02-24 Thread Nordlund, Dan (DSHS/RDA)
I will suggest that you read the documentation on t.test. ?t.test Dan Daniel Nordlund, PhD Research and Data Analysis Division Services & Enterprise Support Administration Washington State Department of Social and Health Services > -Original Message- > From: R-help

Re: [R] R Software Program Help

2016-02-23 Thread Nordlund, Dan (DSHS/RDA)
If you google "R Statistical Programming software" you will find all the information you could possibly want. In particular, for your purposes you should probably start with https://www.r-project.org/ and read the "About" section. Then follow other links as needed. Dan Daniel Nordlund,

Re: [R] Confidence Interval for R-squared

2016-01-26 Thread Nordlund, Dan (DSHS/RDA)
A Google search suggested the use of the boot package to bootstrap a confidence interval for R-squared. http://www.statmethods.net/advstats/bootstrapping.html Dan Daniel Nordlund, PhD Research and Data Analysis Division Services & Enterprise Support Administration Washington State Department

Re: [R] package broom

2016-01-06 Thread Nordlund, Dan (DSHS/RDA)
So, you need to download and install the mnormt package. Dan Daniel Nordlund, PhD Research and Data Analysis Division Services & Enterprise Support Administration Washington State Department of Social and Health Services > -Original Message- > From: R-help

Re: [R] vjust unresponsive (ggplot2)

2015-12-22 Thread Nordlund, Dan (DSHS/RDA)
Are you sure it is not working for you? Your example code did not work for me at all until I removed the plot .margin parameter (unit wasn't recognized). Once I did that hjust and vjust worked as expected. However, values between .1 and .9 for vjust don't really move the axis title very

Re: [R] vjust unresponsive (ggplot2)

2015-12-22 Thread Nordlund, Dan (DSHS/RDA)
& Enterprise Support Administration Washington State Department of Social and Health Services > -Original Message- > From: Ista Zahn [mailto:istaz...@gmail.com] > Sent: Tuesday, December 22, 2015 10:48 AM > To: Nordlund, Dan (DSHS/RDA) > Cc: r-help@r-project.org >

Re: [R] Make a box-whiskers plot in R with 5 variables, color coded.

2015-12-16 Thread Nordlund, Dan (DSHS/RDA)
Which is why England and the United States have been described as two countries divided by a common language. (Could probably throw Scotland and Australia, and others, into the mix as well ... notice the parethenses, or nice round brackets, or ? :-} ) Dan Daniel Nordlund, PhD Research

Re: [R] Compute Regressions with R-Function

2015-11-12 Thread Nordlund, Dan (DSHS/RDA)
You may have additional scoping problems depending on where you various variables exist, but your Trend function syntax is incorrect. You need parentheses around your arguments to the lm call, and you left out the '~' in your formula. In addition, don't fool yourself by your use of the names

Re: [R] cannot install RWinEdt

2015-11-06 Thread Nordlund, Dan (DSHS/RDA)
n State Department of Social and Health Services -Original Message- From: Uwe Ligges [mailto:lig...@statistik.tu-dortmund.de] Sent: Thursday, November 05, 2015 10:20 PM To: Nordlund, Dan (DSHS/RDA); r-help@r-project.org Subject: Re: [R] cannot install RWinEdt On 06.11.2015 02:06, N

Re: [R] cannot install RWinEdt

2015-11-05 Thread Nordlund, Dan (DSHS/RDA)
You might want to upgrade to R-3.2.2 as there appears to be a RWinEdt binary available for it. Dan Daniel Nordlund, PhD Research and Data Analysis Division Services & Enterprise Support Administration Washington State Department of Social and Health Services -Original Message- From:

Re: [R] #2 (Thanks) → Consultation about reading hdf files from nsidc

2015-10-29 Thread Nordlund, Dan (DSHS/RDA)
-Original Message- From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of David Winsemius Sent: Thursday, October 29, 2015 11:51 AM To: jorge.rabinov...@gmail.com Cc: r-help@r-project.org; HDF-EOS Tools and Information Center Help Subject: Re: [R] #2 (Thanks) → Consultation about

Re: [R] R WRONG CALCULATIONS - Please Help

2015-09-14 Thread Nordlund, Dan (DSHS/RDA)
Another option is apply(X,2,function(x) x-mean(x)) Hope this is helpful, Dan Daniel Nordlund, PhD Research and Data Analysis Division Services & Enterprise Support Administration Washington State Department of Social and Health Services -Original Message- From: R-help

Re: [R] Convert character Variables to numeric

2015-08-26 Thread Nordlund, Dan (DSHS/RDA)
Or to provide data without using an attachment, use dput() and cut-n-paste the result into an email. dput(Mac[1:10,]) Dan Daniel Nordlund, PhD Research and Data Analysis Division Services Enterprise Support Administration Washington State Department of Social and Health Services

Re: [R] Two conditions selection

2015-08-04 Thread Nordlund, Dan (DSHS/RDA)
You need to read up on indexing in R. What you want is logical indexing. You can use just the vectors you created (since you didn't save the data frame that you created) like this cycle=c(rep(1,3),rep(2,3),rep(3,3),rep(4,3))

Re: [R] Environmental Data Connector v1.3

2015-08-03 Thread Nordlund, Dan (DSHS/RDA)
Why are you using paste() ? Why not just setwd(Sys.getenv(EDC_HOME)) Dan Daniel Nordlund, PhD Research and Data Analysis Division Services Enterprise Support Administration Washington State Department of Social and Health Services -Original Message- From: R-help

Re: [R] Reading data with two rows of variable names using read.zoo

2015-07-28 Thread Nordlund, Dan (DSHS/RDA)
Not a guru, but this isn't that hard. The following works with your sample data. It shouldn't be too difficult to modify for your full file. library(zoo) df - read.table('path_to_your_data', sep=';', skip=2, as.is=TRUE) str(df) substr(df$V1,5,5) - '-' df$V1 - as.yearqtr(substr(df$V1,1,6)) df$A

Re: [R] : Ramanujan and the accuracy of floating point computations - using Rmpfr in R

2015-07-02 Thread Nordlund, Dan (DSHS/RDA)
Ravi, Take a look at the following link. https://code.google.com/p/r-bc/ I followed the instructions to get a Windows version of the 'nix utility program , bc (a high precision calculator), and the source for an R to bc interface. After installing them, I executed

Re: [R] Convert csv to xpt file in R?

2015-05-07 Thread Nordlund, Dan (DSHS/RDA)
-Original Message- From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Santosh Sent: Wednesday, May 06, 2015 8:04 PM To: r-help Subject: [R] Convert csv to xpt file in R? Dear Rxperts.. Was wondering if there is a way in R to read a csv file and generate an XPT

[R] update.packages() ask for mirror several times

2015-05-05 Thread Nordlund, Dan (DSHS/RDA)
I recently installed an R-3.2.0 binary for Win7 64-bit from a CRAN table. Now when using the menu to update packages, it asks me to select a mirror several times before proceeding to successfully download and install the updated packages. It is only a minor annoyance, was wondering if anyone

Re: [R] update.packages() ask for mirror several times

2015-05-05 Thread Nordlund, Dan (DSHS/RDA)
05, 2015 12:31 PM To: Nordlund, Dan (DSHS/RDA); r-help@r-project.org Subject: Re: [R] update.packages() ask for mirror several times On 05/05/2015 12:13 PM, Nordlund, Dan (DSHS/RDA) wrote: I recently installed an R-3.2.0 binary for Win7 64-bit from a CRAN table. Now when using the menu

Re: [R] 'Installation of package package had non-zero exit status' on R-3.2.0 (RStudio Version 0.98.1103) on Ubuntu 12.04 OS

2015-04-30 Thread Nordlund, Dan (DSHS/RDA)
-Original Message- From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Duncan Murdoch Sent: Thursday, April 30, 2015 1:33 PM To: Anirudh Jayaraman Cc: r-help@r-project.org Subject: Re: [R] 'Installation of package package had non-zero exit status' on R-3.2.0 (RStudio

Re: [R] BIG difficulties in Using boot.ci (bot package)

2015-04-13 Thread Nordlund, Dan (DSHS/RDA)
That is probably the number one reason for requesting a reproducible example when writing to R-help. In the proce3ss of working that out, you often solve your own problem. Best of luck with your bootstrapping, Dan Daniel J. Nordlund, PhD Research and Data Analysis Division Services

Re: [R] Randomly interleaving data frames while preserving order

2015-03-31 Thread Nordlund, Dan (DSHS/RDA)
-Original Message- From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Kevin E. Thorpe Sent: Tuesday, March 31, 2015 10:53 AM To: Duncan Murdoch Cc: R Help Mailing List Subject: Re: [R] Randomly interleaving data frames while preserving order On 03/31/2015 01:44 PM,

Re: [R] use R in a web interface

2015-02-25 Thread Nordlund, Dan (DSHS/RDA)
-Original Message- From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of hamid- reza kadkhodazadeh Sent: Wednesday, February 25, 2015 5:55 AM To: c...@r-project.org; r-help@r-project.org Subject: [R] use R in a web interface hi; *Is there a possibility to use R in a

Re: [R] Averaging column scores when participants vary in number of observations

2015-02-19 Thread Nordlund, Dan (DSHS/RDA)
-Original Message- From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Chad Danyluck Sent: Thursday, February 19, 2015 12:33 PM To: r-help@r-project.org Subject: Re: [R] Averaging column scores when participants vary in number of observations I have a data set that

Re: [R] library(Rcmdr) sh: otool: command not found

2015-02-10 Thread Nordlund, Dan (DSHS/RDA)
Try setting dependencies = TRUE in install.packages() install.packages(Rcmdr, dependencies = TRUE) hope this is helpful, Dan Daniel J. Nordlund, PhD Research and Data Analysis Division Services Enterprise Support Administration Washington State Department of Social and Health Services

Re: [R] Need help with BIG Data

2015-01-21 Thread Nordlund, Dan (DSHS/RDA)
-Original Message- From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Paromita Guha Sent: Wednesday, January 21, 2015 7:19 AM To: r-help@r-project.org Subject: [R] Need help with BIG Data Hi all, I have a dataset with more than 16800 rows and 2000 columns. I have

Re: [R] ave(x, y, FUN=length) produces character output when x is character

2014-12-24 Thread Nordlund, Dan (DSHS/RDA)
-Original Message- From: R-help [mailto:r-help-boun...@r-project.org] On Behalf Of Mike Miller Sent: Wednesday, December 24, 2014 11:31 AM To: R-Help List Subject: [R] ave(x, y, FUN=length) produces character output when x is character R 3.0.1 on Linux 64... I was working with

Re: [R] ave(x, y, FUN=length) produces character output when x is character

2014-12-24 Thread Nordlund, Dan (DSHS/RDA)
State Department of Social and Health Services -Original Message- From: Mike Miller [mailto:mbmil...@gmail.com] On Behalf Of Mike Miller Sent: Wednesday, December 24, 2014 12:44 PM To: Nordlund, Dan (DSHS/RDA) Cc: R-Help List Subject: Re: [R] ave(x, y, FUN=length) produces character

Re: [R] Inverse Student t-value

2014-09-30 Thread Nordlund, Dan (DSHS/RDA)
-Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of jlu...@ria.buffalo.edu Sent: Tuesday, September 30, 2014 11:49 AM To: Andre Cc: r-help@r-project.org Subject: Re: [R] Inverse Student t-value My Excel (2013) returns exactly

Re: [R] Reading text file with fortran format

2014-09-30 Thread Nordlund, Dan (DSHS/RDA)
-Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of Steven Yen Sent: Tuesday, September 30, 2014 2:04 PM To: r-help Subject: [R] Reading text file with fortran format Hello I read data with fortran format:

Re: [R] Getting data from Table in RStudio

2014-07-02 Thread Nordlund, Dan (DSHS/RDA)
] Sent: Wednesday, July 02, 2014 7:05 AM To: Nordlund, Dan (DSHS/RDA); R. Mailing List Subject: Re: [R] Getting data from Table in RStudio This was very helpful. I think my problem is actually knowing which function to use when and where. This was a big help. Thank you again Dan. By the way

Re: [R] Getting data from Table in RStudio

2014-06-30 Thread Nordlund, Dan (DSHS/RDA)
-Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of Shanae Clarke Sent: Monday, June 30, 2014 1:58 PM To: r-help@r-project.org Subject: [R] Getting data from Table in RStudio Hello, I am new to R progaming and have just

Re: [R] how to select an element from a vector based on a probability

2014-04-10 Thread Nordlund, Dan (DSHS/RDA)
-Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of Simone Gabbriellini Sent: Thursday, April 10, 2014 11:59 AM To: Rui Barradas Cc: r-help@r-project.org Subject: Re: [R] how to select an element from a vector based on a

Re: [R] Determining 32- vs. 64-bit Windows

2014-04-10 Thread Nordlund, Dan (DSHS/RDA)
Look at Sys.info() R.version() Hope this is helpful, Dan Daniel J. Nordlund, PhD Research and Data Analysis Division Services Enterprise Support Administration Washington State Department of Social and Health Services From: r-help-boun...@r-project.org [mailto:r-help-boun...@r-project.org]

Re: [R] open unknown file format in R

2014-03-17 Thread Nordlund, Dan (DSHS/RDA)
-Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of eliza botto Sent: Monday, March 17, 2014 12:06 PM To: r-help@r-project.org Subject: [R] open unknown file format in R Dear R-Family, I have just downloaded a massive data

Re: [R] Basic misunderstanding, or problem with my installation?

2013-12-31 Thread Nordlund, Dan (DSHS/RDA)
-Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of Sarah Goslee Sent: Tuesday, December 31, 2013 4:55 PM To: David Parkhurst Cc: r-help@r-project.org Subject: Re: [R] Basic misunderstanding, or problem with my installation?

Re: [R] How to view un-sampled data from a randomly sampled dataset

2013-10-23 Thread Nordlund, Dan (DSHS/RDA)
-Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of erinu Sent: Wednesday, October 23, 2013 11:14 AM To: r-help@r-project.org Subject: [R] How to view un-sampled data from a randomly sampled dataset Hi there- I have a 150

Re: [R] Generation of a Markov Chain

2013-09-17 Thread Nordlund, Dan (DSHS/RDA)
-Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of Lorenzo Isella Sent: Tuesday, September 17, 2013 2:26 PM To: r-h...@stat.math.ethz.ch Subject: [R] Generation of a Markov Chain Dear All, While looking for a way to generate

Re: [R] why is this a factor?

2013-08-28 Thread Nordlund, Dan (DSHS/RDA)
See ?data.frame In particular, the stringsAsFactors parameter which defaults to TRUE. Hope this is helpful, Dan Daniel J. Nordlund Washington State Department of Social and Health Services Planning, Performance, and Accountability Research and Data Analysis Division Olympia, WA 98504-5204

Re: [R] create new matrix from user-defined function

2013-07-10 Thread Nordlund, Dan (DSHS/RDA)
-Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of bcrombie Sent: Wednesday, July 10, 2013 12:19 PM To: r-help@r-project.org Subject: [R] create new matrix from user-defined function #Let's say I have the following data set:

Re: [R] find 2D corelation coefficient

2013-07-09 Thread Nordlund, Dan (DSHS/RDA)
-Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of smriti Sebastian Sent: Tuesday, July 09, 2013 3:13 AM To: peter dalgaard Cc: r-help@r-project.org Subject: Re: [R] find 2D corelation coefficient Two dimensional corelation

Re: [R] sample(c(0, 1)...) vs. rbinom

2013-05-23 Thread Nordlund, Dan (DSHS/RDA)
-Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of Albyn Jones Sent: Thursday, May 23, 2013 8:30 AM To: r-help@r-project.org Subject: Re: [R] sample(c(0, 1)...) vs. rbinom After a bit of playing around, I discovered that

Re: [R] Chi square 1 d.f.

2013-05-16 Thread Nordlund, Dan (DSHS/RDA)
-Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of Luis Fernando García Hernández Sent: Thursday, May 16, 2013 2:41 PM To: r-help@r-project.org Subject: [R] Chi square 1 d.f. Dear Fellows, I am trying to find the exact

Re: [R] Correctly Setting New Seed

2013-05-08 Thread Nordlund, Dan (DSHS/RDA)
-Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of Ellerbe, Caitlyn Nicole Sent: Wednesday, May 08, 2013 11:51 AM To: Ellerbe, Caitlyn Nicole; r-help@R-project.org Subject: Re: [R] Correctly Setting New Seed By crash, I mean

Re: [R] Adding time series to time graphs

2013-04-11 Thread Nordlund, Dan (DSHS/RDA)
-Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of Simon Kiss Sent: Thursday, April 11, 2013 12:35 PM To: r-help@r-project.org Subject: [R] Adding time series to time graphs Hello: I have done this before but cannot figure out

Re: [R] problem with plots with short example.

2013-03-28 Thread Nordlund, Dan (DSHS/RDA)
-Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of Nicole Ford Sent: Thursday, March 28, 2013 4:55 PM To: r-help help Subject: [R] problem with plots with short example. i am having problem running my own data. yesterday it

Re: [R] Shifting cells and removing blanks

2013-03-26 Thread Nordlund, Dan (DSHS/RDA)
-Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of ankur verma Sent: Tuesday, March 26, 2013 10:22 AM To: r-help@r-project.org Subject: [R] Shifting cells and removing blanks Hi , I've been struggling with this problem.

Re: [R] suggestions about import SAS Transport files to R.

2013-03-26 Thread Nordlund, Dan (DSHS/RDA)
-Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of Duncan Murdoch Sent: Tuesday, March 26, 2013 11:32 AM To: Santosh Cc: r-help@r-project.org Subject: Re: [R] suggestions about import SAS Transport files to R. On 26/03/2013

Re: [R] Feed rle() output to hist()

2013-03-26 Thread Nordlund, Dan (DSHS/RDA)
-Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of Newbie1234 Sent: Tuesday, March 26, 2013 2:03 PM To: r-help@r-project.org Subject: [R] Feed rle() output to hist() I want to make a histogram from the lengths vector which is

Re: [R] Error Message During ANOVA

2013-03-21 Thread Nordlund, Dan (DSHS/RDA)
-Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of Rodinsky, Dr Harold R. Sent: Thursday, March 21, 2013 11:32 AM To: 'r-help@r-project.org' Subject: Re: [R] Error Message During ANOVA I am teaching myself R for use in Psych

Re: [R] How to stop set.seed() besides exiting out of R?

2013-03-18 Thread Nordlund, Dan (DSHS/RDA)
-Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of C W Sent: Monday, March 18, 2013 11:27 AM To: r-help Subject: [R] How to stop set.seed() besides exiting out of R? Hi list, I am curious how to stop the set.seed(), I don't

Re: [R] How to stop set.seed() besides exiting out of R?

2013-03-18 Thread Nordlund, Dan (DSHS/RDA)
it. Mike On Mon, Mar 18, 2013 at 2:40 PM, Nordlund, Dan (DSHS/RDA) nord...@dshs.wa.govmailto:nord...@dshs.wa.gov wrote: -Original Message- From: r-help-boun...@r-project.orgmailto:r-help-boun...@r-project.org [mailto:r-help-bounces@r-mailto:r-help-bounces@r- project.orghttp://project.org

Re: [R] How to stop set.seed() besides exiting out of R?

2013-03-18 Thread Nordlund, Dan (DSHS/RDA)
and Health Services Planning, Performance, and Accountability Research and Data Analysis Division Olympia, WA 98504-5204 From: C W [mailto:tmrs...@gmail.com] Sent: Monday, March 18, 2013 12:19 PM To: Nordlund, Dan (DSHS/RDA) Cc: r-help Subject: Re: [R] How to stop set.seed() besides exiting out of R

Re: [R] Numeric Class to Nominal class

2013-03-13 Thread Nordlund, Dan (DSHS/RDA)
-Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of Nicolás Sánchez Sent: Wednesday, March 13, 2013 9:30 AM To: r-help@r-project.org Subject: [R] Numeric Class to Nominal class Hello everybody! I have a question. I am

Re: [R] ls() with different defaults: Solution;

2013-03-12 Thread Nordlund, Dan (DSHS/RDA)
-Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of Szumiloski, John Sent: Tuesday, March 12, 2013 10:39 AM To: Hadley Wickham Cc: r-help@r-project.org Subject: Re: [R] ls() with different defaults: Solution; -Original

Re: [R] merging or joining 2 dataframes: merge, rbind.fill, etc.?

2013-02-26 Thread Nordlund, Dan (DSHS/RDA)
-Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of Anika Masters Sent: Tuesday, February 26, 2013 10:56 AM To: r-help@r-project.org Subject: [R] merging or joining 2 dataframes: merge, rbind.fill, etc.? #I want to merge or

Re: [R] Why R simulation gives same random results?

2013-02-20 Thread Nordlund, Dan (DSHS/RDA)
-Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of C W Sent: Tuesday, February 19, 2013 5:32 PM To: r-help Subject: [R] Why R simulation gives same random results? Hi, list I am doing 100,000 iterations of Bayesian

Re: [R] How to stack row vector on top of each other?

2013-02-14 Thread Nordlund, Dan (DSHS/RDA)
-Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of C W Sent: Thursday, February 14, 2013 5:08 PM To: r-help Subject: [R] How to stack row vector on top of each other? Hi list, How do you actually stack a vector on top of each

Re: [R] sweave question

2013-02-13 Thread Nordlund, Dan (DSHS/RDA)
-Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of Mark Leeds Sent: Wednesday, February 13, 2013 2:59 PM To: r-help@r-project.org Subject: [R] sweave question Hi Everyone: I was having trouble getting the plot size correct

Re: [R] Is there a neat R trick for this?

2013-02-12 Thread Nordlund, Dan (DSHS/RDA)
Another option is which(y %in% x) Dan Daniel J. Nordlund Washington State Department of Social and Health Services Planning, Performance, and Accountability Research and Data Analysis Division Olympia, WA 98504-5204 -Original Message- From: r-help-boun...@r-project.org

Re: [R] Is there a neat R trick for this?

2013-02-12 Thread Nordlund, Dan (DSHS/RDA)
- From: Jeff Newmiller [mailto:jdnew...@dcn.davis.ca.us] Sent: Tuesday, February 12, 2013 11:37 AM To: Nordlund, Dan (DSHS/RDA); r-help@r-project.org Subject: Re: [R] Is there a neat R trick for this? but that doesn't maintain the sequence of the original data

Re: [R] Sourcing my file does not print command outputs

2013-02-07 Thread Nordlund, Dan (DSHS/RDA)
-Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of John Kane Sent: Thursday, February 07, 2013 10:57 AM To: James Jong; r-help@r-project.org Subject: Re: [R] Sourcing my file does not print command outputs From ?source Note

Re: [R] Sourcing my file does not print command outputs

2013-02-07 Thread Nordlund, Dan (DSHS/RDA)
, Performance, and Accountability Research and Data Analysis Division Olympia, WA 98504-5204 From: James Jong [mailto:ribonucle...@gmail.com] Sent: Thursday, February 07, 2013 1:30 PM To: Nordlund, Dan (DSHS/RDA) Cc: r-help@r-project.org Subject: Re: [R] Sourcing my file does not print command outputs

[R] FW: Sourcing my file does not print command outputs

2013-02-07 Thread Nordlund, Dan (DSHS/RDA)
Forgot to send to R-help From: Nordlund, Dan (DSHS/RDA) Sent: Thursday, February 07, 2013 2:09 PM To: 'James Jong' Subject: RE: [R] Sourcing my file does not print command outputs James, Your code seems to have ‘…’ sitting on a line all by itself (maybe should be at the end

Re: [R] Sourcing my file does not print command outputs

2013-02-07 Thread Nordlund, Dan (DSHS/RDA)
, and Accountability Research and Data Analysis Division Olympia, WA 98504-5204 From: James Jong [mailto:ribonucle...@gmail.com] Sent: Thursday, February 07, 2013 2:11 PM To: Nordlund, Dan (DSHS/RDA); r-help@r-project.org Subject: Re: [R] Sourcing my file does not print command outputs Thanks Dan

Re: [R] Coercing of types when raising a number to a series of powers

2013-02-07 Thread Nordlund, Dan (DSHS/RDA)
-Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of Julio Sergio Sent: Thursday, February 07, 2013 6:13 PM To: r-h...@stat.math.ethz.ch Subject: [R] Coercing of types when raising a number to a series of powers I'm trying to

Re: [R] How to extract elements from vector in reverse order?

2013-01-24 Thread Nordlund, Dan (DSHS/RDA)
-Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of hp wan Sent: Thursday, January 24, 2013 4:23 PM To: r-help@r-project.org Subject: [R] How to extract elements from vector in reverse order? Hi all mailing listers, I wanna

Re: [R] How to convert a string to the column it represents in a dataframe, with a reproducible example

2013-01-17 Thread Nordlund, Dan (DSHS/RDA)
-Original Message- From: r-help-boun...@r-project.org [mailto:r-help-bounces@r- project.org] On Behalf Of mtb...@gmail.com Sent: Thursday, January 17, 2013 2:27 PM To: David Winsemius; r-help@r-project.org Subject: Re: [R] How to convert a string to the column it represents in a

  1   2   3   4   >