Skip to content

Search Archives

Search tips
from:Name Search by author name, e.g. from:Duncan Murdoch "exact phrase" Match an exact phrase word1 word2 Match messages containing both words Date range Use the date pickers to filter results to a time period

Use the list dropdown to narrow results to a specific mailing list. Combine from: with other terms to filter by author and content.

27 results for “from:tsunhin wong”

Paste Strings as logical for functions?
tsunhin wong · May 21, 2009 · r-help

Dear R Users, I have some dynamic selection rules that I want to pass around for my functions: >rules <- paste(g$TrialList==1 & g$Session==2) >myfunction <- function(rules) { > index <- which(rules) > anotherFunction(index) > } However, I can't find a...

Barplot: annotations at tips of each bar?
tsunhin wong · Jun 2, 2009 · r-help

Dear R-users, I have searched through examples of barplot in R. But there seems to be no advanced annotation options in R for their barplot. What I am trying to do is to do some annotations at the tip...

Search for longest consecutive occurrence
tsunhin wong · May 23, 2009 · r-help

Dear R Users, I am trying to write a script to count the longest consecutive occurring 1 in a sequence: test<-c(1,1,1,1,1,1,1,0,0,0,0,1,1,0,1,0,1,0...

index to select rows of a large matrix
tsunhin wong · May 21, 2009 · r-help

Dear R Users, I have created a 1500 x 20000 data frame - DataSeq. Each of the 1500 rows represents a data sequence. I have another data frame iData that stores the information of these 1500 data sequences in the same...

Replace / swap values of subset of a data.frame
tsunhin wong · May 19, 2009 · r-help

Dear R users, I have 1 data.frame of 1500x80 - data1. I found out that there are a few cells of data that I have misplace, and I need to fix the ordering of them. In an attempt trying to...

Too large a data set to be handled by R?
tsunhin wong · May 19, 2009 · r-help

Dear R users, I have been using a dynamic data extraction from raw files strategy at the moment, but it takes a long long time. In order to save time, I am planning to generate a data set of size...

Multpile (45x8) graphs of the same page / device: titles crammed
tsunhin wong · Dec 10, 2008 · r-help

Dear R users, I'm trying to plot 45x8 graphs on the same pdf / device for the sake of visual comparison. par(mfcol=c(45,8)) par(mai=c(0,0,0,0)) In ?title, I can see there are...

Transforming a string to a variable's name? help me newbie...
tsunhin wong · Dec 8, 2008 · r-help

Dear all, I'm a newbie in R. I have a 45x2x2x8 design. A dataframe stores the metadata of trials. And each trial has its own data file: I used "read.table" to import every trial into R as a...

Select cases of data.frame based on a long index
tsunhin wong · Jun 3, 2009 · r-help

Dear R users, I know how to select a subset of a data.frame or a matrix by setting some criteria, but this time, I have a long index of cases not really related to 1 or 2 criteria. And...

Search for longest consecutive occurrence
tsunhin wong · May 23, 2009 · r-help

Thanks! I tested it using: test<-c(1,1,1,1,1,0,0,0,0,0,0,0,1,1,0,1,0,1,0,1,1) that has a longer 7 zeros and 5 ones. What part of...

read.table or read.csv without row index?
tsunhin wong · Apr 22, 2009 · r-help

Hello all, Probably my concepts about the data.frame and matrix and array in R are not clear, I need some clarification to help me understand them better. >M <- read.table("test1.csv",sep=",",row.names=NULL,header=T) gives...

Resampling physiological data using R?
tsunhin wong · Dec 11, 2008 · r-help

Dear all R users, I am going to use R to process some of my physiological data about eye. The problem is the recording machine does not sample in a reliably constant rate: the time intervals between data sampled can...

Transforming a string to a variable's name? help me newbie...
tsunhin wong · Dec 8, 2008 · r-help

Thanks Jim and All! It works: tmptrial <- trialcompute(trialextract( get(paste("t",tmptrialinfo[1,2],tmptrialinfo[1,16],".gz",sep="")) , tmptrialinfo[1,32],secs,sdm),secs,binsize) Can I use "assign" instead? How should it be coded then? Thanks! - John...

index to select rows of a large matrix
tsunhin wong · May 21, 2009 · r-help

Dear all, I found the answer: intersect() - John On Thu, May 21, 2009 at 7:32 PM, tsunhin wong <thjwong at gmail.com> wrote: > Dear Jim, > Thanks for your suggestion. > > I have a follow-up question for fellow R Users...

index to select rows of a large matrix
tsunhin wong · May 21, 2009 · r-help

Dear Jim, Thanks for your suggestion. I have a follow-up question for fellow R Users that have followed this thread: *I used to create two lists by some very flexible criteria to compare from "iData" and pass the two...

cannot allocate vector of size... restructuring suggestion please...
tsunhin wong · Dec 15, 2008 · r-help

Dear R Users, I was running some data analysis scripts and ran into this error: Error: cannot allocate vector of size 27.6 Mb Doing a "memory.size(max=TRUE)" will give me: [1] 1506.812 The current situation is...

Within Subject ANOVA question
tsunhin wong · Jun 1, 2009 · r-help

Dear R users, I have copied for following table from an article on "Using confidence intervals in within-subject designs": Subject 1sec 2sec 5sec 1 10 13 13 12.00 2 6 8 8 7.33 3 11 14 14...

Within Subject ANOVA question
tsunhin wong · Jun 1, 2009 · r-help

As another follow-up related to aov, I want to extract values (Residual interaction mean square & interaction DF) from the results: asummary<-summary(aov.recall) The results are in a list() format with 3 lists, and contents within each list...

Search for longest consecutive occurrence
tsunhin wong · May 23, 2009 · r-help

Thanks for introducing me to "with" and the smart use of R subscripting Now I know I can do something like this. test<-c(1,1,1,1,1,0,0,0,0,0,2,2,2,2,2,2...

Transforming a string to a variable's name? help me newbie...
tsunhin wong · Dec 9, 2008 · r-help

Thank you all! :) Can I "walk through" the my.data structure without knowing the name of particular dataframe in it? Such as: for(i in 1:length(my.data)) myprocess(my.data[i]) ? If it is possible, then this is...

Can't find what you're looking for? Try searching with Google .