小编rin*_*nni的帖子

在C/C++中是否有与GNU-R相同的函数()?

让我解释'哪个'函数的作用:

从GNU-R帮助:

哪些指数是真的?

给出逻辑对象的"TRUE"索引,允许数组索引.

或显示一些代码:(GNU-R开始用1计数索引)

> x <- c(1,2,3,1,3,5);
> which(x == 1);
[1] 1 4
> which(x == 3);
[1] 3 5
> ll <- c(TRUE,FALSE,TRUE,NA,FALSE,FALSE,TRUE);
> which(ll);
[1] 1 3 7
Run Code Online (Sandbox Code Playgroud)

有没有人知道C/C++中的类似功能?

谢谢你的帮助

rinni

c c++ r

5
推荐指数
1
解决办法
558
查看次数

有没有人有经验在R(Windows操作系统)中打开hdf文件?

我无法使用R中的hdf文件.我相信R包hdf5将是我需要使用这些文件,但我很难安装它.我收到以下警告:

> install.packages("hdf5")
Installing package(s) into ‘C:/Users/ME/Documents/R/win-library/2.15’
(as ‘lib’ is unspecified)
--- Please select a CRAN mirror for use in this session ---

   package ‘hdf5’ is available as a source package but not as a binary

    Warning message:
package ‘hdf5’ is not available (for R version 2.15.2) 
Run Code Online (Sandbox Code Playgroud)

有没有人有设置Windows操作系统版本的R来阅读和使用hdf文件的经验?我希望在这里找到一个我希望使用的hdf文件的例子.

windows r hdf5

5
推荐指数
2
解决办法
3744
查看次数

标签 统计

r ×2

c ×1

c++ ×1

hdf5 ×1

windows ×1