Displaying 2 results from an estimated 2 matches for "jjmat".
2006 Feb 01
2
Write.table: change points to commas when object contains a row of characters
...oup! I asked write.table to change the decimal point from "." to
"," , but apparently it would only do so if the object to be written
does not contain any character elements. I would like to understand, why
this has to be so and - of course - find a solution for my matrix object
jjmat, that I tried to write out by
write.table(jjmat, file="jjmat.txt", row.names=TRUE,
col.names=NA,sep="\t",dec=",")
I also tried "options(OutDec=",")" , which changes the presentation on
the console, but seems to have no influence on write ta...
2003 Sep 24
1
partial matching in data frame subscripting
I'm not sure if the following is a bug or a feature:
> jjmat <- array(1:6, c(2,3), list(c('ABC', 'DEF'), c('xyz', 'tuv',
'qrs')))
> jjdf <- as.data.frame(jjmat)
> jjmat['AB', ]
Error: subscript out of bounds
> jjdf['AB',]
xyz tuv qrs
ABC 1 3 5
> jjmat[, 'tu']
Err...