Displaying 4 results from an estimated 4 matches for "dynv".
Did you mean:
dyn
2024 May 03
1
Get a copy of a matrix only for TRUE entries of a matching size boolean matrix?
...letters, "")
> [,1] [,2]
> [1,] "" "B"
> [2,] "C" ""
> > ifelse(mat_bools, mat_letters, NA)
> [,1] [,2]
> [1,] NA "B"
> [2,] "C" NA
>
> Marc
>
>
>
> Le 03/05/2024 ? 14:47, DynV Montrealer a ?crit :
>
> Is there a way to get a copy of a matrix only for TRUE entries of a
> matching size boolean matrix? For **example**:
>
> mat_letters <- matrix(data=c('A', 'B', 'C', 'D'), ncol=2, byrow=TRUE)
> mat_letters
>
> [...
2024 May 03
2
Get a copy of a matrix only for TRUE entries of a matching size boolean matrix?
Is there a way to get a copy of a matrix only for TRUE entries of a
matching size boolean matrix? For *example*:
> mat_letters <- matrix(data=c('A', 'B', 'C', 'D'), ncol=2, byrow=TRUE)
> mat_letters
[,1] [,2]
[1,] "A" "B"
[2,] "C" "D"
> mat_bools <- matrix(data=c(FALSE, TRUE, TRUE, FALSE), ncol=2,
2024 Jul 14
2
Reinterpret data without saving it to a file 1st? Check for integer stopping at 1st decimal?
A small number of columns in the data I need to work with are strings, the
rest numbers. I'm using read_excel() from the readxl package to get the
data ; right after it, the string columns are of type chr and the rest num.
I'm tasked with finding out which columns are integers. From an advice, I
tried saving the spreadsheet content into a CSV then loading that, which
works like a charm ;
2024 May 16
1
Least error-prone reading of Excel files?
I'm tasked to read a table from an excel file and it doesn't mention which
method to use. I went back some lessons ago and the 5 years old lesson
mentioned to pick a package using the highest score the way of the attached
(screenshot). Since there's no requirement of a method to read Excel files,
I'd rather use the least error-prone one; what would that be? eg will try
multiple