Skip to contents

Extract Data Values of an Object

Usage

values(x, ...)

# S4 method for class 'DenseNeuroVol'
values(x)

# S4 method for class 'SparseNeuroVol'
values(x)

# S4 method for class 'ROIVol'
values(x, ...)

# S4 method for class 'ROIVec'
values(x, ...)

Arguments

x

the object to get values from

...

additional arguments

Value

A vector or array containing the values extracted from x.

Examples

x <- NeuroSpace(c(10,10,10), c(1,1,1))
vol <- NeuroVol(rnorm(10 * 10 * 10), x)
values(vol)
#> , , 1
#> 
#>              [,1]       [,2]       [,3]        [,4]       [,5]       [,6]
#>  [1,]  0.71647472  0.5157434 -0.2443878  0.77100286 -0.6364255 -1.1870232
#>  [2,]  1.24391503  0.6062042 -0.5512349 -0.48709127  0.1317299 -0.7943120
#>  [3,] -1.21064800  0.7783482  0.3480851 -0.61156895 -0.5019950  0.4231244
#>  [4,] -1.34684310  0.6057235  1.0030576 -1.98345172  1.0524408 -0.5340800
#>  [5,]  0.11313601  1.9854756  1.5985763 -1.20928126 -1.1200575 -0.7629712
#>  [6,] -0.92333865  1.1116177  0.8130421 -1.17930794 -1.2506330 -0.1966203
#>  [7,] -0.45844402  0.7833972  0.9753716  0.08956634  0.9188039  0.8545546
#>  [8,]  0.42589163  0.1775828  0.3042437  0.31892281 -0.5863496 -0.4568454
#>  [9,] -1.11445365  0.9237098 -2.3878832  0.11817896 -1.3178815  0.3326572
#> [10,] -0.04837169 -1.5383385 -0.2024321  1.90318751  0.0566593 -1.4626710
#>              [,7]        [,8]       [,9]      [,10]
#>  [1,] -1.27690906  0.20399779 -0.5570365 -0.6916632
#>  [2,] -1.98171902  0.49475612  1.2426172  2.7189629
#>  [3,]  0.03672268  1.27340866 -0.2165275  0.3714470
#>  [4,]  0.32695702  0.73157754 -0.3084906  1.8671981
#>  [5,]  1.38713084 -0.24255676  0.2845940 -0.5139133
#>  [6,]  2.31635613 -1.04112450 -0.9241183  0.4821674
#>  [7,] -1.61393130  2.18277324  0.3692948  1.1026762
#>  [8,] -1.41965919 -0.81844634 -1.0879473 -1.3249193
#>  [9,] -1.18615863 -0.01055408  0.6593460  0.1638153
#> [10,] -0.84323260 -0.58250512 -0.4264954 -0.8838416
#> 
#> , , 2
#> 
#>              [,1]       [,2]       [,3]          [,4]        [,5]       [,6]
#>  [1,] -0.76064789 -0.2365047 -0.3049582  6.003405e-01 -1.16464980 -1.7168213
#>  [2,] -0.91143345 -1.1587957 -0.3803767  6.874083e-01 -0.87362176  1.2286794
#>  [3,]  0.87966887  0.2191128  0.3493619  4.809524e-02  0.36487431 -0.1361816
#>  [4,]  0.40936155 -0.6635884 -0.2133157  5.400260e-01 -2.56048365  0.5482926
#>  [5,]  0.89906587  1.7630778 -0.1014050 -1.091459e-01  0.14863573  1.1403761
#>  [6,] -0.98948121 -0.5131247  0.5382699  6.552558e-05  0.06458868 -0.1809682
#>  [7,] -0.96345465  1.3082741 -0.6495153  1.172790e+00  0.20631364 -0.8611690
#>  [8,]  0.38200331  0.8740916 -1.7006408 -2.660855e-01  1.42520702 -1.6600136
#>  [9,]  0.02978068 -0.2658847 -0.7089188  5.360206e-01 -1.72370489 -1.0356564
#> [10,] -0.06688181 -2.9472871  0.6121178 -1.130711e+00 -0.39306458  0.8378255
#>             [,7]        [,8]       [,9]        [,10]
#>  [1,]  2.7544611  0.01156236  1.2025755  0.840964705
#>  [2,]  0.4816660  0.80015219 -0.2525771  0.212084940
#>  [3,]  1.7141507 -0.58640066 -0.4730184  0.568475289
#>  [4,]  1.8900600  1.04460995 -0.3118077  0.190244747
#>  [5,] -0.6150902  1.00572500 -1.1880881 -0.450668571
#>  [6,]  0.2107737 -1.79121431  0.1152034  1.480990928
#>  [7,] -1.0474359  0.93646013 -0.7645272  0.005937614
#>  [8,]  0.3312635  0.53173220  0.4117193  1.337740175
#>  [9,]  0.1604797  0.37896926  1.0554258 -0.582580307
#> [10,] -0.4181358  0.58207244  2.0927287  0.589429265
#> 
#> , , 3
#> 
#>              [,1]        [,2]        [,3]       [,4]       [,5]       [,6]
#>  [1,]  0.11344364 -1.41730442 -0.39343007 -2.0223530 -1.3342695 -0.5095576
#>  [2,]  1.11037888 -0.45392377 -0.01416564  1.7401389  0.4585149  0.1005265
#>  [3,]  2.40921710 -0.75982628  0.77304276 -0.1133333 -0.2140821 -1.1916077
#>  [4,] -1.09975406 -1.16207549  2.61654620 -0.9494896 -0.2355059 -1.3649787
#>  [5,]  0.06598874 -0.29186717 -0.35056524  0.9069779  0.7828297 -0.2761467
#>  [6,] -0.24343864 -0.23017702  1.51549487  1.2977802  0.5281693 -0.9111728
#>  [7,]  0.42660397  0.03571154  0.86772459  0.9413549 -0.8630643 -1.1576054
#>  [8,]  0.58285426  2.67933152 -1.56079643  0.9431465  0.7845658  0.1367871
#>  [9,] -0.91167024  1.23776774  1.92260437 -0.6038941 -2.0323356 -0.8977965
#> [10,] -1.77849894  0.51210251 -1.34555668  0.0274260  0.7078906  0.7313148
#>              [,7]       [,8]        [,9]        [,10]
#>  [1,] -0.09638003  0.5274385 -0.53105060  0.438933782
#>  [2,]  0.02821775  0.4606969  0.06431038  0.031558066
#>  [3,]  1.63521639  0.2065109  2.48978603  0.223622735
#>  [4,]  1.97302540  0.8423561 -0.14834753  0.049639337
#>  [5,]  2.15244110  1.6322923 -0.05143665 -0.120381148
#>  [6,]  0.87619487  1.7916045 -0.77777498  0.622470496
#>  [7,] -1.38595521  0.3737566  0.61417633  0.002998351
#>  [8,]  0.21477486 -0.1993448  0.46647339 -0.376581482
#>  [9,]  2.62283480 -0.1771646 -0.89136141 -0.750688990
#> [10,] -0.13589356 -1.9433448  1.05306406 -0.295826095
#> 
#> , , 4
#> 
#>             [,1]       [,2]       [,3]       [,4]       [,5]       [,6]
#>  [1,] -0.2494142 -0.7490329 -1.0523754 -1.4117400  0.5952872  0.4064790
#>  [2,]  1.0800229  1.7255281  1.2306882 -0.4131222  0.3217291 -0.7612231
#>  [3,] -0.1826853 -2.1539310 -0.3142063 -0.2133338 -0.1696485  0.4500978
#>  [4,]  0.1501665 -0.3038217  0.8959851  0.1249702  0.3936630 -2.6418475
#>  [5,]  0.3181318  0.6026982  2.1999154 -0.6238256 -0.8192550  0.7436638
#>  [6,] -0.6403843  1.0510689 -0.6879291  0.6538628  0.4313369 -0.3252124
#>  [7,]  1.5228288 -0.6080365  0.7964205 -0.7934352 -0.8063137 -0.3477919
#>  [8,]  0.2251554  0.5995911 -2.5259935 -1.1930995 -0.8497536 -0.5867348
#>  [9,]  0.3026196 -0.4077276  0.4891457 -1.6887319  1.3382960 -0.6744954
#> [10,] -1.7439879  0.3400085 -0.7325426  0.9517754  0.9607306 -0.7051391
#>              [,7]       [,8]       [,9]      [,10]
#>  [1,]  0.14068665  0.8417380  0.8388083  0.3111659
#>  [2,] -1.09900704 -1.0109711  0.5491775 -0.8320096
#>  [3,] -0.58112760  1.1521471 -0.3235534 -1.5498015
#>  [4,]  0.02957407 -0.1321755  0.6888574 -0.9790671
#>  [5,] -0.01827767  1.6648733 -1.4040863 -0.9863059
#>  [6,] -0.02026682 -0.7807031 -0.9024516  0.8714258
#>  [7,]  0.04326348 -0.5218004  0.1001585 -0.9421525
#>  [8,]  0.24138118  0.1064904  0.2737383  0.9881913
#>  [9,]  0.07744078  0.3452742 -0.5357870  1.5748186
#> [10,] -0.88007672 -0.4094035 -0.6976628 -0.0291180
#> 
#> , , 5
#> 
#>              [,1]        [,2]         [,3]         [,4]       [,5]        [,6]
#>  [1,] -0.12430191  1.94538842 -1.295758260  1.496701719 -0.1338218 -0.89763463
#>  [2,] -0.45352894 -0.14086601 -0.775181210 -0.559538576  1.6584945 -1.49374420
#>  [3,] -0.09811993 -1.13641272  0.042287038 -0.933159446  0.2416295 -0.03695642
#>  [4,]  0.91567315 -0.19528679  0.656992245 -0.006145173 -0.9268315 -0.42902733
#>  [5,]  0.09022139  0.22152536  0.441900574 -0.816231092 -1.8072221 -0.09052930
#>  [6,]  2.43956174 -0.58727820 -0.316263384 -1.193639574  0.8828087 -0.04787452
#>  [7,]  1.01191100  0.19451856  0.613232150  0.032420992 -1.6757832  1.39280146
#>  [8,] -1.27918617  1.00896484  0.697447564 -0.930447045  0.9909161  0.62195671
#>  [9,] -0.19294585 -0.00648403  0.002865777 -1.917847171 -0.0735296 -1.51042965
#> [10,]  0.57484445  0.52460196  0.623086770 -0.495678448 -0.2669136 -0.01137904
#>              [,7]       [,8]       [,9]       [,10]
#>  [1,]  0.31123413 -2.6621515 -0.2694086 -1.76447981
#>  [2,]  0.10432431  0.4464461  0.4302038 -1.61230333
#>  [3,] -0.06140119  0.3829303 -0.1483678 -1.16467695
#>  [4,]  0.53040611  1.0740148 -0.5185048  1.01220152
#>  [5,]  1.66264255  1.7428750  2.7305232  0.77994332
#>  [6,] -0.07513408 -0.2180416  0.6083532 -0.01188975
#>  [7,]  1.24167376  2.1288928  2.2166420  1.67012819
#>  [8,]  1.43962232 -0.9361588  1.3546723 -1.41850515
#>  [9,] -0.28893178 -0.9113146 -1.0164060  0.13776046
#> [10,] -0.90363672 -1.3576866 -0.9260493  0.16831598
#> 
#> , , 6
#> 
#>             [,1]        [,2]        [,3]        [,4]       [,5]        [,6]
#>  [1,] -0.3886957 -1.47112072  0.04881019  0.67812295 -1.6528216 -0.23790965
#>  [2,] -1.3608467 -0.04597322 -0.55244962  0.95153420 -0.5115209  0.42659121
#>  [3,]  0.9789708  0.74161039 -1.63661049 -1.24888119 -0.2706739 -0.06499357
#>  [4,] -0.9699752  0.58454960 -0.27212046 -1.16108996 -0.6032410 -0.64748324
#>  [5,] -0.3442916  1.06799097  1.35484554 -1.15866993  1.7471079 -0.12836674
#>  [6,] -2.5955565  0.35766340  1.84705465 -0.26252000  0.3192862  1.20553036
#>  [7,]  0.5598027 -0.31774515  0.28982249 -0.60320276  0.3069694 -1.15109037
#>  [8,]  0.7186970  0.60037807  1.66998189 -0.38074009 -0.4506674 -0.44770758
#>  [9,] -0.4375582 -0.26123451  2.09151722 -0.08883445  1.4723139 -1.34315876
#> [10,]  1.5203656 -0.20309302 -0.59364471 -0.94941431 -0.2894974 -0.30704098
#>               [,7]       [,8]       [,9]      [,10]
#>  [1,] -1.007939918 -0.3013393  0.7169382 -1.5337912
#>  [2,] -1.740150700 -0.3102740 -1.5278880 -1.2570760
#>  [3,] -2.663078623  2.1102654  2.0375967 -1.1630812
#>  [4,]  1.203627854  0.5216281 -0.9202516  0.4150327
#>  [5,] -1.028576347 -0.6956608  1.4841581  0.6168029
#>  [6,]  1.954790207 -2.2464234  0.4904785  0.6786638
#>  [7,] -1.943690390  0.2530167  1.2381032  0.4004915
#>  [8,] -0.009201809 -1.2075719 -0.4199347  0.6125647
#>  [9,] -0.230268628  2.5586778 -0.6826261 -0.4609220
#> [10,]  0.168578406 -0.9973111 -1.6293139  1.5072294
#> 
#> , , 7
#> 
#>             [,1]        [,2]        [,3]        [,4]       [,5]       [,6]
#>  [1,] -0.4111446  0.06812529 -0.45399488  0.45720893  0.7349441  0.8145646
#>  [2,]  0.7604097 -0.92050664 -0.08605407  1.73154948 -0.5020315  0.4203046
#>  [3,] -1.2658465  1.39853061 -0.90325667  2.53073217 -0.5324457  0.8302760
#>  [4,] -0.2690430  0.07543496 -0.25548350  0.01588804  0.3855353 -1.3170665
#>  [5,]  2.1187184 -0.73354927 -1.00388444 -0.12397545  0.4904174 -1.1589704
#>  [6,]  0.2201648  1.41328740 -1.62117893 -0.86647149  1.1185841  0.8513659
#>  [7,] -0.8472319  0.68400703 -1.00106878 -0.14518657 -0.5868830 -0.3696426
#>  [8,]  1.0664751  1.85812696 -0.54417577 -0.07018714 -0.6249833 -1.2863820
#>  [9,] -0.2610724 -0.43383274  1.05072829  0.68580208  0.9554030  0.9960815
#> [10,]  0.5977382  1.21544855  0.56403435 -1.33618804  0.3664857  0.7576701
#>              [,7]       [,8]       [,9]      [,10]
#>  [1,] -1.03539244 -0.2547359  0.8522589  1.8646024
#>  [2,] -0.02207319  0.3309127  0.1010826  0.3306774
#>  [3,]  2.07015832 -0.1660463 -0.8369748  0.1340364
#>  [4,]  0.01501221  0.8255426 -1.6606022 -1.1634603
#>  [5,]  1.28494611 -0.8285220  0.7578461 -0.1322003
#>  [6,]  0.27880177  1.5737030  0.5591599 -0.5732645
#>  [7,] -1.89308876 -1.0576683 -2.2693268 -0.8774817
#>  [8,]  1.60159379  0.5170783  0.2671534  0.4743508
#>  [9,] -0.63005071  0.5755339  0.7045069 -1.9313241
#> [10,]  0.87791754  0.6603151 -1.9521905 -0.7237484
#> 
#> , , 8
#> 
#>               [,1]       [,2]       [,3]        [,4]        [,5]        [,6]
#>  [1,]  0.562120191 -1.4027693  0.8102207  0.96627179 -0.17514100 -0.96706436
#>  [2,]  3.657441154  0.8305422  2.5869173 -0.52580313 -0.09082592  0.08416213
#>  [3,]  1.305891313 -0.8340407  0.1387136  0.48428465  0.22860007 -0.21003967
#>  [4,]  0.292675427  1.2750315 -2.1407984  0.47884068  0.44366649 -0.01204035
#>  [5,]  0.005925454  0.9419817  1.5596605  1.44094927 -0.07751840  0.01569114
#>  [6,] -1.001761778  1.1674592 -1.3419541  0.47381880 -0.93935245 -1.03673523
#>  [7,]  0.609081292  0.5909880 -1.6031092 -0.04486206  2.04864412 -0.93711218
#>  [8,]  1.333815315  1.4550999  0.9523692  1.42283927  0.17772312  0.05973414
#>  [9,]  0.065895475 -1.6059524 -0.1648641  1.48878840 -0.28427883  1.85686567
#> [10,]  0.684919331  0.1081075  0.9825980  0.38155266  1.97898107  1.19643811
#>             [,7]       [,8]        [,9]       [,10]
#>  [1,]  2.4608065  0.5063462 -0.09454169  0.88516931
#>  [2,] -0.1157260 -0.2914016 -1.10208688  0.59816333
#>  [3,] -1.8163088 -0.2613384 -1.32455237 -0.09489836
#>  [4,] -1.7734842 -0.9340681 -1.15672130  1.56705683
#>  [5,] -0.5211142 -0.9592794  1.45274164  2.40388729
#>  [6,]  0.2568425 -0.1646927  0.27480540 -1.42345645
#>  [7,]  0.6600281 -0.3541200 -0.07444520  0.68543888
#>  [8,]  0.2185315  0.8558404 -0.24262576 -0.60912876
#>  [9,]  0.6967274 -0.4857448 -1.36564829 -1.25555683
#> [10,] -0.9197539 -0.4440086 -1.30750947 -0.57575275
#> 
#> , , 9
#> 
#>              [,1]       [,2]        [,3]        [,4]         [,5]        [,6]
#>  [1,] -1.58024877  0.3244286  0.03266978  0.28735109 -0.391850387  0.05944206
#>  [2,] -0.01893008 -0.5693245 -1.66847035 -0.28868618  0.465309100  0.60034297
#>  [3,] -0.61010369 -0.9975169 -0.81501457 -0.68730722  0.340523294 -0.40810661
#>  [4,]  1.17320724 -0.1382411  1.05385407  0.62744173 -0.859609464  0.66877015
#>  [5,] -0.29451915  2.1956050 -0.99068348 -0.04205943 -2.222484002  1.21182475
#>  [6,] -0.87694251 -1.6222177  0.56267736 -0.86419371 -0.497305354  1.37606666
#>  [7,]  0.07641075 -0.6196723 -1.48780182  0.98792318  2.181198271  0.10523217
#>  [8,]  0.51302798  0.8130345 -0.05149899  0.94500829 -0.022394581 -0.28605780
#>  [9,] -0.45204485 -1.6324124 -0.36230788  2.98989086  0.022125148  1.70793342
#> [10,]  1.70176335 -0.2788951  1.11393587  1.73251043 -0.003611741 -1.31806717
#>             [,7]        [,8]        [,9]       [,10]
#>  [1,] -0.4053468 -1.38725334 -0.08969361 -2.00195688
#>  [2,] -0.2117907  0.54962015 -1.60137443 -0.39782948
#>  [3,]  1.0440835  0.06554513  0.24550127 -0.10339878
#>  [4,] -0.4028506  1.99087347  0.05695169  0.01717523
#>  [5,]  0.5373228 -1.08944475  1.20336181  0.40685410
#>  [6,]  2.1468947  0.83154038 -1.02106383  0.67627256
#>  [7,] -0.9147829 -0.43881960 -0.47496030 -0.28490701
#>  [8,] -0.6413891 -1.39512957  0.36690129 -0.04112911
#>  [9,] -1.6151509  0.72066022  0.44734409 -0.52126999
#> [10,]  1.8871275 -0.33813783 -1.68851481 -0.11901803
#> 
#> , , 10
#> 
#>              [,1]        [,2]        [,3]       [,4]       [,5]        [,6]
#>  [1,] -1.71903297 -1.71371491 -1.23329779  1.2981376 -1.2251633 -1.11038352
#>  [2,]  0.66145828 -0.56058505 -1.49970755  0.2985853  1.2123573  0.29050214
#>  [3,] -0.33631164  1.57965346 -0.25044686  1.1815240 -1.3673491 -0.36148982
#>  [4,] -1.27368091  1.39639083  0.29577831  1.0348603  0.6587632  1.32655114
#>  [5,] -1.17239003 -0.03214849 -0.49180879  1.0874682  0.7983277  0.43331495
#>  [6,]  0.17861987 -0.69970097 -0.53811399 -0.5317740 -0.3454753 -1.34923533
#>  [7,]  0.05969443  0.06982377 -1.17337943 -0.6661805 -0.8254959  0.09044603
#>  [8,] -0.93546087  1.01607896  0.04952714 -1.6586878  0.5179699 -0.88530932
#>  [9,]  1.02770669 -0.70238728 -1.22499624 -0.5272131  0.3368363  0.29877729
#> [10,] -0.43342204  1.07128193 -0.33311833 -0.2639852  1.0918910 -0.15253939
#>                [,7]       [,8]        [,9]       [,10]
#>  [1,] -0.9317650074  1.1591650 -1.26937758 -0.31728499
#>  [2,] -0.1911179176 -0.1535951  1.29288466 -0.24961217
#>  [3,] -0.0708561614 -1.0657601  0.18819510 -0.23988955
#>  [4,] -0.2763627308 -0.5838107 -0.09966004 -1.26846995
#>  [5,]  1.3983425776  0.7673831 -1.04423115 -0.86442558
#>  [6,]  1.0928945133  1.9344366 -0.35502204 -1.15496412
#>  [7,] -0.1032768319 -0.5893866  1.97305466  1.00070766
#>  [8,]  0.0009983942 -2.1635800  1.14416888  0.06864018
#>  [9,]  1.3254923171  0.9282119  0.54492722 -1.58225125
#> [10,] -1.3635247494  0.1627486 -0.72811443 -1.30826800
#>