Displaying 3 results from an estimated 3 matches for "ssfamed".
Did you mean:
sscaled
2010 Jan 21
2
loop on list levels and names
...64887 18.134533 0.000752
gicam tm 54.317395 3.828254 0.00038
gicam tm 55.978883 17.167534 0.000141
gicam tm 279.597993 15.313017 0.000398
gicam tm 288.262556 18.134533 0.001043
What I do next is:
----
list_Asfc <- list()
list_Asfc[[1]] <- ssfamed[ssfamed$SPECSHOR=='cotau'&ssfamed$BONE=='tx', 3]
list_Asfc[[2]] <- ssfamed[ssfamed$SPECSHOR=='cotau'&ssfamed$BONE=='tm', 3]
----
And so on for each level of SPECSHOR and BONE
I'm stuck on 2 parts:
- in a loop or something similar, I would like the 1s...
2010 Feb 04
5
export test results to csv
...n error.
The code is below.
The data are attached as .txt with tab as separator. I tried to get a
sample dataset, but for some reason it didn't work, so please excuse the
length of the file. I also attached a txt with the output (copy/paste)
in case that helps.
----
> library(WRS)
> ssfamed <- read.table(file=file.choose(), header=T, sep="\t")
> ssfa_Asfc <- fac2list(ssfa[,7], ssfa[3]) #store into list mode
> test <- pbmcp(ssfa_Asfc, alpha=0.05, nboot=2000, bhop=F) #it takes
about 5 seconds to run
> write.csv(test, file="pbmcp.csv", append=F...
2010 Jan 29
1
create an R object in a loop
...need to store my data in a list, which fac2list() from this package
does very well.
But I would like to do it in a loop for each numerical variable. It
would be easier!
For now, I have the loop with the extraction and storage into a list.
The code is below.
-----
# Defines variables
file <- ssfamed #data file object to be used
spec <- "cotau" #species selection
bone <- "tx" #tooth row selection
cat <- 3 #column indexe to be used as
categorical variable...